I want a code

if the opening price is greater than previous high a buy signal should be generated

and if the opening price is lesser than previous day low than sell signal should be generated.

NaMasTe TraDeR,

This condition is not supported on Zerodha Pi Scanner.

Manually check this condition Realtime for FnO stocks using the free FataFat Stock Screener