-
Notifications
You must be signed in to change notification settings - Fork 0
Indicator Rvi
Relative Vigor Index — Donald Dorsey's ratio of intra-bar drive
(close − open)to intra-bar range(high − low), averaged over aperiod-bar window.
| Field | Value |
|---|---|
| Family | Momentum Oscillators |
| Input type |
Candle (uses open, high, low, close) |
| Output type | f64 |
| Output range | unbounded; for clean OHLC the ratio sits in (−1, 1)
|
| Default parameters |
period (10 in Python) |
Warmup period (warmup_period()) |
period |
| Interpretation | Positive on average-bullish windows, negative on average-bearish. |
num_t = close_t − open_t
den_t = high_t − low_t
RVI_t = SMA(num, period)_t / SMA(den, period)_t
Equivalently — and this is what Wickra computes — RVI is the ratio of
the rolling sums (the per-window divisor period cancels). If the
denominator sum is non-positive (every bar in the window had zero
range), the indicator holds its previous value rather than emit NaN.
| Name | Type | Default | Valid range | Description |
|---|---|---|---|---|
period |
usize |
10 (Python) |
>= 1 |
Window length. 0 errors with Error::PeriodZero. |
warmup_period() == period. The first non-None output lands on
input period.
Donald Dorsey, Stocks & Commodities, also pandas-ta's rvi. The
4-bar weighted "vigor" variant ((a + 2·a₋₁ + 2·a₋₂ + a₋₃) / 6) is
not implemented; the consumer can compose it via Chain if needed.
Wickra on GitHub · crates.io · PyPI · npm · License: PolyForm-Noncommercial-1.0.0
- Alligator
- Alma
- Dema
- Ema
- Evwma
- Frama
- Hma
- Jma
- Kama
- McGinleyDynamic
- Sma
- Smma
- T3
- Tema
- Trima
- Vidya
- Vwma
- Wma
- Zlema
- AwesomeOscillator
- Cci
- Cmo
- ConnorsRSI
- Inertia
- Kst
- LaguerreRSI
- Mfi
- Mom
- Pgo
- Pmo
- Roc
- Rsi
- Rvi
- Smi
- Stochastic
- StochRsi
- Tsi
- UltimateOscillator
- WilliamsR
- Adx
- Adxr
- Aroon
- AroonOscillator
- ChoppinessIndex
- MacdIndicator
- MassIndex
- Rwi
- Tii
- Trix
- VerticalHorizontalFilter
- Vortex
- WaveTrend
- Atr
- BollingerBands
- BollingerBandwidth
- ChaikinVolatility
- Donchian
- GarmanKlassVolatility
- HistoricalVolatility
- Keltner
- Natr
- ParkinsonVolatility
- PercentB
- RogersSatchellVolatility
- RviVolatility
- StdDev
- TrueRange
- UlcerIndex
- YangZhangVolatility