pub struct CrossesAboveRef<R1: IndicatorRef, R2: IndicatorRef> { /* private fields */ }Expand description
Condition: indicator crosses above another indicator.
True when the fast indicator was at or below the slow indicator and is now above it.
Implementations§
Source§impl<R1: IndicatorRef, R2: IndicatorRef> CrossesAboveRef<R1, R2>
impl<R1: IndicatorRef, R2: IndicatorRef> CrossesAboveRef<R1, R2>
Trait Implementations§
Source§impl<R1: Clone + IndicatorRef, R2: Clone + IndicatorRef> Clone for CrossesAboveRef<R1, R2>
impl<R1: Clone + IndicatorRef, R2: Clone + IndicatorRef> Clone for CrossesAboveRef<R1, R2>
Source§fn clone(&self) -> CrossesAboveRef<R1, R2>
fn clone(&self) -> CrossesAboveRef<R1, R2>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R1: IndicatorRef, R2: IndicatorRef> Condition for CrossesAboveRef<R1, R2>
impl<R1: IndicatorRef, R2: IndicatorRef> Condition for CrossesAboveRef<R1, R2>
Source§fn evaluate(&self, ctx: &StrategyContext<'_>) -> bool
fn evaluate(&self, ctx: &StrategyContext<'_>) -> bool
Evaluate the condition with the current strategy context. Read more
Source§fn required_indicators(&self) -> Vec<(String, Indicator)>
fn required_indicators(&self) -> Vec<(String, Indicator)>
Get the indicators required by this condition. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Get a human-readable description of this condition. Read more
Source§fn and<C: Condition>(self, other: C) -> And<Self, C>where
Self: Sized,
fn and<C: Condition>(self, other: C) -> And<Self, C>where
Self: Sized,
Combine this condition with another using AND logic. Read more
Auto Trait Implementations§
impl<R1, R2> Freeze for CrossesAboveRef<R1, R2>
impl<R1, R2> RefUnwindSafe for CrossesAboveRef<R1, R2>where
R1: RefUnwindSafe,
R2: RefUnwindSafe,
impl<R1, R2> Send for CrossesAboveRef<R1, R2>
impl<R1, R2> Sync for CrossesAboveRef<R1, R2>
impl<R1, R2> Unpin for CrossesAboveRef<R1, R2>
impl<R1, R2> UnsafeUnpin for CrossesAboveRef<R1, R2>where
R1: UnsafeUnpin,
R2: UnsafeUnpin,
impl<R1, R2> UnwindSafe for CrossesAboveRef<R1, R2>where
R1: UnwindSafe,
R2: UnwindSafe,
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more