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.
Cci
Commodity Channel Index (CCI).
CciConfig
Configuration for the Commodity Channel Index (Cci) indicator.
CciConfigBuilder
Builder for CciConfig.
Chop
Choppiness Index (CHOP).
ChopConfig
Configuration for the Choppiness Index (Chop) indicator.
ChopConfigBuilder
Builder for ChopConfig.
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.
Ichimoku
Ichimoku Cloud (Ichimoku Kinko Hyo).
IchimokuBuilder
Builder for IchimokuConfig.
IchimokuConfig
Configuration for the Ichimoku Cloud (Ichimoku) indicator.
IchimokuValue
Output of the Ichimoku Cloud indicator.
Kc
Keltner Channel (KC).
KcConfig
Configuration for the Keltner Channel (Kc) indicator.
KcConfigBuilder
Builder for KcConfig.
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.
Multiplier
Wraps a positive, non-NaN f64.
Obv
On-Balance Volume (OBV).
ObvConfig
Configuration for the On-Balance Volume (Obv) indicator.
ObvConfigBuilder
ParabolicSar
Parabolic SAR (Stop and Reverse) indicator.
ParabolicSarConfig
Configuration for the Parabolic SAR (ParabolicSar) indicator.
ParabolicSarConfigBuilder
Builder for ParabolicSarConfig.
ParabolicSarValue
Parabolic SAR output: SAR price level and trend direction.
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.
Stoch
Stochastic Oscillator (Stoch).
StochConfig
Configuration for the Stochastic Oscillator (Stoch) indicator.
StochConfigBuilder
Builder for StochConfig.
StochRsi
Stochastic RSI (StochRSI).
StochRsiConfig
Configuration for the Stochastic RSI (StochRsi) indicator.
StochRsiConfigBuilder
Builder for StochRsiConfig.
StochRsiValue
Stochastic RSI output: %K and %D lines.
StochValue
Stochastic Oscillator output: %K and %D lines.
Supertrend
Supertrend trend-following indicator.
SupertrendConfig
Configuration for the Supertrend (Supertrend) indicator.
SupertrendConfigBuilder
Builder for SupertrendConfig.
SupertrendValue
Supertrend output: trend line value and direction.
Vwap
Volume Weighted Average Price (VWAP).
VwapBand
A single standard-deviation band around the VWAP line.
VwapConfig
Configuration for the Volume Weighted Average Price (Vwap) indicator.
VwapConfigBuilder
Builder for VwapConfig.
VwapValue
Output of Vwap::compute: the VWAP line and optional bands.
WillR
Williams %R (%R).
WillRConfig
Configuration for the Williams %R (WillR) indicator.
WillRConfigBuilder
Builder for WillRConfig.

Enums§

PriceSource
Price source extracted from an Ohlcv bar before feeding into an indicator.
VwapAnchor
Anchor period for VWAP session resets.

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.