Show indicators when backtesting

 

Hy guys,

Does anyone know what a hell some times when backtesting the indicator does not show up in the chart and some times it does?

For me, most of the times the indicator doesn´t show but using exactly the same code some times it does, is there some way to force it?

I know I can use a template for that but it is not efficient if is there some way to do it by code.

Thanks!