Yesterday OHLC function in Tradescript

while HHV function represents defined number of bars OHLC, which function represents exactly to get yesterday OHLC, this is required to calculate camarilla levels daily

If you are using day time frame in charts you can use

REF(HIGH,1)