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

196 views4 comments

Recent Posts

See All

4 comentarios


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

Me gusta
ProRealAlgos
ProRealAlgos
16 oct 2022
Contestando a

No problem!

Me gusta