pub struct TdRiskLevelOutput {
pub buy_risk: f64,
pub sell_risk: f64,
}Expand description
Output of TdRiskLevel: the latest buy- and sell-side protective
stop levels derived from the most-recently-completed setup in each
direction. Either field is f64::NAN until the first setup in that
direction completes.
Fields§
§buy_risk: f64Protective-stop level for a long position taken on a completed
buy setup. NAN until the first buy setup completes.
sell_risk: f64Protective-stop level for a short position taken on a completed
sell setup. NAN until the first sell setup completes.
Trait Implementations§
Source§impl Clone for TdRiskLevelOutput
impl Clone for TdRiskLevelOutput
Source§fn clone(&self) -> TdRiskLevelOutput
fn clone(&self) -> TdRiskLevelOutput
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 TdRiskLevelOutput
impl Debug for TdRiskLevelOutput
Source§impl PartialEq for TdRiskLevelOutput
impl PartialEq for TdRiskLevelOutput
Source§fn eq(&self, other: &TdRiskLevelOutput) -> bool
fn eq(&self, other: &TdRiskLevelOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TdRiskLevelOutput
impl StructuralPartialEq for TdRiskLevelOutput
Auto Trait Implementations§
impl Freeze for TdRiskLevelOutput
impl RefUnwindSafe for TdRiskLevelOutput
impl Send for TdRiskLevelOutput
impl Sync for TdRiskLevelOutput
impl Unpin for TdRiskLevelOutput
impl UnsafeUnpin for TdRiskLevelOutput
impl UnwindSafe for TdRiskLevelOutput
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