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
doesnt work when we copy past the link there is 3 fail lign 11 /12/13