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
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。