What is better for overall performance?
DrawRegion("tag", CurrentBar, 0, series1, series2, outlineColor, backColor, opacity);
or
DrawRegion("tag"+CurrentBar, 1, 0, series1, series2, outlineColor, backColor, opacity);
"Calculate on bar close" == true, series1 and series2 values are set once the bar is closed and then remain unchanged.
IMO, in the first case we have unnecessary redraw of whole region besides the previous bar, but keep single DrawRegion object and in the second case the indicator updates only needed chart area between last and previous bar, but instead we get separate DrawRegion object for each bar. So what is better for overall CPU load?
Thanks!
Comment