pine-script-uncapped-qty-leverage-blow-up-on-low-atr

Position sizing formula riskAmt / slDistance without a maximum cap creates theoretically unlimited leverage when ATR collapses (low-volatility or illiquid instruments). Cap with math.min(qtyRaw, math.floor(strategy.equity / close)) to prevent catastrophic over-sizing in abnormal regime conditions.