pub enum Indicator {
Show 20 variants
AverageTrueRange,
EfficiencyRatio,
ExponentialMovingAverage,
FastStochastic,
Maximum,
Minimum,
MoneyFlowIndex,
OnBalanceVolume,
RateOfChange,
RelativeStrengthIndex,
SimpleMovingAverage,
SlowStochastic,
TrueRange,
Spread,
MovingAverageConvergenceDivergence,
ClosePrice,
AskRate,
BidRate,
EntryRate,
ExitRate,
}
Expand description
Operation is technical analysis or orderbook method.
Variants§
AverageTrueRange
Average true range (ATR).
EfficiencyRatio
Kaufman’s Efficiency Ratio (ER).
ExponentialMovingAverage
An exponential moving average (EMA), also known as an exponentially weighted moving average (EWMA).
FastStochastic
Fast stochastic oscillator.
Maximum
Returns the highest value in a given time frame.
Minimum
Returns the lowest value in a given time frame.
MoneyFlowIndex
Money Flow Index (MFI).
OnBalanceVolume
On Balance Volume (OBV).
RateOfChange
Rate of Change (ROC)
RelativeStrengthIndex
The relative strength index (RSI).
SimpleMovingAverage
Simple moving average (SMA).
SlowStochastic
Slow stochastic oscillator.
TrueRange
The range of a day’s trading is simply high - low. The true range extends it to yesterday’s closing price if it was outside of today’s range.
Spread
Spread in the orderbook.
MovingAverageConvergenceDivergence
Moving average converge divergence (MACD).
ClosePrice
Closing price.
AskRate
Ask rate in the orderbook.
BidRate
Bid rate in the orderbook.
EntryRate
Market entry rate.
ExitRate
Market exit rate.
Implementations§
Source§impl Indicator
impl Indicator
Sourcepub fn parameters(&self) -> usize
pub fn parameters(&self) -> usize
Returns amount of expected parameters.
Sourcepub fn descriptors(&self) -> Option<&'static [ParamDescriptor]>
pub fn descriptors(&self) -> Option<&'static [ParamDescriptor]>
Returns descriptors of expected parameters.
It can be None
if doesn’t expect any arguments