I've got really tedious issue with getting x value of each bar. I want to draw rectangles or boxes to be spreaded at each side of the candles on the chart.
I used ChartControl.GetXByBarIndex property to identify x value for the rectangles to drawn on each bar. on the current running bars the ninja draws rectangles well, however it shifts all of them to the next opening bar which is the thing that I don't want. I want rectangles on each candle when it starts to tick.
I tried to store x index value for each bar in sortedList type but ninja behave unexpectedly and rectangles disappear immediately. I've attached two pictures describing what I am saying here.
Regards
Comment