pub struct ZigZagEngine { /* private fields */ }Expand description
Advanced ZigZag Engine tracking multi-pivot swing legs and trend reversals.
Implementations§
Source§impl ZigZagEngine
impl ZigZagEngine
pub fn new(depth: usize, deviation_pct: f64) -> Self
pub fn with_defaults() -> Self
pub fn nodes(&self) -> &[ZigZagNode]
Trait Implementations§
Source§impl Clone for ZigZagEngine
impl Clone for ZigZagEngine
Source§fn clone(&self) -> ZigZagEngine
fn clone(&self) -> ZigZagEngine
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 ZigZagEngine
impl Debug for ZigZagEngine
Source§impl Indicator for ZigZagEngine
impl Indicator for ZigZagEngine
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 ZigZagEngine
impl RefUnwindSafe for ZigZagEngine
impl Send for ZigZagEngine
impl Sync for ZigZagEngine
impl Unpin for ZigZagEngine
impl UnsafeUnpin for ZigZagEngine
impl UnwindSafe for ZigZagEngine
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