Assuming you've added a secondary time series in State.Configure like so:
AddDataSeries(BarsPeriodType.Minute, 60); //S1 or Series 1, BarsArray[1]
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
int rightMostBar = ChartBars.ToIndex; //Note:First bar on chart is 0
int leftMostBar = ChartBars.FromIndex; //Note:First bar on chart is 0
SharpDX.Direct2D1.SolidColorBrush solidColorBrush;
for (int i=leftMostBar; i <= rightMostBar; i++) //Start at necessary List position
{
float currentX = chartControl.GetXByBarIndex(ChartControl.BarsArray[0], i);
...
...
...
}
I see you could change the "BarsArray" to get the XbyBarIndex, but that is only a piece of it.
Thanks,
FP

Comment