Below the code of SQX_ATR indicator, in some cases value returned by Minlist is ZERO.
Please always check before trying to divide by ZERO ;)
Check all indicators.
inputs:
Period( numericsimple );
Value1 = Minlist(Period, CurrentBar);
if CurrentBar = 1 then
SQ_ATR = TrueRange
else
SQ_ATR = (SQ_ATR[1] * (Value1 - 1) + TrueRange) / Value1;
{ Force series function, since otherwise this function can verify as simple, but needs to be called at every bar to return correct results }
If false then Value10 = SQ_ATR[1];