pub struct FvgPositioningAverageInput<'a> {
pub data: FvgPositioningAverageData<'a>,
pub params: FvgPositioningAverageParams,
}Fields§
§data: FvgPositioningAverageData<'a>§params: FvgPositioningAverageParamsImplementations§
Source§impl<'a> FvgPositioningAverageInput<'a>
impl<'a> FvgPositioningAverageInput<'a>
pub fn from_candles( candles: &'a Candles, params: FvgPositioningAverageParams, ) -> Self
pub fn from_slices( open: &'a [f64], high: &'a [f64], low: &'a [f64], close: &'a [f64], params: FvgPositioningAverageParams, ) -> Self
pub fn with_default_candles(candles: &'a Candles) -> Self
pub fn get_lookback(&self) -> usize
pub fn get_lookback_type(&self) -> &str
pub fn get_atr_multiplier(&self) -> f64
Trait Implementations§
Source§impl<'a> Clone for FvgPositioningAverageInput<'a>
impl<'a> Clone for FvgPositioningAverageInput<'a>
Source§fn clone(&self) -> FvgPositioningAverageInput<'a>
fn clone(&self) -> FvgPositioningAverageInput<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for FvgPositioningAverageInput<'a>
impl<'a> RefUnwindSafe for FvgPositioningAverageInput<'a>
impl<'a> Send for FvgPositioningAverageInput<'a>
impl<'a> Sync for FvgPositioningAverageInput<'a>
impl<'a> Unpin for FvgPositioningAverageInput<'a>
impl<'a> UnsafeUnpin for FvgPositioningAverageInput<'a>
impl<'a> UnwindSafe for FvgPositioningAverageInput<'a>
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