pub struct WilliamsFractalsOutput {
pub up: Option<f64>,
pub down: Option<f64>,
}Expand description
Williams Fractals output for one bar.
Each field is Some(price) when a fractal high/low was confirmed at the
centre of the most recent five-bar window, and None otherwise. Up and
down fractals are independent and can coincide (a centre bar can be both
the maximum high and the minimum low of the window).
Fields§
§up: Option<f64>Up fractal: the centre bar’s high, if it is strictly greater than the two highs to its left and the two highs to its right.
down: Option<f64>Down fractal: the centre bar’s low, if it is strictly less than the two lows to its left and the two lows to its right.
Trait Implementations§
Source§impl Clone for WilliamsFractalsOutput
impl Clone for WilliamsFractalsOutput
Source§fn clone(&self) -> WilliamsFractalsOutput
fn clone(&self) -> WilliamsFractalsOutput
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 WilliamsFractalsOutput
impl Debug for WilliamsFractalsOutput
Source§impl PartialEq for WilliamsFractalsOutput
impl PartialEq for WilliamsFractalsOutput
Source§fn eq(&self, other: &WilliamsFractalsOutput) -> bool
fn eq(&self, other: &WilliamsFractalsOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WilliamsFractalsOutput
impl StructuralPartialEq for WilliamsFractalsOutput
Auto Trait Implementations§
impl Freeze for WilliamsFractalsOutput
impl RefUnwindSafe for WilliamsFractalsOutput
impl Send for WilliamsFractalsOutput
impl Sync for WilliamsFractalsOutput
impl Unpin for WilliamsFractalsOutput
impl UnsafeUnpin for WilliamsFractalsOutput
impl UnwindSafe for WilliamsFractalsOutput
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