pub struct FairValueGapZone {
pub id: u64,
pub direction: FvgDirection,
pub bar_index: usize,
pub zone_high: f64,
pub zone_low: f64,
pub gap_size: f64,
pub mitigation: MitigationStatus,
pub mitigation_bar: Option<usize>,
}Expand description
Structural representation of an identified Fair Value Gap.
Fields§
§id: u64Monotonically increasing unique ID.
direction: FvgDirectionBullish or Bearish direction.
bar_index: usizeBar index where the gap was confirmed (bar t).
zone_high: f64Upper boundary of the imbalance zone.
zone_low: f64Lower boundary of the imbalance zone.
gap_size: f64Gap width: zone_high - zone_low.
mitigation: MitigationStatusMitigation status.
mitigation_bar: Option<usize>Bar index where mitigation occurred (if any).
Implementations§
Source§impl FairValueGapZone
impl FairValueGapZone
pub fn is_unmitigated(&self) -> bool
pub fn is_partially_mitigated(&self) -> bool
pub fn is_fully_mitigated(&self) -> bool
Trait Implementations§
Source§impl Clone for FairValueGapZone
impl Clone for FairValueGapZone
impl Copy for FairValueGapZone
Source§impl Debug for FairValueGapZone
impl Debug for FairValueGapZone
Source§impl<'de> Deserialize<'de> for FairValueGapZone
impl<'de> Deserialize<'de> for FairValueGapZone
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
Source§impl PartialEq for FairValueGapZone
impl PartialEq for FairValueGapZone
Source§impl Serialize for FairValueGapZone
impl Serialize for FairValueGapZone
impl StructuralPartialEq for FairValueGapZone
Auto Trait Implementations§
impl Forget for FairValueGapZone
impl Freeze for FairValueGapZone
impl Move for FairValueGapZone
impl RefUnwindSafe for FairValueGapZone
impl Send for FairValueGapZone
impl Sync for FairValueGapZone
impl Unpin for FairValueGapZone
impl UnsafeUnpin for FairValueGapZone
impl UnwindSafe for FairValueGapZone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.