shortPeriod property

int shortPeriod
final

Short period value of the macd indicator.

Defaults to 12.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicator<Sample, num>>[
     MacdIndicator<Sample, num>(
       seriesName: 'Series1',
       shortPeriod: 2
     ),
   ],
   series: <CartesianSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final int shortPeriod;