Is there any function for previous day close,high,low,open, volume in Pi trade script?

Is-there-any-function-for-previous-day-close,high,low,open ,volume in Pi trade script? If not then how to write them?Please suggest.

if you are using day time frame,  you can refer the previous candle with


Hi… am also looking for same… did u happen to find answer for this…??