just to clarify ..thats the code for the long version..which works ok (on 30min dax) , awsm (5,34) <0
defparam cumulateorders=true
defparam flatbefore=080000
defparam flatafter=173000
ChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)
if ChaosAO>ChaosAO[1] and ChaosAO[1]0 , how has the code to be ?
like this ?
ChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)
if ChaosAO>ChaosAO[1] and ChaosAO[1]>ChaosAO[2] and ChaosAO>0 then
buy 1 contract at market
endif
set target %profit 0
set stop %loss 0.40