Expand description
StatIndicator: technical-analysis indicators for price series, to
overlay on (or stack under) candlestick / line charts:
geom_line().stat(StatIndicator::new(Indicator::Ema(20))).
Rows are taken in x order. The price is close when mapped, else y;
ATR and the stochastic oscillator also need high/low, VWAP uses
weight as volume. Output keeps x and puts the indicator in y
(Bollinger bands also in ymin/ymax); warm-up rows without a value
are dropped. Smoothing follows the TA-Lib conventions: EMA seeded with
the SMA of its first n values, RSI and ATR with Wilder’s smoothing.
Structs§
- Stat
Indicator - Indicator stat (see the module docs).