pub struct TdSequentialOutput {
pub setup: f64,
pub countdown: f64,
pub direction: f64,
}Expand description
Output of TdSequential: setup count, countdown count, and active
countdown direction.
Fields§
§setup: f64Signed setup count: +N for an active buy setup of length N, −N for
a sell setup of length N, 0 if neither streak is active. Capped at
±9 (the canonical setup target).
countdown: f64Signed countdown count: +N for an active buy countdown of length N,
−N for a sell countdown of length N, 0 if no countdown is active.
Capped at ±13.
direction: f64Direction of the active countdown: +1.0 for buy, −1.0 for sell,
0.0 if no countdown is currently active.
Trait Implementations§
Source§impl Clone for TdSequentialOutput
impl Clone for TdSequentialOutput
Source§fn clone(&self) -> TdSequentialOutput
fn clone(&self) -> TdSequentialOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TdSequentialOutput
impl Debug for TdSequentialOutput
Source§impl PartialEq for TdSequentialOutput
impl PartialEq for TdSequentialOutput
Source§fn eq(&self, other: &TdSequentialOutput) -> bool
fn eq(&self, other: &TdSequentialOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TdSequentialOutput
impl StructuralPartialEq for TdSequentialOutput
Auto Trait Implementations§
impl Freeze for TdSequentialOutput
impl RefUnwindSafe for TdSequentialOutput
impl Send for TdSequentialOutput
impl Sync for TdSequentialOutput
impl Unpin for TdSequentialOutput
impl UnsafeUnpin for TdSequentialOutput
impl UnwindSafe for TdSequentialOutput
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> 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