PROTECTED SOURCE SCRIPT
ICT SMT Divergence (Synced + Alerts)

This is a professional-grade tool designed for Inner Circle Trader (ICT) students and price action traders to automatically detect Smart Money Tool (SMT) Divergences.
SMT Divergence is "a crack in the correlation" between correlated assets (e.g., NQ vs. ES, or EURUSD vs. DXY). It reveals the footprint of institutional accumulation or distribution by showing when one asset sweeps liquidity while the other fails to do so.
🚀 Why this indicator is different? (The "Synced" Logic)
Most SMT indicators fail because they rigidly expect both assets to form a High/Low on the exact same candle. However, in live markets, correlated assets often lag or lead each other by a few minutes.
This script solves that problem.
It uses a unique "Driver-Based Synchronization" algorithm:
Main Driver: It monitors your current chart (e.g., NQ) for a confirmed Pivot structure.
Smart Scan: Once a pivot is confirmed, it actively scans the comparison symbol (e.g., ES) within a customizable Time Window (e.g., ±3 bars) to find the true price extreme.
Result: It catches valid SMT Divergences even if the comparison asset peaked 5, 10, or 15 minutes before/after your main chart.
Key Features
✅ Automatic Detection: Identifies both Bullish (Accumulation) and Bearish (Distribution) SMTs.
✅ Correlation Flexibility: Works with positive correlations (NQ vs ES) and negative correlations (EU vs DXY) automatically based on structure logic.
✅ Smart Synchronization: Includes a Time Sync Error setting to tolerate timing differences between assets.
✅ Dual Alert System: Supports both alert() for webhooks and alertcondition() for standard TradingView UI alerts.
✅ Visual Clarity: Draws divergence lines only on valid setups, keeping your chart clean.
How to Use
Apply to Chart: Load the indicator on your preferred timeframe (15m, 1H, and 4H recommended).
Select Comparison Symbol:
If trading Nasdaq (NQ), compare with ES (S&P500) or YM (Dow).
If trading EURUSD, compare with GBPUSD or DXY (Inverse logic applies).
Adjust Sensitivity:
Pivot Lookback: Controls how "sharp" a turn must be to register. (Default: 10).
Time Sync Error: How many bars of tolerance allowed. If assets are volatile and desynchronized, increase this value (Default: 3).
Alerts
Never miss a setup. You can set alerts for:
Bullish SMT: Potential bottoming formations.
Bearish SMT: Potential topping formations.
Any SMT: All divergences.
SMT Divergence is "a crack in the correlation" between correlated assets (e.g., NQ vs. ES, or EURUSD vs. DXY). It reveals the footprint of institutional accumulation or distribution by showing when one asset sweeps liquidity while the other fails to do so.
🚀 Why this indicator is different? (The "Synced" Logic)
Most SMT indicators fail because they rigidly expect both assets to form a High/Low on the exact same candle. However, in live markets, correlated assets often lag or lead each other by a few minutes.
This script solves that problem.
It uses a unique "Driver-Based Synchronization" algorithm:
Main Driver: It monitors your current chart (e.g., NQ) for a confirmed Pivot structure.
Smart Scan: Once a pivot is confirmed, it actively scans the comparison symbol (e.g., ES) within a customizable Time Window (e.g., ±3 bars) to find the true price extreme.
Result: It catches valid SMT Divergences even if the comparison asset peaked 5, 10, or 15 minutes before/after your main chart.
Key Features
✅ Automatic Detection: Identifies both Bullish (Accumulation) and Bearish (Distribution) SMTs.
✅ Correlation Flexibility: Works with positive correlations (NQ vs ES) and negative correlations (EU vs DXY) automatically based on structure logic.
✅ Smart Synchronization: Includes a Time Sync Error setting to tolerate timing differences between assets.
✅ Dual Alert System: Supports both alert() for webhooks and alertcondition() for standard TradingView UI alerts.
✅ Visual Clarity: Draws divergence lines only on valid setups, keeping your chart clean.
How to Use
Apply to Chart: Load the indicator on your preferred timeframe (15m, 1H, and 4H recommended).
Select Comparison Symbol:
If trading Nasdaq (NQ), compare with ES (S&P500) or YM (Dow).
If trading EURUSD, compare with GBPUSD or DXY (Inverse logic applies).
Adjust Sensitivity:
Pivot Lookback: Controls how "sharp" a turn must be to register. (Default: 10).
Time Sync Error: How many bars of tolerance allowed. If assets are volatile and desynchronized, increase this value (Default: 3).
Alerts
Never miss a setup. You can set alerts for:
Bullish SMT: Potential bottoming formations.
Bearish SMT: Potential topping formations.
Any SMT: All divergences.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.