Expand description
Standalone batch indicator functions and incremental structs.
Ported from the original indicators crate lib. These work on slices
(batch mode) or as incremental O(1)-per-tick structs.
Structs§
- ATR
- Incremental Wilder ATR.
- EMA
- Incremental EMA — O(1) update, SMA warm-up.
- Indicator
Calculator - Multi-period indicator calculator (batch mode).
- Strategy
Indicators - Bundle of per-strategy indicator series.
Enums§
Functions§
- atr
- Average True Range (EMA-smoothed).
- ema
- Exponential Moving Average over a price slice.
Returns a Vec of the same length; leading values are
NaNuntil warm-up. - macd
- MACD — returns (macd_line, signal_line, histogram).
- rsi
- Relative Strength Index.
- sma
- Simple Moving Average over a price slice.
- true_
range - True Range = max(H-L, |H-prevC|, |L-prevC|).