Code for Scanning Scripts on EOD price basis

Hi

Need help for following:

CLOSE>EMA(CLOSE,5)

I need to apply this condition on all F&O stocks .

The close price is closing price for that day

I want to run this scanner everyday after end of market hours and find out which stocks have closed above their 5 EMA.

Please guide

Regards

hElLO tRaDeR,

The Pi Scanner generates alerts on realtime data during the trading hours and NOT AFTER MARKET HOURS.

To identify stocks meeting your strategy you need to run the scanner before 3:30PM just before the market closes with the following settings:

PERIODICITY = HOUR

BAR INTERVAL = 8

DAYS = 10

SCANNER SCRIPT:

LAST > EMA(CLOSE,5)

Predefined watchlist for complete FnO stocks not available as of now, Nifty 50 list is available, load this one and manually add the rest.