Skip to main content

Crate quantedge_ta

Crate quantedge_ta 

Source
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.
AdxConfigBuilder
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.
AtrConfigBuilder
Builder for AtrConfig.
Bb
Bollinger Bands (BB).
BbConfig
Configuration for the Bollinger Bands (Bb) indicator.
BbConfigBuilder
Builder for BbConfig.
BbValue
Bollinger Bands output: upper, middle, and lower bands.
Dc
Donchian Channel (DC).
DcConfig
Configuration for the Donchian Channel (Dc) indicator.
DcConfigBuilder
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.
EmaConfigBuilder
Builder for EmaConfig.
Kc
Keltner Channel (KC).
KcConfig
Configuration for the Keltner Channel (Kc) indicator.
KcConfigBuilder
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).
MacdConfig
Configuration for the Moving Average Convergence Divergence (Macd) indicator.
MacdConfigBuilder
Builder for MacdConfig.
MacdValue
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.
RsiConfigBuilder
Builder for RsiConfig.
Sma
Simple Moving Average (SMA).
SmaConfig
Configuration for the Simple Moving Average (Sma) indicator.
SmaConfigBuilder
Builder for SmaConfig.
StdDev
Standard deviation multiplier for Bollinger Bands.
Stoch
Stochastic Oscillator (Stoch).
StochConfig
Configuration for the Stochastic Oscillator (Stoch) indicator.
StochConfigBuilder
Builder for StochConfig.
StochValue
Stochastic Oscillator output: %K and %D lines.

Enums§

PriceSource
Price source extracted from an Ohlcv bar before feeding into an indicator.

Traits§

Indicator
A streaming technical indicator.
IndicatorConfig
Configuration for a technical Indicator.
IndicatorConfigBuilder
Builder for an IndicatorConfig.
Ohlcv
OHLCV bar data used as input to all indicators.

Type Aliases§

Price
A price value.
Timestamp
Bar open timestamp or sequence number.