Code for opening

Hi,

How to compare values with a value of certain time frame in zerodha pi backtesting.?

For example comparing opening one hour high and low with the respective bars coming after that ?

you can use REF Function, The REF function is used whenever you want to reference a value at any specific point in a vector