I tried this algo… BUY WHEN CROSSOVER(CLOSE,SMA(CLOSE,50)) SELL WHEN CROSSOVER(SMA(CLOSE,50),CLOSE) And observed the SMA 50 chart. This algo was giving buy sell signals even when there was no cross over. Both graphs were far from each other but still its making signals. It this algo wrong. Also what does that bar (1 bar 2bar… etc.) Mean.? Plzz… help i am beginner.?
NaMasTe TraDeR,
CROSSOVER function identifies crossover conditions on recent candles.
If you want to find crossover only on the last candle, use this work around Tradescript formula:
REF(CLOSE,1) < REF(SMA(CLOSE,50),1) AND CLOSE > SMA(CLOSE,50)
1 Like