Hello All,

Sorry in advance for this newbie question. If I want my algorithm to use data from a previous a candle, is a rolling window the only way to do do that? For example, if I want my algorithm to buy when the RSI close two candles prior was < 30 and the most recent RSI close bounced by at least 5, what would be the most efficient way to code that?