Expand description
Streaming technical analysis indicators for Rust.
Indicators accept any type implementing Ohlcv and return
typed results. Values are None until enough data has been
received for convergence.
Each indicator type (Sma, Ema, Bb), its config, and
its builder expose trait methods as inherent methods — no trait
import needed. Import Indicator, IndicatorConfig, or
IndicatorConfigBuilder only for generic code.
Structs§
- Adx
- Average Directional Index (ADX).
- AdxConfig
- Configuration for the Average Directional Index (
Adx) indicator. - AdxConfig
Builder - Builder for
AdxConfig. - AdxValue
- Average Directional Index output: ADX, +DI, and −DI.
- Atr
- Average True Range (ATR).
- AtrConfig
- Configuration for the Average True Range (
Atr) indicator. - AtrConfig
Builder - Builder for
AtrConfig. - Bb
- Bollinger Bands (BB).
- BbConfig
- Configuration for the Bollinger Bands (
Bb) indicator. - BbConfig
Builder - Builder for
BbConfig. - BbValue
- Bollinger Bands output: upper, middle, and lower bands.
- Dc
- Donchian Channel (DC).
- DcConfig
- Configuration for the Donchian Channel (
Dc) indicator. - DcConfig
Builder - Builder for
DcConfig. - DcValue
- Donchian Channel output: upper, middle, and lower bands.
- Ema
- Exponential Moving Average (EMA).
- EmaConfig
- Configuration for the Exponential Moving Average (
Ema) indicator. - EmaConfig
Builder - Builder for
EmaConfig. - Kc
- Keltner Channel (KC).
- KcConfig
- Configuration for the Keltner Channel (
Kc) indicator. - KcConfig
Builder - Builder for
KcConfig. - KcMultiplier
- Band width multiplier for the Keltner Channel.
- KcValue
- Keltner Channel output: upper band, middle line, and lower band.
- Macd
- Moving Average Convergence Divergence (MACD).
- Macd
Config - Configuration for the Moving Average Convergence Divergence (
Macd) indicator. - Macd
Config Builder - Builder for
MacdConfig. - Macd
Value - MACD indicator output: line, signal, and histogram.
- Rsi
- Relative Strength Index (RSI) with Wilder’s smoothing.
- RsiConfig
- Configuration for the Relative Strength Index (
Rsi) indicator. - RsiConfig
Builder - Builder for
RsiConfig. - Sma
- Simple Moving Average (SMA).
- SmaConfig
- Configuration for the Simple Moving Average (
Sma) indicator. - SmaConfig
Builder - Builder for
SmaConfig. - StdDev
- Standard deviation multiplier for Bollinger Bands.
- Stoch
- Stochastic Oscillator (Stoch).
- Stoch
Config - Configuration for the Stochastic Oscillator (
Stoch) indicator. - Stoch
Config Builder - Builder for
StochConfig. - Stoch
Value - Stochastic Oscillator output: %K and %D lines.
Enums§
- Price
Source - Price source extracted from an
Ohlcvbar before feeding into an indicator.
Traits§
- Indicator
- A streaming technical indicator.
- Indicator
Config - Configuration for a technical
Indicator. - Indicator
Config Builder - Builder for an
IndicatorConfig. - Ohlcv
- OHLCV bar data used as input to all indicators.