Can TradeScrip refer to multiple time-frames?

I am trying to create an alert using TradeScript in Pi… need to compare ‘previous day’s volume’ with current ‘5-min candle volume’. Since the scanner sets “Periodicity” and “Bar Interval” right in the beginning, it practically locks the time-frame which is being referred to in the Tradescript/alert.

Just wondering if there is a simple code for comparing volumes (or any other quantity) in different time frames.

tradescript do not support multiple time frames on single script and time frames can not be defined in tradescript.

thanks dear. looks like I need coding in AFL…