Enum yata::helpers::MA [−][src]
#[non_exhaustive]
pub enum MA {
Show 15 variants
SMA(PeriodType),
WMA(PeriodType),
HMA(PeriodType),
RMA(PeriodType),
EMA(PeriodType),
DMA(PeriodType),
DEMA(PeriodType),
TMA(PeriodType),
TEMA(PeriodType),
WSMA(PeriodType),
SMM(PeriodType),
SWMA(PeriodType),
TRIMA(PeriodType),
LinReg(PeriodType),
Vidya(PeriodType),
}
Expand description
Default moving average constructor
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SMA(PeriodType)
Tuple Fields
0: PeriodType
WMA(PeriodType)
Tuple Fields
0: PeriodType
HMA(PeriodType)
Tuple Fields
0: PeriodType
RMA(PeriodType)
Tuple Fields
0: PeriodType
EMA(PeriodType)
Tuple Fields
0: PeriodType
DMA(PeriodType)
Tuple Fields
0: PeriodType
DEMA(PeriodType)
Tuple Fields
0: PeriodType
Another type of Double Exponential Moving Average
TMA(PeriodType)
Tuple Fields
0: PeriodType
TEMA(PeriodType)
Tuple Fields
0: PeriodType
Another type of Triple Exponential Moving Average
WSMA(PeriodType)
Tuple Fields
0: PeriodType
SMM(PeriodType)
Tuple Fields
0: PeriodType
SWMA(PeriodType)
Tuple Fields
0: PeriodType
TRIMA(PeriodType)
Tuple Fields
0: PeriodType
LinReg(PeriodType)
Tuple Fields
0: PeriodType
Vidya(PeriodType)
Tuple Fields
0: PeriodType
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Instance = MAInstance
type Instance = MAInstance
MovingAverage
Instance type
Creates moving average instance with the initial_value
Returns period length of
Checks two moving average constructors for the same moving averagee type
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more