What's the best way of handling uneven bar width due to scaling?

I’m working on a new ChartStyle that changes how bars are drawn based on bar width. Unfortunately ninjatrader scales bars unevenly, which means that I cannot simply change bar look when width is at certain value because not all candles are that size. Any ideas how to handle it?

UnevenScaling

1 Like

I figured it out: just use the size of the first bar to decide the look of all bars. Doh!

1 Like

It helps with resource utilization. Instead of drawing tiny rectangles that are not visible anyway - transition to drawing lines. Makes the chart cleaner looking too.

1 Like