kestrel-chartkitv0.43.0

← All examples

rolling_beta

Rolling beta of the simple returns of a close series against a reference series, with alpha, correlation an…

rolling_beta

examples/site_showcase.rs
// Rolling beta of the simple returns of a close series against a reference series, with alpha, correlation and R-squared
let mut indicator = build_pair_checked("rolling_beta", &params)?;
// The bars of the two series are paired by timestamp.
let outputs = run_pair_batch(indicator.as_mut(), &bars, &reference);

Not yet verified: no independent second implementation yet.

It reads two series, the bars and a reference series, and the demo is one share; it is not drawn here.

  • Other input kinds
  • unit: Ratio