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.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.