Code for gap

can someone pls provide me the script code for gap stocks:

buy-open price is greater than the previous day high

sell-open price is lower than the previous day low

hElLO tRaDeR,

Scanning opening GAP’s with Pi Scanner is still a grey area.

If you are a day trader, check this link between 9:08AM and 9:15AM to see stocks that are gapping up or down.

https://www.nseindia.com/live_market/dynaContent/live_watch/pre_open_market/pre_open_market.htm