#[non_exhaustive]pub enum Indicator {
Show 40 variants
Sma(usize),
Ema(usize),
Rsi(usize),
Macd {
fast: usize,
slow: usize,
signal: usize,
},
Bollinger {
period: usize,
std_dev: f64,
},
Atr(usize),
Obv,
Vwap,
Wma(usize),
Dema(usize),
Tema(usize),
Hma(usize),
Vwma(usize),
Alma {
period: usize,
offset: f64,
sigma: f64,
},
McginleyDynamic(usize),
Stochastic {
k_period: usize,
k_slow: usize,
d_period: usize,
},
StochasticRsi {
rsi_period: usize,
stoch_period: usize,
k_period: usize,
d_period: usize,
},
Cci(usize),
WilliamsR(usize),
Roc(usize),
Momentum(usize),
Cmo(usize),
AwesomeOscillator {
fast: usize,
slow: usize,
},
CoppockCurve {
wma_period: usize,
long_roc: usize,
short_roc: usize,
},
Adx(usize),
Aroon(usize),
Supertrend {
period: usize,
multiplier: f64,
},
Ichimoku {
conversion: usize,
base: usize,
lagging: usize,
displacement: usize,
},
ParabolicSar {
step: f64,
max: f64,
},
BullBearPower(usize),
ElderRay(usize),
KeltnerChannels {
period: usize,
multiplier: f64,
atr_period: usize,
},
DonchianChannels(usize),
TrueRange,
ChoppinessIndex(usize),
Mfi(usize),
Cmf(usize),
ChaikinOscillator,
AccumulationDistribution,
BalanceOfPower(Option<usize>),
}Expand description
Enum representing all available technical indicators.
This enum is used with Ticker::indicator() to calculate specific indicators
over a given interval and time range.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Sma(usize)
Simple Moving Average with custom period
Ema(usize)
Exponential Moving Average with custom period
Rsi(usize)
Relative Strength Index with custom period
Macd
Moving Average Convergence Divergence (fast, slow, signal periods)
Bollinger
Bollinger Bands (period, standard deviation multiplier)
Atr(usize)
Average True Range with custom period
Obv
On-Balance Volume
Vwap
Volume Weighted Average Price
Wma(usize)
Weighted Moving Average
Dema(usize)
Double Exponential Moving Average
Tema(usize)
Triple Exponential Moving Average
Hma(usize)
Hull Moving Average
Vwma(usize)
Volume Weighted Moving Average
Alma
Arnaud Legoux Moving Average
Fields
McginleyDynamic(usize)
McGinley Dynamic
Stochastic
Stochastic Oscillator
Fields
StochasticRsi
Stochastic RSI
Fields
Cci(usize)
Commodity Channel Index
WilliamsR(usize)
Williams %R
Roc(usize)
Rate of Change
Momentum(usize)
Momentum
Cmo(usize)
Chande Momentum Oscillator
AwesomeOscillator
Awesome Oscillator
CoppockCurve
Coppock Curve
Fields
Adx(usize)
Average Directional Index
Aroon(usize)
Aroon
Supertrend
SuperTrend
Ichimoku
Ichimoku Cloud
Fields
ParabolicSar
Parabolic SAR
BullBearPower(usize)
Bull/Bear Power
ElderRay(usize)
Elder Ray Index
KeltnerChannels
Keltner Channels
Fields
DonchianChannels(usize)
Donchian Channels
TrueRange
True Range
ChoppinessIndex(usize)
Choppiness Index
Mfi(usize)
Money Flow Index
Cmf(usize)
Chaikin Money Flow
ChaikinOscillator
Chaikin Oscillator
AccumulationDistribution
Accumulation/Distribution
BalanceOfPower(Option<usize>)
Balance of Power
Implementations§
Trait Implementations§
impl Copy for Indicator
impl StructuralPartialEq for Indicator
Auto Trait Implementations§
impl Freeze for Indicator
impl RefUnwindSafe for Indicator
impl Send for Indicator
impl Sync for Indicator
impl Unpin for Indicator
impl UnsafeUnpin for Indicator
impl UnwindSafe for Indicator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more