int intFirstBarOnChart = Times[1].Count - BarsArray[1].GetBar(Time[Time.Count - FirstBarIndexPainted]) -2;
I have 2 data series in the chart. I generate the indicator in the 1 minute time frame, and display it on the chart, regardless of the original dataseries on the chart. The indicator uses the first painted bar and last painted bar on the chart and then finds the corresponding 1 minute timeframe bars to generate the data to display.
Comment