OPEN-SOURCE SCRIPT
IAN'S SMT

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
✅ 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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.