pub struct CCIOutput {
pub cci: f64,
pub typical_price: f64,
pub sma_tp: f64,
pub mean_deviation: f64,
pub market_condition: CCIMarketCondition,
pub distance_from_zero: f64,
}Expand description
Output from CCI calculation
Fields§
§cci: f64Commodity Channel Index value
typical_price: f64Current typical price ((H+L+C)/3)
sma_tp: f64Simple moving average of typical price
mean_deviation: f64Mean absolute deviation
market_condition: CCIMarketConditionMarket condition based on thresholds
distance_from_zero: f64Distance from zero (absolute CCI value)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CCIOutput
impl<'de> Deserialize<'de> for CCIOutput
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 CCIOutput
impl StructuralPartialEq for CCIOutput
Auto Trait Implementations§
impl Freeze for CCIOutput
impl RefUnwindSafe for CCIOutput
impl Send for CCIOutput
impl Sync for CCIOutput
impl Unpin for CCIOutput
impl UnwindSafe for CCIOutput
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