Need a code for 200 ema

i need a code to scan stocks which trading below 200ema for today and its high must be below 200ema.plz provide code for pi.thnk u

200EMA of which time frame ?

1 Like

5 min
on 1 day chart

You can not check High or low of today. only LTP can be checked. OR your can check current candle high, low with 200EMA

LAST < EMA(CLOSE,200)