pub struct Macd {
pub params: MacdParams,
}Fields§
§params: MacdParamsImplementations§
Trait Implementations§
Source§impl Indicator for Macd
impl Indicator for Macd
Source§fn calculate(
&self,
candles: &[Candle],
) -> Result<IndicatorOutput, IndicatorError>
fn calculate( &self, candles: &[Candle], ) -> Result<IndicatorOutput, IndicatorError>
Delegates to the existing crate::functions::macd().
TODO: verify output key naming matches Python (MACD_line etc.)
Source§fn required_len(&self) -> usize
fn required_len(&self) -> usize
Minimum number of candles required before output is non-
NaN.
Mirrors Python’s implicit warm-up period used for validation.Source§fn required_columns(&self) -> &[&'static str]
fn required_columns(&self) -> &[&'static str]
Which OHLCV fields this indicator reads. Read more
Auto Trait Implementations§
impl Freeze for Macd
impl RefUnwindSafe for Macd
impl Send for Macd
impl Sync for Macd
impl Unpin for Macd
impl UnsafeUnpin for Macd
impl UnwindSafe for Macd
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