Here is what I am running a simple signal on 2 data series:
Code: Select all
inputs: target(70),stoploss(70);
if marketposition = 0 and (xaverage(close,10) > xaverage(close,20)) and (xaverage(close data2,10) > xaverage(close data2,20)) then buy 1 contracts next bar open;
if marketposition = 0 and (xaverage(close,10) < xaverage(close,20)) and (xaverage(close data2,10) < xaverage(close data2,20)) then sellshort 1 contracts next bar open;
setstopcontract; setstoploss(stoploss); setprofittarget(target);
Is there a problem with the above?
Many thanks,