pub struct OBVState {
pub previous_close: Option<f64>,
pub cumulative_obv: f64,
pub config: OBVConfig,
pub is_first: bool,
}Expand description
OBV calculation state
Fields§
§previous_close: Option<f64>Previous closing price
cumulative_obv: f64Current cumulative OBV value
config: OBVConfigConfiguration
is_first: boolWhether this is the first calculation
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OBVState
impl<'de> Deserialize<'de> for OBVState
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 OBVState
Auto Trait Implementations§
impl Freeze for OBVState
impl RefUnwindSafe for OBVState
impl Send for OBVState
impl Sync for OBVState
impl Unpin for OBVState
impl UnwindSafe for OBVState
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