The number of bars shown on the chart is not in the strategy's control, but I'd like the strategy to be able to determine the maximum and minimum prices for however many bars are shown. I don't care about the maximum or minimum prices of any bars off the left or right edges of the chart. I only care about the bars actually visible. Obviously, this maximum or minimum would change if the chart is scrolled left or right.
Does that make sense?
Any suggestions as to how this can be done?
Thanks.
Comment