MCPcopy Create free account
hub / github.com/Open-Quant/openquant / ms_get_roll_impact

Function ms_get_roll_impact

crates/pyopenquant/src/microstructural.rs:13–15  ·  view source on GitHub ↗
(close: Vec<f64>, dollar_volume: Vec<f64>, window: usize)

Source from the content-addressed store, hash-verified

11/// bars (AFML §19.3.2). The result is in price units. Roll's formula needs a negative
12/// autocovariance; following mlfinlab the absolute value is taken, so a trending series with
13/// positive autocovariance also reports a "spread". Check the sign yourself on anything that
14/// is not a liquid, mean-reverting tick series.
15///
16/// Parameters
17/// ----------
18/// close : list[float]

Callers

nothing calls this directly

Calls 1

get_roll_impactFunction · 0.85

Tested by

no test coverage detected