Suppose I pick an arbitrary DateTime, call it myTime, that comes after the time of the first bar painted on the chart, i.e. myTime > ChartControl.FirstTimePainted.
Is there a way to find the bar index and bar time of the first bar on the chart that comes at, or after myTime? Will the xCoordinate approach work on this?
Any suggestions would be greatly appreciated. Thanks.
Currently I am using:
int startBarIndex = ChartBars.GetBarIdxByTime(ChartControl, startDateTime); startDateTime = ChartBars.GetTimeByBarIdx(ChartControl, startBarIndex);
Comment