pub enum OrbBreakout {
None,
BullishBreakout,
BearishBreakout,
}Expand description
Breakout status relative to the opening range.
Variants§
None
Price is within the opening range or range is still forming / closed.
BullishBreakout
Bar closed strictly above the opening range high.
BearishBreakout
Bar closed strictly below the opening range low.
Implementations§
Source§impl OrbBreakout
impl OrbBreakout
Sourcepub const fn is_breakout(self) -> bool
pub const fn is_breakout(self) -> bool
Returns true if any directional breakout occurred.
Sourcepub const fn is_bullish(self) -> bool
pub const fn is_bullish(self) -> bool
Returns true if a bullish breakout occurred.
Sourcepub const fn is_bearish(self) -> bool
pub const fn is_bearish(self) -> bool
Returns true if a bearish breakout occurred.
Trait Implementations§
Source§impl Clone for OrbBreakout
impl Clone for OrbBreakout
impl Copy for OrbBreakout
Source§impl Debug for OrbBreakout
impl Debug for OrbBreakout
Source§impl<'de> Deserialize<'de> for OrbBreakout
impl<'de> Deserialize<'de> for OrbBreakout
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 Eq for OrbBreakout
Source§impl Hash for OrbBreakout
impl Hash for OrbBreakout
Source§impl PartialEq for OrbBreakout
impl PartialEq for OrbBreakout
Source§impl Serialize for OrbBreakout
impl Serialize for OrbBreakout
impl StructuralPartialEq for OrbBreakout
Auto Trait Implementations§
impl Forget for OrbBreakout
impl Freeze for OrbBreakout
impl Move for OrbBreakout
impl RefUnwindSafe for OrbBreakout
impl Send for OrbBreakout
impl Sync for OrbBreakout
impl Unpin for OrbBreakout
impl UnsafeUnpin for OrbBreakout
impl UnwindSafe for OrbBreakout
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.