MACDIndicator<T extends IndicatorResult> constructor
MACDIndicator<T extends IndicatorResult> (
- IndicatorDataInput input, {
- int fastMAPeriod = 12,
- 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,
);