OPEN-SOURCE SCRIPT
ICT SMT Divergence Lines - Enhanced

This indicator identifies and highlights Smart Money Technique (SMT) divergence between two user-selected symbols across any timeframe. It compares the last two completed candles of both symbols and marks potential SMT signals only when market context aligns with smart money principles.
⚡ Key Features
✅ SMT Bullish Signal
Symbol 1 forms a lower low compared to its prior candle.
Symbol 2 forms a higher low compared to its prior candle.
The previous candle on the chart was bearish (close < open).
✅ SMT Bearish Signal
Symbol 1 forms a higher high compared to its prior candle.
Symbol 2 forms a lower high compared to its prior candle.
The previous candle on the chart was bullish (close > open).
✅ Visual Representation
Draws a clean, subtle line between the two SMT candles — green for bullish SMT and red for bearish SMT — making divergence easy to spot.
Optional small triangle markers above or below the bar where SMT is detected.
Old lines are automatically removed to keep the chart uncluttered.
✅ Multi-timeframe compatible
Works on any chart timeframe.
Compares the last two completed candles in the current chart timeframe, or can be adapted for a fixed higher timeframe.
⚡ Key Features
✅ SMT Bullish Signal
Symbol 1 forms a lower low compared to its prior candle.
Symbol 2 forms a higher low compared to its prior candle.
The previous candle on the chart was bearish (close < open).
✅ SMT Bearish Signal
Symbol 1 forms a higher high compared to its prior candle.
Symbol 2 forms a lower high compared to its prior candle.
The previous candle on the chart was bullish (close > open).
✅ Visual Representation
Draws a clean, subtle line between the two SMT candles — green for bullish SMT and red for bearish SMT — making divergence easy to spot.
Optional small triangle markers above or below the bar where SMT is detected.
Old lines are automatically removed to keep the chart uncluttered.
✅ Multi-timeframe compatible
Works on any chart timeframe.
Compares the last two completed candles in the current chart timeframe, or can be adapted for a fixed higher timeframe.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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 open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.