Scanner code for below condition

Hi,

i want a scanner code for below condition

1st scan :

open price for stocks higher than previous day high

2nd scan:

open price for stocks lower than previous day low

hElLO tRaDeR,

Watch this link after 9:09 AM for all stocks opening with a GAP , the easiest way:

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

hi, i want to know the open price is greater than previous day high (or) open price is lower than previous day low. this link shows only shows gapup or gap down , i want to scan gap up or gap down with breaking previous day range