Summary
Inertia is RTTA's streaming implementation of Donald Dorsey's inertia
indicator: a linear regression of the Relative Volatility Index (RVI). It
smooths volatility-direction into a slower trend-of-volatility feature.
Update API
value = rtta.Inertia(
std_window=10, smooth_window=14, reg_window=20, fillna=True
).update(close)
The update(...) call consumes one close. advance(...) updates state without
returning a Python value. Scalar batch(...) returns a NumPy array.
Theory Of Operation
Dorsey's Relative Volatility Index is an RSI-style oscillator applied to the rolling standard deviation of close (up-vol vs down-vol). Inertia then applies a rolling linear regression to that RVI series so the output tracks the local trend of relative volatility rather than the raw RVI tick. High inertia means volatility has been persistently biased to the upside of the RVI construction; low inertia means the opposite.
Recurrence
Let \(c_t\) be close. First form Dorsey RVI as in RelativeVolatilityIndex
with parameters std_window and smooth_window:
Then inertia is the fitted linear-regression value of RVI over reg_window:
Implementation Notes
The recurrence is implemented in src/rtta/indicator.cpp in class Inertia,
composing RelativeVolatilityIndex with LinearRegressionCore.
