pub struct LsmaEngine { /* private fields */ }Expand description
Least Squares Moving Average (LSMA) Engine / Linear Regression Endpoint.
Implementations§
Trait Implementations§
Source§impl Clone for LsmaEngine
impl Clone for LsmaEngine
Source§fn clone(&self) -> LsmaEngine
fn clone(&self) -> LsmaEngine
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 LsmaEngine
impl Debug for LsmaEngine
Source§impl Indicator for LsmaEngine
impl Indicator for LsmaEngine
fn name(&self) -> &str
fn warmup_period(&self) -> usize
fn reset(&mut self)
fn on_bar(&mut self, bar: &Bar) -> Option<IndicatorOutput>
fn alerts(&self) -> Vec<IndicatorAlert>
Source§fn on_checked_bar(
&mut self,
bar: &Bar,
) -> Result<Option<IndicatorOutput>, BarValidationError>
fn on_checked_bar( &mut self, bar: &Bar, ) -> Result<Option<IndicatorOutput>, BarValidationError>
Validates a bar before forwarding it to
Indicator::on_bar.Auto Trait Implementations§
impl Freeze for LsmaEngine
impl RefUnwindSafe for LsmaEngine
impl Send for LsmaEngine
impl Sync for LsmaEngine
impl Unpin for LsmaEngine
impl UnsafeUnpin for LsmaEngine
impl UnwindSafe for LsmaEngine
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