pub struct MFIConfig {
pub period: usize,
pub overbought: f64,
pub oversold: f64,
}Expand description
Configuration for MFI calculation
Fields§
§period: usizePeriod for MFI calculation (default: 14)
overbought: f64Overbought threshold (default: 80.0)
oversold: f64Oversold threshold (default: 20.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MFIConfig
impl<'de> Deserialize<'de> for MFIConfig
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 MFIConfig
impl StructuralPartialEq for MFIConfig
Auto Trait Implementations§
impl Freeze for MFIConfig
impl RefUnwindSafe for MFIConfig
impl Send for MFIConfig
impl Sync for MFIConfig
impl Unpin for MFIConfig
impl UnwindSafe for MFIConfig
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