RCI (Function)
The RCI series function calculates the Spearman's Rank Correlation Coefficient based on the ranking of Price over Length bars and multiplies it by 100
Syntax
RCI(Price, Length)
Returns (Double)
A numeric value of the RCI (Rank Correlation Coefficient) for the current bar.
Parameters
Name | Type | Description |
Price | Numeric | Specifies which bar value (price, function, or formula) to be considered. |
Length | Numeric | Sets the number of bars to consider for the function. |
Remarks
The value for the Length input parameter should be a number greater than 0.
Reference
Dan Valcu, CFTe, "The Spearman Indicator For Technical Analysis", Technical Analysis of Stocks and Commodities Magazine, Volume 29, Number 2, February, 2011 (34-41)