I am monitoring followin system, which seems tu make gains.
There is but something in the code which impedes to active the automatic orders in Prorealtime. Could someone help me kindly to understand which is the problem?
Many thanks in advance!!
lorenzo
DEFPARAM CumulateOrders = false
Timeframe(Daily,UpdateOnClose)
DDhigh = high
DDlow = low
Timeframe(default)
IF OnMarket AND DDhigh <> DDhigh[1] THEN
SELL AT Market
EXITSHORT AT Market
ENDIF
IF close < DDhigh AND Not LongOnMarket THEN
BUY 1 CONTRACT AT DDhigh STOP
ENDIF
IF close > DDlow AND Not ShortOnMarket THEN
SELLSHORT 1 CONTRACT AT DDlow STOP
ENDIF
set stop ploss 80
set target pprofit 40