pub struct CCIState {
pub config: CCIConfig,
pub typical_prices: VecDeque<f64>,
pub tp_sum: f64,
pub has_sufficient_data: bool,
}Expand description
CCI calculation state
Fields§
§config: CCIConfigConfiguration
typical_prices: VecDeque<f64>History of typical prices
tp_sum: f64Sum of typical prices (for SMA calculation)
has_sufficient_data: boolWhether we have enough data for calculation
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CCIState
impl<'de> Deserialize<'de> for CCIState
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 CCIState
Auto Trait Implementations§
impl Freeze for CCIState
impl RefUnwindSafe for CCIState
impl Send for CCIState
impl Sync for CCIState
impl Unpin for CCIState
impl UnwindSafe for CCIState
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