pub struct CCIConfig {
pub period: usize,
pub overbought: f64,
pub oversold: f64,
pub extreme_overbought: f64,
pub extreme_oversold: f64,
}Expand description
Configuration for CCI calculation
Fields§
§period: usizePeriod for CCI calculation (default: 20)
overbought: f64Overbought threshold (default: 100.0)
oversold: f64Oversold threshold (default: -100.0)
extreme_overbought: f64Extreme overbought threshold (default: 200.0)
extreme_oversold: f64Extreme oversold threshold (default: -200.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CCIConfig
impl<'de> Deserialize<'de> for CCIConfig
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 CCIConfig
impl StructuralPartialEq for CCIConfig
Auto Trait Implementations§
impl Freeze for CCIConfig
impl RefUnwindSafe for CCIConfig
impl Send for CCIConfig
impl Sync for CCIConfig
impl Unpin for CCIConfig
impl UnwindSafe for CCIConfig
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