pub struct MFIState {
pub config: MFIConfig,
pub money_flows: VecDeque<MoneyFlow>,
pub previous_typical_price: Option<f64>,
pub positive_money_flow_sum: f64,
pub negative_money_flow_sum: f64,
pub has_sufficient_data: bool,
}Expand description
MFI calculation state
Fields§
§config: MFIConfigConfiguration
money_flows: VecDeque<MoneyFlow>History of money flow data points
previous_typical_price: Option<f64>Previous typical price for comparison
positive_money_flow_sum: f64Sum of positive money flows in current period
negative_money_flow_sum: f64Sum of negative money flows in current period
has_sufficient_data: boolWhether we have enough data for calculation
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MFIState
impl<'de> Deserialize<'de> for MFIState
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 StructuralPartialEq for MFIState
Auto Trait Implementations§
impl Freeze for MFIState
impl RefUnwindSafe for MFIState
impl Send for MFIState
impl Sync for MFIState
impl Unpin for MFIState
impl UnwindSafe for MFIState
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