rottentrade
Member
How would I say something like when the price crosses below the moving average 20 (or any condition for that matter), then skip the calculation for the current bar and keep the value of the previous close. So if the bar number is 70 when the crossover happened, the bar count goes from 68, 69, x, 71...