kPeriod property

num kPeriod
final

Value of kPeriod in stochastic Indicator.

Defaults to 3.

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

Implementation

final num kPeriod;