pub struct IncrementalMacd { /* private fields */ }Expand description
Incremental MACD — O(1) per-tick MACD line, signal, and histogram.
Mirrors the batch macd: a fast and slow IncrementalEma give the MACD
line (fast - slow), a third EMA over that line is the signal, and the
histogram is macd - signal. The EMAs seed from the first sample (matching
the batch’s adjust=false / first-value seeding via ema_nan_aware), so
values are emitted from the first tick rather than after a NaN warm-up.
Implementations§
Trait Implementations§
Source§impl Clone for IncrementalMacd
impl Clone for IncrementalMacd
Source§fn clone(&self) -> IncrementalMacd
fn clone(&self) -> IncrementalMacd
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 moreAuto Trait Implementations§
impl Freeze for IncrementalMacd
impl RefUnwindSafe for IncrementalMacd
impl Send for IncrementalMacd
impl Sync for IncrementalMacd
impl Unpin for IncrementalMacd
impl UnsafeUnpin for IncrementalMacd
impl UnwindSafe for IncrementalMacd
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