Let's say my strategy is to buy a stock that has been rising for the past 5 bars. I would write something like this: longCondition = (close > close[1]) and (close[1] > close[2]) and (close[2] > close[3]) and (close[3] > close[4]) and (close[4] > close[5]) However, I have a feeling that there's a sim...