I want to use scanner option in Pi so I need a code which will give me results of stocks which have 14 EMA crossed 200 EMA (both bullish and bearish) on previous day (only previous day not before that).
As per the above given condition use day candles
BuyScript:
CROSSOVER(EMA(CLOSE,14),EMA(CLOSE,200))
SellScript:
CROSSOVER(EMA(CLOSE,200),EMA(CLOSE,14))
Thank you it really helped .