Multi-Oscillator Divergence Detection Indicator for TradingView
Catch divergences the moment they confirm. Divergence Radar scans price against your chosen oscillator, detects regular and hidden bull/bear divergences in real time, and prints clean, validated lines on both panes — with a fast L13·R1 zigzag that is non-repainting by design.
Divergence Radar is an invite-only TradingView indicator built around a single question: is price agreeing with momentum, or is something quietly breaking underneath? It pairs a fast L13·R1 zigzag with a configurable oscillator (RSI, MFI, Stoch, CCI, CMO, COG, ROC or W%R), compares pivot-to-pivot ratios on price versus oscillator, and prints four divergence types — regular and hidden, bullish and bearish — directly on both panes.
Most divergence scripts either repaint, lag by a dozen bars, or fire on every wiggle. Divergence Radar takes a different route: a left-lookback of 13 bars confirms a meaningful pivot, while a right-confirmation of just 1 bar means the pivot — and any divergence tied to it — is locked in after a single closed bar. Once printed, the line will not move. Once invalidated by price, it is marked as broken.
How it supports your process: Divergence Radar does not predict tops or bottoms and is not a signal service. It surfaces a measurable disagreement between price and momentum — and only when that disagreement passes a structural validation step — so you can use it as one input alongside your own market read, structure work and risk plan.
Under the hood, every confirmed pivot is stored with its oscillator value, price, MA reference and pivot-to-pivot ratio. When a new pivot in the same direction prints, the engine compares price ratio versus oscillator ratio, checks the prevailing trend (zigzag slope, MA slope, or an external trend source), validates that no intermediate bar broke the divergence line, and only then draws it. The result: fewer false prints, faster confirmation, and a clean read on either side of the chart.
Regular Bullish (lower price, higher oscillator) and Bearish (higher price, lower oscillator), plus Hidden Bullish and Hidden Bearish — each colour-coded with a clear D or H label.
Pick from RSI, MFI, Stoch, CCI, CMO, COG, ROC and Williams %R — or plug in any external oscillator series of your choice.
Fast non-repainting pivot detection: 13-bar left lookback for quality, 1-bar right confirmation for speed. Pivots lock in after a single closed bar.
Divergence lines and D/H labels are drawn on both the oscillator pane and the price pane (via force_overlay) so you do not have to mentally map between them.
Choose how trend context is judged: Zigzag slope (default), an SMA/EMA/WMA/RMA moving average, or an external trend source — so divergences are read in their proper regime.
Before a divergence is drawn, every intermediate bar between the two pivots is checked. If price or oscillator breached the line in between, the divergence is rejected — no cluttered false prints.
Each printed divergence is tracked. Once price crosses through its end level, it is internally flagged as broken — so the Data Window only reports active divergences in the "last" status.
Hover any label for divergence type, price, oscillator value, and price/oscillator ratios. A green-themed table in the top right shows oscillator, current value, detection mode and repaint status at a glance.
Toggle alerts independently for Bullish, Bearish, Bullish Hidden and Bearish Hidden — fires once per bar close so you get notified the moment a divergence confirms.
Open the Indicators menu → Invite-Only Scripts → select Divergence Radar [ToolTack] and apply it to your chart. It will load below price with a green-themed oscillator and a status table top right.
RSI (default, length 14) works for most setups and is the most widely read divergence engine. Switch to MFI if volume matters, Stoch for short-term swings, or CCI/CMO/ROC/W%R if your strategy is already calibrated to them.
Zigzag (default) reads trend from the indicator's own pivot slope — clean and self-contained. Moving Average compares price to a configurable SMA/EMA/WMA/RMA (default SMA 200). External lets you plug in any series as the trend source.
All four types are on by default. Disable Hidden divergences if you only trade reversals (regular D), or disable regular if you are running a trend-continuation system that only needs Hidden H signals.
Green "D" = bullish regular, red "D" = bearish regular, teal "H" = bullish hidden, orange "H" = bearish hidden. The status table confirms which oscillator is active, its current value and that the engine is non-repainting (Repaint: NO).
Cross-check every divergence against support/resistance, market structure and your own bias before considering a position. Divergence is context — not a trigger by itself.
Educational examples only — always test before using real capital.
Price prints a lower low into a key support level while the oscillator prints a higher low — a green "D" confirms. Plan long entries above the second pivot with stops below the support; the divergence is invalidated if price closes back through that low.
Higher high in price, lower high in oscillator at a major resistance — a red "D" appears. Tighten stops on longs or wait for a structural break before short entries. Watch the "broken" status: a clean break above the second pivot is your invalidation.
In an established uptrend, price prints a higher low while the oscillator prints a lower low — a teal "H" flags hidden bullish. Treat as a pull-back-in-trend cue; align entries with the broader trend filter (MA slope or external source) before sizing in.
Price prints a lower high but the oscillator prints a higher high — an orange "H" appears. Use as confirmation that the corrective bounce is fading; combine with a lower-high structure break for a higher-conviction short.
Run two instances of Divergence Radar — one on RSI, one on MFI. When both fire the same divergence type at the same pivot, the confluence (price + momentum + volume) carries materially more weight than either alone.
Enable only the divergence types you trade, wire up the built-in "Alert :" condition, and let TradingView ping you on bar close. Useful for active session monitoring across a watchlist without staring at every chart.
Reminder: these are educational frameworks, not trade recommendations. Divergence is a context tool — it can persist for many bars and is not directional by itself. Always validate ideas on historical data and in a simulator before risking real capital, and size positions within your risk plan.
Divergence Radar becomes more powerful when paired with tools that frame where price is and where it is going. Stacking complementary ToolTack utilities turns a momentum signal into a complete read.
Align divergences with BOS / CHoCH and Fibonacci confluence zones for higher-conviction reversal reads.
Filter signals: trade regular divergences at levels, hidden divergences between levels in the trend direction.
Confirm divergences with large-print activity at the same pivot — momentum disagreement plus institutional flow is a powerful combo.
Use VWAP as the fair-value anchor; divergences near anchored VWAP often carry more weight than isolated mid-range divergences.
Size stops with ATR so a noisy oscillator wiggle near a divergence does not force premature exits.
Standardise stops, targets and position sizing on every divergence-informed trade — the edge is consistency, not prediction.
Get all 28+ tools activated in 4 simple steps.
After purchasing your plan, log in to your ToolTack account and navigate to your personal dashboard. This is your command centre for managing your subscription and tools.
Enter your exact TradingView username in the designated field. Make sure it matches your TradingView profile exactly — this is how access is granted.
The ToolTack team will activate the tools on your TradingView account within 24 hours. You will receive a confirmation email once activation is complete.
Open TradingView → Indicators → Invite-Only Scripts. Your ToolTack indicators, screeners, dashboards and strategies will be ready to add to your charts.
One subscription unlocks the full ToolTack library — indicators, screeners, dashboards and strategies built specifically for TradingView workflows. Activate with your TradingView username and access everything from a single dashboard.
Does Divergence Radar repaint?
No. The engine uses ta.pivothigh / ta.pivotlow with left=13 and right=1, which means the pivot is fully confirmed one bar after it forms. Once a divergence line is drawn after that confirmation, it does not move or disappear. The status table shows "Repaint: NO" as a live reminder.
What is the difference between regular and hidden divergence?
Regular divergence (label D) is a classic reversal cue: price makes a new extreme but momentum does not. Hidden divergence (label H) is a continuation cue: momentum makes a new extreme but price does not, suggesting the prevailing trend has fuel left. Divergence Radar prints both, colour-coded.
Which oscillator should I use?
RSI (14) is the default and the most widely interpreted divergence engine. MFI adds volume weighting, Stoch reacts faster on shorter timeframes, and CCI/CMO/ROC/W%R suit traders who already build around those tools. The engine works the same way regardless — pick the one your strategy is calibrated to.
Why does a divergence line sometimes get rejected and not drawn?
Before drawing, the engine walks every bar between the two pivots and checks that none of them would have broken the divergence line. If an intermediate bar already broke it, the signal is structurally invalid and not plotted. This filter removes the bulk of cosmetic false positives that other scripts show.
What does the "broken" tracking do?
Once a divergence is printed, the engine watches the close. If price closes through the end-pivot level (above for bull divergences, below for bear), that divergence is flagged broken internally and is no longer reported in the "Last Divergence" outputs of the Data Window.
Does it work on all assets and timeframes?
Yes. Divergence is a price-momentum concept, so anything with a continuous price feed — stocks, ETFs, futures, FX, crypto, indices — works. Higher timeframes give cleaner signals; very low timeframes give more, noisier prints.
Does this guarantee profitable trades?
No. Divergence Radar is an analysis utility. Divergences can persist for many bars and are not directional triggers by themselves. Always combine with your own structural read, risk plan and confirmation logic.