Login Page - Create Account

Support Board


Date/Time: Wed, 28 Jan 2026 17:52:38 +0000



Post From: Can you please add the RCI Ribbon indicator as this is better than Stochastics or RSI.

[2025-12-12 16:49:49]
User566779 - Posts: 30
From AI...

Spearman's RCI (Rank Correlation Index) ribbon on TradingView plots three lines, each representing the RCI calculated over different periods (typically short, medium, and long, like 9, 26, or 52), measuring the correlation between price ranks and time sequence ranks.

RCI Calculation

The core formula for RCI adapts Spearman's rank correlation coefficient to trading data:

RCI=(1−6∑d2n(n2−1))×100RCI=(1−n(n2−1)6∑d2)×100 (See attached)

where n is the lookback period, and d is the difference between the rank of the current closing price and the rank of its position in time (1 to n, with 1 being the most recent bar).

To compute:
•  Rank closing prices over n bars (highest price gets rank 1, lowest gets rank n).
•  Rank time positions (most recent bar is 1, oldest is n).
•  Calculate d for each bar, square and sum them, then apply the formula.

Ribbon Implementation

TradingView's version overlays three RCI lines in one pane for visual trend alignment: values above +80 signal overbought/uptrends, below -80 indicate oversold/downtrends, and ribbon convergence/divergence highlights momentum shifts.
imageRCI Ribbon Calc..png / V - Attached On 2025-12-12 16:48:37 UTC - Size: 27.95 KB - 41 views
Attachment Deleted.