MACDIndicator<T extends IndicatorResult> constructor

MACDIndicator<T extends IndicatorResult>(
  1. IndicatorDataInput input, {
  2. int fastMAPeriod = 12,
  3. int slowMAPeriod = 26,
})

Creates a Moving average convergence divergence indicator from the given input], with short term ema set to 12 periods(fastMAPeriod) and long term ema set to 26 periods(slowMAPeriod) as default.

Implementation

MACDIndicator(
  IndicatorDataInput input, {
  int fastMAPeriod = 12,
  int slowMAPeriod = 26,
}) : this.fromIndicator(
        CloseValueIndicator<T>(input),
        fastMAPeriod: fastMAPeriod,
        slowMAPeriod: slowMAPeriod,
      );