OPEN-SOURCE SCRIPT
Aggiornato Divergenz Strategie (visible & stable)

Divergence Strategy (Visible & Stable)
📖 Description:
This Pine Script strategy detects bullish and bearish divergences across multiple indicators and visualizes them clearly on the chart. It includes filter controls and advanced risk management options for backtesting and live alerts.
🔍 Core Features:
✅ Divergence Detection for:
RSI (default active)
MACD (optional)
OBV (optional)
📊 Clear Visualization:
Entry arrows (long/short)
Optional debug plots to analyze signal conditions
🧠 Filter System:
Trend filter (EMA-based)
Support/Resistance filter (based on swing points)
Cooldown filter (minimum bars between entries)
📈 Backtest-ready:
Customizable Take Profit and Stop Loss
Strategy performance viewable in TradingView strategy tester
⚙️ Inputs & Controls:
Toggle each divergence source (RSI, MACD, OBV)
Enable/disable swing, trend, SR zone, and cooldown filters
Debug mode to display internal filter states
Full control over EMA, SR lookback, buffer %, TP/SL levels
🔔 Alerts:
Alert conditions for bullish and bearish divergences are included
📖 Description:
This Pine Script strategy detects bullish and bearish divergences across multiple indicators and visualizes them clearly on the chart. It includes filter controls and advanced risk management options for backtesting and live alerts.
🔍 Core Features:
✅ Divergence Detection for:
RSI (default active)
MACD (optional)
OBV (optional)
📊 Clear Visualization:
Entry arrows (long/short)
Optional debug plots to analyze signal conditions
🧠 Filter System:
Trend filter (EMA-based)
Support/Resistance filter (based on swing points)
Cooldown filter (minimum bars between entries)
📈 Backtest-ready:
Customizable Take Profit and Stop Loss
Strategy performance viewable in TradingView strategy tester
⚙️ Inputs & Controls:
Toggle each divergence source (RSI, MACD, OBV)
Enable/disable swing, trend, SR zone, and cooldown filters
Debug mode to display internal filter states
Full control over EMA, SR lookback, buffer %, TP/SL levels
🔔 Alerts:
Alert conditions for bullish and bearish divergences are included
Note di rilascio
Divergence Strategy (Visible & Stable)📖 Description:
This Pine Script strategy detects bullish and bearish divergences across multiple indicators and visualizes them clearly on the chart. It includes filter controls and advanced risk management options for backtesting and live alerts.
🔍 Core Features:
✅ Divergence Detection for:
RSI (default active)
MACD (optional)
OBV (optional)
📊 Clear Visualization:
Entry arrows (long/short)
Optional debug plots to analyze signal conditions
🧠 Filter System:
Trend filter (EMA-based)
Support/Resistance filter (based on swing points)
Cooldown filter (minimum bars between entries)
📈 Backtest-ready:
Customizable Take Profit and Stop Loss
Strategy performance viewable in TradingView strategy tester
⚙️ Inputs & Controls:
Toggle each divergence source (RSI, MACD, OBV)
Enable/disable swing, trend, SR zone, and cooldown filters
Debug mode to display internal filter states
Full control over EMA, SR lookback, buffer %, TP/SL levels
🔔 Alerts:
Alert conditions for bullish and bearish divergences are included
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.