pub struct HalfTrendBatchOutput {
pub halftrend: Vec<f64>,
pub trend: Vec<f64>,
pub atr_high: Vec<f64>,
pub atr_low: Vec<f64>,
pub buy_signal: Vec<f64>,
pub sell_signal: Vec<f64>,
pub combos: Vec<HalfTrendParams>,
pub rows: usize,
pub cols: usize,
}Fields§
§halftrend: Vec<f64>§trend: Vec<f64>§atr_high: Vec<f64>§atr_low: Vec<f64>§buy_signal: Vec<f64>§sell_signal: Vec<f64>§combos: Vec<HalfTrendParams>§rows: usize§cols: usizeImplementations§
Source§impl HalfTrendBatchOutput
impl HalfTrendBatchOutput
pub fn row_for_params(&self, p: &HalfTrendParams) -> Option<usize>
pub fn halftrend_for(&self, p: &HalfTrendParams) -> Option<&[f64]>
pub fn trend_for(&self, p: &HalfTrendParams) -> Option<&[f64]>
pub fn atr_high_for(&self, p: &HalfTrendParams) -> Option<&[f64]>
pub fn atr_low_for(&self, p: &HalfTrendParams) -> Option<&[f64]>
pub fn buy_for(&self, p: &HalfTrendParams) -> Option<&[f64]>
pub fn sell_for(&self, p: &HalfTrendParams) -> Option<&[f64]>
Auto Trait Implementations§
impl Freeze for HalfTrendBatchOutput
impl RefUnwindSafe for HalfTrendBatchOutput
impl Send for HalfTrendBatchOutput
impl Sync for HalfTrendBatchOutput
impl Unpin for HalfTrendBatchOutput
impl UnsafeUnpin for HalfTrendBatchOutput
impl UnwindSafe for HalfTrendBatchOutput
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> 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