High and low nifty stocks pi coding


I am using Zerodha Pi

I want Screener code which follows following conditions

I want to apply this screener to Nifty Stocks

Conditions are

1 Stock CMP ( Current Market Price ) is above last week high


2 Stock CMP is below last week low.

Can we apply above conditions to be satisfied and result is to be displayed.

Please help

In Pi scanner works only on intraday basis with live LTP candles so it is not possible to define weekly high/low in tradescript

1 Like