RSI Slope Divergence Helper Guide | SG Group
Skip to content
Japanese page

FreeOpen sourcePine Script v6

TradingView Free Indicator

Estimate rolling regression slopes for price and RSI, normalize each by its own standard deviation, then compare agreement, spread, duration, peak and Expanding/Cooling/Holding footprint. This is not a pivot-divergence detector.

Oscillators / Momentum
Real chart published on TradingView: RSI Slope Divergence Helper
Real chart image from the published TradingView page. The symbol, timeframe, settings and prices shown are a captured example, not current data or a trading result.
PurposeStudy price-versus-RSI slope mismatch
Best forContinuous momentum-disagreement research
Primary outputTwo slope lines, spread histogram and footprint
Chart placementSeparate pane
01 — Overview

Do not turn “divergence” into a reversal signal

Price regression slope is expressed in price percent and RSI regression slope in RSI points. Because the units differ, each is divided by its own rolling standard deviation. Spread is normalized price slope minus normalized RSI slope, and sign disagreement plus a magnitude floor defines State.

What it visualizes

Normalized price and RSI slope lines, spread histogram, zero/threshold guides, optional tint, phase-gap line, duration columns, P+ R− / P− R+ / Align markers and a context dashboard.

How it works

Upper disagreement means positive price slope with negative RSI slope; Lower is the reverse. Footprint tracks duration, peak absolute spread, Expanding/Cooling/Holding motion and an arctangent-based phase gap.

Normalize each unit separately

Price-percent slope and RSI-point slope are scaled by their own rolling standard deviations before comparison.

Classify sign disagreement

Upper and Lower require opposite slope signs beyond the minimum normalized magnitude.

Track the episode

Forming, Expanding, Cooling and Holding plus duration, peak and phase gap describe the disagreement through time.

02 — Install and start

Add it to TradingView

Add the public script to a chart and identify every drawing in the default configuration first. Change only one input at a time.

RSI Slope Divergence Helper

Open the public RSI Slope Divergence Helper page and add it to a TradingView chart. No SG Group account is required.

  1. Open the “Use on TradingView” link below.
  2. Select “Use on chart” on TradingView to add the script to your chart.
  3. Open the gear icon, then Settings → Inputs, and observe the default configuration first.
  4. Change one input at a time for the symbol and timeframe you are studying.
Observe the defaults firstChange one input at a timeVerify symbol, timeframe and feed

Prevent misreads when indicators overlap

Overlapping lines, bands, backgrounds or tables can be duplicate drawings of the same kind of information. Never treat visual overlap by itself as stronger evidence or signal agreement. Even in a separate pane, built-in RSI, another divergence histogram, background tint and a state table can duplicate zero lines, thresholds, colors and markers.

  • Start with price slope, RSI slope and spread; leave the phase-gap line and episode-duration columns off.
  • Do not confuse Show helper lines with another oscillator’s zero or threshold guides; hide one set.
  • Keep background tint and Markers off until other divergence colors and labels are removed.
  • Hide or move Show dashboard so it does not cover another oscillator table.
03 — How to read it

A practical reading order

Do not turn one value or color into a conclusion. Check the condition, persistence and relationship to price in order.

Read both slope lines first

Check sign and magnitude of price slope and RSI slope before the spread.

Verify State and threshold

Small slopes remain Flat / low slope so a tiny difference is not treated as disagreement.

Read Footprint through time

Expanding can persist; Cooling can disappear without a large price move.

Status and display terms

Aligned upward / downward

Price and RSI slopes share direction; continuation is not guaranteed.

Upper disagreement

Positive price slope and negative RSI slope; not a bearish reversal forecast.

Lower disagreement

Negative price slope and positive RSI slope; not a bullish reversal forecast.

Flat / low slope / Mixed slopes

Slopes are too small or do not fit a clear state.

Forming / Expanding / Cooling / Holding

Start, widening, narrowing or little change in the disagreement episode.

Phase gap

Angle-like separation of transformed slopes, not probability or confidence.

04 — Settings reference

Settings reference

The labels below match the published script’s English Inputs panel. Defaults reflect the public source at the time of review and may change in a later TradingView update.

