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.