TradingCharts

Divergence Radar

Act on a Bull Div label only when two or more oscillators agree and price is at support: a lower price low with higher RSI, MACD, MFI or CCI lows is a reversal setup, entered on a break of the last lower high.

What it does

Divergence Radar checks every confirmed price pivot against the previous pivot of the same kind on four oscillators at once: RSI, the MACD histogram, MFI and CCI. A regular divergence (a lower price low with a higher oscillator low, or a higher high with a lower oscillator high) points to a reversal; a hidden divergence (a higher low with a lower oscillator low, or the mirror) points to trend continuation. A divergence is drawn only when at least the chosen number of oscillators agree, with the count written on the label, so "Bull Div x3" means three of the four confirmed it. One oscillator of your choice is plotted in the pane and carries the divergence lines and labels, with the 70 and 30 levels shown for RSI and MFI.

Typeoscillatorseparate pane

How to add it

Click Indicators (ƒx) in the header.

Search “Divergence Radar” and click the result.

Hover its legend row and click the gear to open settings.

How traders use it

  • Act on a Bull Div label only when two or more oscillators agree and price is at support: a lower price low with higher RSI, MACD, MFI or CCI lows is a reversal setup, entered on a break of the last lower high.
  • Use Bear Div labels at resistance or after an extended rally to tighten stops or take profit on longs; the higher the agreement count, the stronger the warning.
  • Hidden Bull and Hidden Bear labels (dashed lines) are continuation cues: buy a hidden bullish divergence on a pullback in an uptrend rather than against it.
  • Raise Min Oscillators Agreeing to 3 on noisy 1- and 5-minute charts, and turn on the overbought/oversold filter so only divergences with RSI above 60 or below 40 at the pivot are kept.
  • Switch the displayed oscillator to MACD Histogram or CCI when you want to see the divergence against the measure you normally trade with; the detection does not change.

Inputs

Input Type Default Range / Options
Pivot Strength (bars each side) number 5 2–20
Min Bars Between Pivots number 5 2+
Max Bars Between Pivots number 60 10+
Oscillator Shown select RSI RSI, MACD Histogram, MFI, CCI
RSI Length number 14 2+
MFI Length number 14 2+
CCI Length number 20 2+
Regular Divergence (reversal) boolean On —
Hidden Divergence (continuation) boolean On —
Min Oscillators Agreeing number 2 1–4
Regular divergence only in overbought/oversold RSI boolean Off —

Plots & styling

Plot Style Default color
RSI (or the selected oscillator) line #2962FF
Upper line (70, RSI and MFI only) #787B86 (60% tint)
Lower line (30, RSI and MFI only) #787B86 (60% tint)

The divergence lines and labels are drawn in green (regular bullish), red (regular bearish), teal (hidden bullish) and orange (hidden bearish). Every plot's color, line width and visibility can be changed on the Style tab. Precision, price-scale labels and status-line values are configurable at the bottom of the Style tab.

Tips

  • Use Add to favorites in the legend menu; starred studies surface at the top of the picker.
  • Reference levels (where the study has them) are editable — tune them to the instrument you're trading.
  • Hide the study from the legend eye instead of removing it when you only want it out of the way temporarily.

Watch out for

  • A pivot confirms only after Pivot Strength bars on each side, so every divergence is drawn that many bars after the second pivot; nothing repaints later, but the label is never available on the pivot bar itself.
  • The MACD histogram always uses 12, 26, 9 and the CCI its default smoothing; only the RSI, MFI and CCI lengths are adjustable.
  • Divergence signals fading momentum, not an imminent turn; in a strong trend several divergences can print and fail before price reverses, so pair the label with a level and a trigger candle.