Dear all,

Can someone explain why my supertrend indicator is not warming up in this code?

The “STR” in “myplot” should be around 407 but it is around 430. If I run the backtest for a longer period the “STR” eventually becomes correct as enough values are fed into it. But it is not warmed up, which prevents me from live trading my algorithm.

Johan