Code 1
if (CountIf(delegate {return CrossAbove(WMA(Fast), WMA(Slow), 1);}, 5) >= 1)
EnterLongLimit(DefaultQuantity, Close[0] + -10 * TickSize, "Crossover Buy");
Code 2
int barsAgo = MRO(delegate {return CrossAbove(WMA(Fast), WMA(Slow), 1);}, 1, 5);
if (barsAgo > -1)
EnterLongLimit(DefaultQuantity, Close[barsAgo] + -10 * TickSize, "Crossover Buy");
Comment