kestrel-chartkitv0.33.0

← All examples

rci

Rank Correlation Index

rci

examples/site_showcase.rs
// Rank Correlation Index (rank of prices against rank of time, scaled by 100)
// Defaults of "rci" (see the indicator reference)
let params = HashMap::from([
    ("len".to_string(), 9.0),
]);
let mut indicator = build_checked("rci", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Rank Correlation Index (rank of prices against rank of time, scaled by 100). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.Rank Correlation Index (rank of prices against rank of time, scaled by 100). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.
  • Oscillators
  • unit: Ratio