OPEN-SOURCE SCRIPT

IAN'S SMT

62
How to fix it (pick ONE)
✅ Option A — Treat MNQ as NQ (recommended)

If MNQ should behave identically to NQ:

isNQ = chartNorm == symA_norm or chartNorm == "MNQ1"


or more robust:

isNQ = str.contains(chartNorm, "NQ")


That makes:

NQ1!

MNQ1!

NQH2026
all map to index 0

✅ Option B — Add MNQ as its own symbol (clean but heavier)

Add a 4th symbol slot:

symD = input.symbol("MNQ1!", "Symbol D")


Then:

Update N_SYMS

Add high_i(3), low_i(3)

Expand every SMT array

This works but is a lot of refactoring

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.