HeikenAshi8 does do not get rendered initially

They only get rendered after I interact with the chart. I am running a strategty backtest and draw heiken ashi candles in a separate panel.

I use a (slightly modified, so that it renders in a separate panel) version of:

I tried to add:

if (Count - 2 == CurrentBar && !didInvalidate && ChartControl != null) {
	ChartControl.InvalidateVisual();
	didInvalidate = true; // Prevent multiple invalidations
}

In OnBarUpdate, but it’s not called since ChartControl is null.
I also added this to OnRender, but OnRender seems to not get called before I interact with the chart.

Once I drag or click on the chart, the HeikenAshi bars appear.

Is there a way to force them to be rendered without interacting with the chart manually?