Something is strange. I did a for loop:
for(int barIndex = ChartBars.GetBarIdxByX(chartControl, cursorPointX); barIndex <= index1; barIndex++) { }
int clickedBarIndex = (ChartBars.GetBarIdxByX(chartControl, cursorPointX));
But Printing barIndex in the for loop return the wrong bars. How is it possible?
For exemple, clickedBarIndex = 4700 but the for loop return bars 4750 to 4800. 4800 is index1. It should return bars 4700 to 4800 ??
Ty
Comment