PROTECTED SOURCE SCRIPT
Aggiornato SMT Divergences By Rootkit

How It Works:
Heikin Ashi Smoothing
Instead of using raw OHLC price data, the script applies Heikin Ashi smoothing to reduce noise and better identify pivot highs and lows.
Pivot Detection
It looks for local swing highs and lows using a user-defined lookback period (Pivot Lookback). These are used to detect potential divergences.
SMT Divergence Logic
An SMT divergence is identified when:
A pivot low occurs on the main chart.
But one or more of the comparison symbols makes a higher low instead (or lower high for bearish SMT).
This signals a disagreement between instruments, often attributed to smart money accumulation or distribution.
Trend Filter
To reduce false signals, the script only allows:
Buy signals during an uptrend
Sell signals during a downtrend
The trend is determined by comparing Heikin Ashi highs/lows to previous bars.
Signal Markers
BUY labels appear below bars at valid bullish SMT divergences.
SELL labels appear above bars at valid bearish SMT divergences.
Optional trend lines visually connect the last significant pivot to the current one.
⚙️ Inputs:
Pivot Lookback – Number of bars for swing high/low detection.
Symbol A/B/C – Up to 3 comparison symbols (futures, indices, etc.).
Toggle Each Symbol – Enable or disable any comparison ticker.
Custom Colors – Choose your own line colors for buy/sell signals.
🧠 Why It Matters:
SMT divergence is used by professional traders to spot early signs of accumulation/distribution, often before price reverses. This script helps you detect these signals automatically while keeping them filtered by overall market trend.
Heikin Ashi Smoothing
Instead of using raw OHLC price data, the script applies Heikin Ashi smoothing to reduce noise and better identify pivot highs and lows.
Pivot Detection
It looks for local swing highs and lows using a user-defined lookback period (Pivot Lookback). These are used to detect potential divergences.
SMT Divergence Logic
An SMT divergence is identified when:
A pivot low occurs on the main chart.
But one or more of the comparison symbols makes a higher low instead (or lower high for bearish SMT).
This signals a disagreement between instruments, often attributed to smart money accumulation or distribution.
Trend Filter
To reduce false signals, the script only allows:
Buy signals during an uptrend
Sell signals during a downtrend
The trend is determined by comparing Heikin Ashi highs/lows to previous bars.
Signal Markers
BUY labels appear below bars at valid bullish SMT divergences.
SELL labels appear above bars at valid bearish SMT divergences.
Optional trend lines visually connect the last significant pivot to the current one.
⚙️ Inputs:
Pivot Lookback – Number of bars for swing high/low detection.
Symbol A/B/C – Up to 3 comparison symbols (futures, indices, etc.).
Toggle Each Symbol – Enable or disable any comparison ticker.
Custom Colors – Choose your own line colors for buy/sell signals.
🧠 Why It Matters:
SMT divergence is used by professional traders to spot early signs of accumulation/distribution, often before price reverses. This script helps you detect these signals automatically while keeping them filtered by overall market trend.
Note di rilascio
How It Works:Heikin Ashi Smoothing
Instead of using raw OHLC price data, the script applies Heikin Ashi smoothing to reduce noise and better identify pivot highs and lows.
Pivot Detection
It looks for local swing highs and lows using a user-defined lookback period (Pivot Lookback). These are used to detect potential divergences.
SMT Divergence Logic
An SMT divergence is identified when:
A pivot low occurs on the main chart.
But one or more of the comparison symbols makes a higher low instead (or lower high for bearish SMT).
This signals a disagreement between instruments, often attributed to smart money accumulation or distribution.
Trend Filter
To reduce false signals, the script only allows:
Buy signals during an uptrend
Sell signals during a downtrend
The trend is determined by comparing Heikin Ashi highs/lows to previous bars.
Signal Markers
BUY labels appear below bars at valid bullish SMT divergences.
SELL labels appear above bars at valid bearish SMT divergences.
Optional trend lines visually connect the last significant pivot to the current one.
⚙️ Inputs:
Pivot Lookback – Number of bars for swing high/low detection.
Symbol A/B/C – Up to 3 comparison symbols (futures, indices, etc.).
Toggle Each Symbol – Enable or disable any comparison ticker.
Custom Colors – Choose your own line colors for buy/sell signals.
🧠 Why It Matters:
SMT divergence is used by professional traders to spot early signs of accumulation/distribution, often before price reverses. This script helps you detect these signals automatically while keeping them filtered by overall market trend.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.