pub enum MaType {
Sma,
Ema,
Wma,
Dema,
Tema,
Trima,
}Expand description
Moving-average type selector for MacdExt and other multi-MA indicators.
The variants map to TA-Lib’s MA_Type codes 0..=5 — the period-only
moving averages. (TA-Lib’s KAMA / MAMA / T3 take additional shape parameters
and are not selectable here.)
Variants§
Sma
Simple moving average (TA-Lib code 0).
Ema
Exponential moving average (TA-Lib code 1).
Wma
Weighted moving average (TA-Lib code 2).
Dema
Double exponential moving average (TA-Lib code 3).
Tema
Triple exponential moving average (TA-Lib code 4).
Trima
Triangular moving average (TA-Lib code 5).
Implementations§
Trait Implementations§
impl Copy for MaType
impl Eq for MaType
impl StructuralPartialEq for MaType
Auto Trait Implementations§
impl Freeze for MaType
impl RefUnwindSafe for MaType
impl Send for MaType
impl Sync for MaType
impl Unpin for MaType
impl UnsafeUnpin for MaType
impl UnwindSafe for MaType
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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