I have this code to calculate the highest high of the last 20 bars
double recent_highest_value = MAX(High, 20)[0];
However, I really want the highest high of the last 19 historic bars, not including the current bar. In other words, I need a concise code for calculating the highest value of bars[1...20], where bar[0], is the current bar. How can I do that?
Thanks,
Matt
Comment