I'm trying to see if there has been a crossing of a 63 SMA with a 63 SMA that has a 21 bar offset, within the last 7 bars, so I copied this directly out of the strategy wizard
CrossAbove(SMA(63), SMA(63), 1)
and placed it in my indicator inside an MRO statement;
int time = MRO(delegate {return CrossAbove(SMA(63), SMA(63), 1);},1,7);
, but it doesn't work. I also added the following line before the above MRO;
if (CurrentBar < 84) return;
Can anyone point out my error?
Thanks,
Safetrading
Comment