pub enum MaType {
Ema,
Hull,
Sma,
}Expand description
Moving average type selector.
Used by strategies to configure which MA algorithm to use for trend line computation. Each variant trades off between lag reduction and noise sensitivity.
Variants§
Ema
Exponential Moving Average — standard, moderate lag.
Hull
Hull Moving Average — minimal lag, can overshoot.
Sma
Simple Moving Average — maximum smoothing, most lag.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MaType
impl<'de> Deserialize<'de> for MaType
Source§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
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