OPEN-SOURCE SCRIPT
SMT Divergence Multi-TF

# Smart Money Technique (SMT) — Multi-Timeframe, Multi-Asset Divergence Tracker
**Map every SMT divergence across timeframes and correlated assets — without losing your chart to clutter.**
Smart Money Technique (SMT) divergences are one of the cleanest tools in the ICT toolkit: when two correlated assets fail to confirm the same swing, the divergence reveals that liquidity is being engineered on one side of the move. This indicator detects SMT divergences across up to three comparison assets simultaneously, across eight timeframes, and renders them with smart label handling that keeps the chart readable even when divergences stack.
## Features
**Multi-asset comparison** — track up to 3 comparison assets at once, each independently toggleable. Defaults to MNQ/MES/MYM but accepts any correlated pair (e-minis, micros, equity index ETFs, sector or FX correlations).
**Eight timeframes** — 1m, 3m, 5m, 15m, 30m, 1h, 4h, and Daily, each toggleable independently. Higher timeframes render with thicker dashed lines for instant TF identification at a glance.
**Wick-to-wick line rendering** — divergence lines anchor precisely at the swing wicks, not approximations. Uses bar-time anchoring so lines stay accurate across all timeframes without drifting.
**Smart label collision handling** — when multiple SMTs stack at the same swing point (e.g. 5m + 15m + 30m confluence), labels are automatically offset vertically using ATR-scaled spacing. No overlapping text, no garbled stacks. Smallest timeframe sits closest to the wick; higher timeframes layer outward as visual confluence indicators.
**Clean ticker labels** — strips exchange prefixes and contract suffixes automatically, so `CME_MINI:MNQ1!` displays as just `MNQ`. Each label shows asset and timeframe (e.g. `MNQ · 15m`).
**Configurable colors and styles** — every comparison asset has its own line color. Bullish and bearish SMTs can share a color or split independently for additional visual distinction.
**Per-asset, per-timeframe alerts** — bullish and bearish alert conditions for every combination, so you can route signals by setup quality rather than getting pinged on every minor swing.
**Non-repainting** — uses confirmed pivots and lookahead-off security calls. What prints in real time is what stays.
## Built For
ICT, Quarterly Theory, and Wyckoff traders who want SMT confluence visualized across timeframes and assets simultaneously. Particularly valuable when scanning for high-conviction setups where a single swing point shows divergence across multiple correlated indices and timeframes — the kind of confluence that doesn't survive on charts littered with overlapping text and misaligned lines.
## Settings
- Up to 3 configurable comparison assets (symbol, color, enable per asset)
- 8 independent timeframe toggles
- Pivot strength and cross-asset matching tolerance
- Label stacking: ATR multiplier, max stack height, time tolerance
- Line management: per-TF line limits and style customization
- Ticker cleanup toggle for clean displayed names
**Map every SMT divergence across timeframes and correlated assets — without losing your chart to clutter.**
Smart Money Technique (SMT) divergences are one of the cleanest tools in the ICT toolkit: when two correlated assets fail to confirm the same swing, the divergence reveals that liquidity is being engineered on one side of the move. This indicator detects SMT divergences across up to three comparison assets simultaneously, across eight timeframes, and renders them with smart label handling that keeps the chart readable even when divergences stack.
## Features
**Multi-asset comparison** — track up to 3 comparison assets at once, each independently toggleable. Defaults to MNQ/MES/MYM but accepts any correlated pair (e-minis, micros, equity index ETFs, sector or FX correlations).
**Eight timeframes** — 1m, 3m, 5m, 15m, 30m, 1h, 4h, and Daily, each toggleable independently. Higher timeframes render with thicker dashed lines for instant TF identification at a glance.
**Wick-to-wick line rendering** — divergence lines anchor precisely at the swing wicks, not approximations. Uses bar-time anchoring so lines stay accurate across all timeframes without drifting.
**Smart label collision handling** — when multiple SMTs stack at the same swing point (e.g. 5m + 15m + 30m confluence), labels are automatically offset vertically using ATR-scaled spacing. No overlapping text, no garbled stacks. Smallest timeframe sits closest to the wick; higher timeframes layer outward as visual confluence indicators.
**Clean ticker labels** — strips exchange prefixes and contract suffixes automatically, so `CME_MINI:MNQ1!` displays as just `MNQ`. Each label shows asset and timeframe (e.g. `MNQ · 15m`).
**Configurable colors and styles** — every comparison asset has its own line color. Bullish and bearish SMTs can share a color or split independently for additional visual distinction.
**Per-asset, per-timeframe alerts** — bullish and bearish alert conditions for every combination, so you can route signals by setup quality rather than getting pinged on every minor swing.
**Non-repainting** — uses confirmed pivots and lookahead-off security calls. What prints in real time is what stays.
## Built For
ICT, Quarterly Theory, and Wyckoff traders who want SMT confluence visualized across timeframes and assets simultaneously. Particularly valuable when scanning for high-conviction setups where a single swing point shows divergence across multiple correlated indices and timeframes — the kind of confluence that doesn't survive on charts littered with overlapping text and misaligned lines.
## Settings
- Up to 3 configurable comparison assets (symbol, color, enable per asset)
- 8 independent timeframe toggles
- Pivot strength and cross-asset matching tolerance
- Label stacking: ATR multiplier, max stack height, time tolerance
- Line management: per-TF line limits and style customization
- Ticker cleanup toggle for clean displayed names
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.