pub struct TdLinesOutput {
pub resistance: f64,
pub support: f64,
}Expand description
Output of TdLines: the latest TDST resistance / support pair.
resistance is set after a completed buy setup (the highest high of
the nine setup bars); support is set after a completed sell setup
(the lowest low of the nine setup bars). Either field is f64::NAN
until the first setup in that direction completes.
Fields§
§resistance: f64Latest TDST resistance, or NAN if no buy setup has completed yet.
The two levels are established independently, so one can be a real price
while the other is still NAN. update withholds the output entirely
(None) until at least one of them exists, so a returned value always
carries at least one level. NAN is the encoding because the C ABI
mirrors this struct as two plain doubles.
support: f64Latest TDST support, or NAN if no sell setup has completed yet.
See Self::resistance for when a level can be NAN.
Trait Implementations§
Source§impl Clone for TdLinesOutput
impl Clone for TdLinesOutput
Source§fn clone(&self) -> TdLinesOutput
fn clone(&self) -> TdLinesOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TdLinesOutput
Source§impl Debug for TdLinesOutput
impl Debug for TdLinesOutput
Source§impl PartialEq for TdLinesOutput
impl PartialEq for TdLinesOutput
impl StructuralPartialEq for TdLinesOutput
Auto Trait Implementations§
impl Freeze for TdLinesOutput
impl RefUnwindSafe for TdLinesOutput
impl Send for TdLinesOutput
impl Sync for TdLinesOutput
impl Unpin for TdLinesOutput
impl UnsafeUnpin for TdLinesOutput
impl UnwindSafe for TdLinesOutput
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
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> ⓘ
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> ⓘ
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