ta.rci()
Rank Correlation Index
The Rank Correlation Index measures the correlation between price rankings and time rankings.
Syntax
ta.rci(source, length) → series floatArguments
| Parameter | Type | Description |
|---|---|---|
| source | series int/float | Series whose ranks are compared to time ranks. |
| length | series int | Window length for rank correlation. |
Returns
Rank Correlation Index.
Remarks
None.
Code Examples
//@version=6
indicator("ta.rci")
plot(ta.rci(close, 14))Trading Applications
Identify trend strength using rank correlation
Detect overbought/oversold conditions on a -100 to +100 scale
Generate signals from extreme readings
Use multiple timeframe RCI for confluence
Related Functions
Frequently Asked Questions
Generate ta.rci() Code with AI
Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.rci() and other built-in functions instantly.
Related Pine Script Functions
ta.rsi() - Relative Strength Index
Learn how to use ta.rsi() in Pine Script. Syntax, parameters, code examples for the RSI momentum oscillator.
ta.correlation() - Correlation
Learn how to use ta.correlation() in Pine Script. Calculate correlation coefficient between two series.
ta.stoch() - Stochastic Oscillator
Learn how to use ta.stoch() in Pine Script. Syntax, parameters, code examples for the Stochastic Oscillator.
ta.cci() - Commodity Channel Index
Learn how to use ta.cci() in Pine Script. Syntax, parameters, code examples for the CCI momentum indicator.
ta.cmo() - Chande Momentum Oscillator
Learn how to use ta.cmo() in Pine Script. Syntax, parameters, code examples for the Chande Momentum Oscillator.