I am writing and indicator that custom paints candlestick bodies and wicks (attached indicator). When the bars are painted by Ninjatrader, it correctly paints the first bar on the chart as a full bar (first attached picture). However, when I apply my custom drawing, the first bar is always cut in half (second and third picture).
I have tried using BarWidth and GetBarPaintWidth to see if that would make a difference and BarWidth seems to be the most accurate. I am obviously doing something wrong but for some reason cannot figure out how to get this going well, maybe I have been staring at the problem too long :-)
Has anyone had or solved this problem maybe? Any help would be highly appreciated.
Regards,
John
Comment