pub struct RelativeStrengthOutput {
pub ratio: f64,
pub ratio_ma: f64,
pub ratio_rsi: f64,
}Expand description
Output of RelativeStrengthAB.
Fields§
§ratio: f64The raw relative-strength ratio a / b.
ratio_ma: f64Simple moving average of the ratio over ma_period.
ratio_rsi: f64Relative Strength Index of the ratio over rsi_period.
Trait Implementations§
Source§impl Clone for RelativeStrengthOutput
impl Clone for RelativeStrengthOutput
Source§fn clone(&self) -> RelativeStrengthOutput
fn clone(&self) -> RelativeStrengthOutput
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 RelativeStrengthOutput
impl Debug for RelativeStrengthOutput
Source§impl PartialEq for RelativeStrengthOutput
impl PartialEq for RelativeStrengthOutput
Source§fn eq(&self, other: &RelativeStrengthOutput) -> bool
fn eq(&self, other: &RelativeStrengthOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RelativeStrengthOutput
impl StructuralPartialEq for RelativeStrengthOutput
Auto Trait Implementations§
impl Freeze for RelativeStrengthOutput
impl RefUnwindSafe for RelativeStrengthOutput
impl Send for RelativeStrengthOutput
impl Sync for RelativeStrengthOutput
impl Unpin for RelativeStrengthOutput
impl UnsafeUnpin for RelativeStrengthOutput
impl UnwindSafe for RelativeStrengthOutput
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