On small screens, each input is reformatted as a readable stacked card.

Calculation

8 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Price sourcecloseSelects the source series for the price regression slope.
RSI sourcecloseSelects the source series used to calculate RSI.
RSI length14 | min: 2Sets the RSI calculation length.
Slope length21 | min: 2Sets the rolling regression window for price and RSI slopes.
Normalization length100 | min: 5Sets the rolling standard-deviation window used to normalize each slope.
Smoothing length (display)3 | min: 1Smooths the normalized slopes for display.
Minimum bars before classification100 | min: 0Sets the minimum number of bars required before state classification.
Use automatic warm-up floortrueAutomatically extends warm-up to cover all active calculation lengths.

Thresholds

4 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Minimum normalized slope magnitude0.35 | min: 0 | step: 0.05Sets the minimum absolute normalized slope treated as directional.
Disagreement threshold1.0 | min: 0 | step: 0.05Sets the spread-strength filter and the positive/negative guide level.
Spread motion threshold0.05 | min: 0 | step: 0.01Sets the minimum one-bar absolute-spread change classified as Expanding or Cooling.
Disagreement event filterDirection + spread threshold | options: Direction only, Direction + spread thresholdChooses whether events require direction alone or direction plus the spread threshold; the state is unchanged.

Events and live behavior

6 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Marker display modeOff | options: Off, Disagreement only, All eventsChooses no markers, disagreement markers only, or all events including Align.
Show agreement-restored markerfalseShows an Align marker when same-direction agreement returns after disagreement in All events mode.
Confirm events on bar closetrueConfirms events only at bar close; disabling it permits intrabar changes.
Minimum disagreement bars for event1 | range: 1–20Sets the consecutive qualified-disagreement bars required before an event.
Event cooldown bars0 | range: 0–50Sets bars to wait before another event; it does not change the table state.
Show realtime status in tabletrueShows the current bar’s Confirmed or Realtime status in the table.

Footprint

7 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show footprint table rowstrueShows Footprint-related rows in Standard and Detailed layouts.
Show compact footprint rowtrueShows the Footprint row in the Compact layout.
Show phase gap linefalseShows a scaled line for the angular phase gap between the two slopes.
Show episode duration plotfalsePlots the current disagreement episode duration as columns.
Phase gap scale divisor45.0 | min: 1 | step: 1Scales the phase-gap line for the pane without changing the underlying value.
Phase gap line color#9B7FD5Sets the phase-gap line color.
Disagreement bars color#6B7280Sets the disagreement-duration column color.

Display

4 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show helper linestrueShows the normalized price-slope and RSI-slope helper lines.
Show spread histogramtrueShows the histogram of normalized price slope minus normalized RSI slope.
Show background tintfalseTints the background during Upper or Lower disagreement.
Show threshold guidestrueShows the zero and positive/negative disagreement-threshold guides.

Dashboard readability

15 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show dashboard tabletrueShows the state dashboard table.
Table layoutCompact | options: Compact, Standard, DetailedSelects the dashboard’s information density.
Table positionTop right | options: Top left, Top center, Top right, Middle left, Middle center, Middle right, Bottom left, Bottom center, Bottom rightSelects the dashboard position on the chart.
Dashboard text sizeNormal | options: Tiny, Small, Normal, LargeSelects the dashboard body-text size.
Header text sizeNormal | options: Tiny, Small, Normal, LargeSelects the dashboard header-text size.
Use fixed table cell sizingfalseApplies the manual column widths and row heights below instead of automatic sizing.
Label column width0 | range: 0–100Sets the fixed label-column width; zero keeps it automatic.
Value column width0 | range: 0–100Sets the fixed value-column width; zero keeps it automatic.
Row height0 | range: 0–20Sets the fixed body-row height; zero keeps it automatic.
Header row height0 | range: 0–20Sets the fixed header-row height; zero keeps it automatic.
Table frame width1 | range: 0–5Sets the dashboard outer-frame width.
Table border width1 | range: 0–5Sets the dashboard cell-border width.
Use alternating row backgroundtrueAlternates row backgrounds for readability.
Highlight current state rowtrueHighlights the current State row.
Show bar status in compact layoutfalseAdds the Bar status row to the Compact layout.

