EMA Crossovers in scanner does not match with actual lines

I am using "CROSSOVER(EMA(CLOSE,3),EMA(CLOSE,15)) " in scanner script and when load it, it shows some scripts with date and time… but when i see the chart it is actually not crossing.

what mistake i might have done…? please suggest

Hello Trader,

Your code is CORRECT. However,

Pi Scanner generates alerts only on live intraday data, scanning through MINUTE or HOUR candles.

Pi Scanner does not generate alerts on EOD candles.

To test your Tradescript code after the market hours you need to use the BackTest engine on Pi.

Also, you will need to use a simple EXIT LONG SCRIPT such as: CLOSE<OPEN during backtesting.