kPeriod property

num kPeriod
final

Value of kPeriod in stochastic Indicator.

Defaults to 3.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicators<Sample, num>>[
     StochasticIndicator<Sample, num>(
       seriesName: 'Series1',
       kPeriod: 4
     ),
   ],
   series: <ChartSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final num kPeriod;