pub struct CoppockCurveEngine { /* private fields */ }Expand description
Coppock Curve with fixed windows: WMA10(ROC14 + ROC11), both ROCs in percent.
First output: once the WMA is full, i.e. with the 24th bar. Indicator::reset clears the
window and the average.
Implementations§
Trait Implementations§
Source§impl Clone for CoppockCurveEngine
impl Clone for CoppockCurveEngine
Source§fn clone(&self) -> CoppockCurveEngine
fn clone(&self) -> CoppockCurveEngine
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 CoppockCurveEngine
impl Debug for CoppockCurveEngine
Source§impl Default for CoppockCurveEngine
impl Default for CoppockCurveEngine
Source§impl Indicator for CoppockCurveEngine
impl Indicator for CoppockCurveEngine
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 CoppockCurveEngine
impl RefUnwindSafe for CoppockCurveEngine
impl Send for CoppockCurveEngine
impl Sync for CoppockCurveEngine
impl Unpin for CoppockCurveEngine
impl UnsafeUnpin for CoppockCurveEngine
impl UnwindSafe for CoppockCurveEngine
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