I've been jumping around in the documentation and playing around in my editor for about 2 hours trying to convert a bar index and closing price into a SharpDX vector coordinate but can't seem to get it to work.
So I am wanting to use the rightmost bar that will work with scrolling, so I got the index via:
ChartBars.ToIndex
Close.GetValueAt(ChartBars.ToIndex
ChartBars.ToIndex-3
float startX = chartControl.GetXByBarIndex(ChartBars,ChartBars.ToIndex); float startY = chartScale.GetYByValue(ChartBars.ToIndex);
Is there a preferred, simple way of converting a bar index, and a price to a vector?

When I was printing out the vectors I thought I was printing, I realized that the bar index I was printing was changing, but the canvas point I was printing was not. I initially was thinking that something was wrong... but that they in fact should be moving as I scroll the chart... because I was printing a fixed location using the ToIndex. If all that sounds confusing... you can see the 2 vectors created below, and it in fact does what I want it to.
Comment