Visual customization

25 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Price slope line color#5B9CF6Sets the normalized price-slope line color.
RSI slope line color#E0883CSets the normalized RSI-slope line color.
Spread color#4DB6ACSets the base spread-histogram color.
Upper disagreement color#D98880Sets the highlight color for positive price slope and negative RSI slope.
Lower disagreement color#7FB3D5Sets the highlight color for negative price slope and positive RSI slope.
Zero line color#787B86Sets the zero-guide color.
Threshold line color#5D606BSets the positive and negative threshold-guide color.
Marker color#B2B5BESets the event-marker background color.
Marker text color#D1D4DCSets the event-marker text color.
Table header background#2A2E39Sets the table-header background color.
Table cell background#1E222DSets the table-cell background color.
Table alternate row background#232733Sets the alternate-row background color.
Table state highlight background#33384ASets the State-row highlight background color.
Table text color#D1D4DCSets the table body-text color.
Table state text color#FFFFFFSets the State-row text color.
Table header text color#D1D4DCSets the table-header text color.
Table border color#3A3E4ASets the table cell-border color.
Table frame color#3A3E4ASets the table outer-frame color.
Histogram transparency50 | range: 0–100Sets spread-histogram transparency.
Background tint transparency90 | range: 0–100Sets disagreement background-tint transparency.
Marker transparency0 | range: 0–100Sets event-marker transparency.
Header background transparency0 | range: 0–100Sets header-background transparency.
Cell background transparency0 | range: 0–100Sets cell-background transparency.
Alternate row transparency0 | range: 0–100Sets alternate-row background transparency.
State highlight transparency0 | range: 0–100Sets State-row highlight transparency.
05 — Alerts

Alerts report events, not decisions

Alerts are state, touch or transition events defined in the public source. They are not trade instructions.

  • Upper slope disagreement and Lower slope disagreement.
  • Slope agreement restored.
  • Spread crossed above threshold and below threshold.
06 — Limitations and responsible use

Not a buy/sell signal

This tool is for analysis and visualization. It is not investment advice, a trade recommendation, a forecast, or a promise of profit or accuracy. Results depend on inputs, symbol, timeframe, and data feed. You remain responsible for every trading decision.

Not pivot divergence

It compares rolling slopes, not confirmed swing highs and lows.

No reversal forecast

Upper is not automatically bearish and Lower is not automatically bullish. Disagreement can persist or resolve.

Window sensitive

RSI, slope, normalization and smoothing lengths plus thresholds materially change sensitivity. Defaults are not optimized.

Important

Do not convert Upper or Lower into trade direction. Price slope, RSI slope, Spread and Footprint are related outputs from the same two series, not four independent votes.

07 — FAQ

Frequently asked questions

Clarify the difference from pivot divergence, non-directional Upper/Lower labels, normalization and Footprint.

Is RSI Slope Divergence Helper free to use?

Yes. It is a free, open-source indicator published by SG Group on TradingView. Review TradingView’s terms and the conditions attached to the public script before reuse or redistribution.

Should I change the settings immediately?

Start with the published defaults and observe the drawings and state changes first. Then change one input at a time for the symbol, timeframe and data feed so you can identify what caused each visual change.

Can I display it with other indicators?

Yes, but similar lines, bands, backgrounds and tables can overlap and obscure their source. Isolate each indicator first and hide duplicate components. Visual overlap alone is not stronger evidence or signal agreement.

Does the display provide trade signals?

No. It is analysis and visualization context consistent with the public description. It does not provide entries, exits, targets, stops, price forecasts, or promises of profit, win rate or accuracy.

Is Upper disagreement classic bearish divergence?

No. It is positive rolling price slope with negative rolling RSI slope, not a confirmed pivot-high divergence pattern, and it does not predict a reversal.

Source basis and update policy

This guide is grounded in SG Group’s live catalogue, the script’s published TradingView description, and the user-facing inputs in its open source. Labels and defaults can change after a script update.