← Script Marketplace
Open-source scriptindicator/v1

Rank Correlation Index

by Kodexius·@kodexius·

Measure the correlation between price ranking and chronological order on a minus 100 to 100 scale.

#momentum#oscillator#rci
Rank Correlation Index chart preview

Description

The Rank Correlation Index compares the rank order of prices with the rank order of time inside each window. High positive values indicate prices that rise consistently through the window, while negative values indicate persistent decline.

Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.

Release notes

Version history · 1 published version

Version 1CurrentChart updatedRank Correlation Index · Aug 31, 2026
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View source

indicator("Rank Correlation Index", { overlay: false });
const length = input.int("Length", 9, { min: 2, max: 200 });
const source = input.source("Source", "close");
plot(rci(source, length), { title: "RCI", color: "#00bcd4", lineWidth: 2 });
hline(80, { title: "Upper", color: "#ef5350", style: "dashed" });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
hline(-80, { title: "Lower", color: "#26a69a", style: "dashed" });
  

Community discussion

0 comments

Loading…

No comments yet. Start the discussion.