pub type MovingAverageConvergenceDivergence<M = MA> = MACD<M>;
Expand description

Just an alias for MACD

Aliased Type§

struct MovingAverageConvergenceDivergence<M = MA> {
    pub ma1: M,
    pub ma2: M,
    pub signal: M,
    pub source: Source,
}

Fields§

§ma1: M

Fast MA type.

Default is EMA(12).

Period range in [2; ma2’s period)

§ma2: M

Slow MA type.

Default is EMA(26).

Period range in (ma1’s period; PeriodType::MAX)

§signal: M

Signal line MA type.

Default is EMA(9).

Range in [2; PeriodType::MAX)

§source: Source

Source value type. Default is Close