top of page

Moving average Wednesday for CAC40

Updated: Jun 15, 2023

17 lines of code for the CAC40 index on the 30 minute timeframe.



The code

timeframe(daily, updateonclose)
entrycondition1 = close < average[65](close)
 
TimeFrame(default)
entrydaytime = dayofweek = 2 and time = 090000
exitdaytime = dayofweek = 3 and time = 173000

entrycondition2 = dlow(0) > dlow(1) or dhigh(0) > dhigh(1)

if entrydaytime and entrycondition1 and entrycondition2 and not onmarket then
buy 1 contract at market
set stop %loss 2
endif

if exitdaytime then
sell at market
endif

댓글 4개


Jeremie Defit
2022년 10월 16일

doesnt work when we copy past the link there is 3 fail lign 11 /12/13

좋아요
ProRealAlgos
ProRealAlgos
2022년 10월 16일
답글 상대:

No problem!

좋아요

Try the products free for 7 days

Easy setup • full version • get-started support

ProRealTime made easy

CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. On average 74% of retail investor accounts lose money when trading CFDs. Past performance is no guarantee of future results. You should consider whether you understand how CFDs work before starting.

Read full terms and conditions

ProRealTime™ is a trademark registered by the third-party entity ProRealTime SAS

We have no link with the ProRealTime™ entity that offers the ProRealTime™ trading software

Copyright ProRealAlgos 580648-4231
Harju maakond, Tallinn, Kesklinna linnaosa, Pille 13, 10173

bottom of page