Skip to main content

Module technical

Module technical 

Source
Expand description

Technical analysis indicators for OHLCV price series.

All functions return Vec<f64> of the same length as the input. Values before the warm-up period are filled with 0.0.

Structs§

Ohlcv
A single OHLCV bar.

Enums§

CandlePattern
Named candlestick patterns.

Functions§

atr
Average True Range (Wilder’s smoothing) over period bars.
bollinger_bands
Bollinger Bands: (upper, middle, lower).
detect_patterns
Detect candlestick patterns in an OHLCV series.
ema
Exponential moving average with smoothing factor α = 2 / (period + 1).
macd
MACD indicator: (macd_line, signal_line, histogram).
obv
On-Balance Volume.
rsi
Wilder’s RSI over period bars.
sma
Simple moving average over period bars.
stochastic
Stochastic oscillator: (%K, %D).