Thanks for your reply.
So your chart bars are 1 minute and you have one added data series which is a 1 tick bid series of the chart instrument.
When the 1 minute bars call OnBarUpdate this would be BarsInProgress == 0. The current bar data would be access by Opens[0][0], Highs[0][0], Lows[0][0], and Closes[0][0]. The previous bar would be accessed by Opens[0][1], Highs[0][1], Lows[0][1], and Closes[0][1].
To help with some of the concepts that may not be clear I have created a short example. I applied this to a futures chart of just 1 day of data to keep the amount of tick information down.
It will add a 1 tick bid series.
I created a pretend entry and exit by using the bar numbers from the chart. From charts bars 21 - 30 was the duration of the "trade" and during that period I pulled each tick and checked for the max value. On the 30th bar, I print the value found and draw a vertical line on the chart to show where it occurred.
I hope this helps.
ExampleMaxValue.zip
Comment