valueField property
Value field property for EMA indicator.
Based on the value field property, the moving average is calculated and the indicator is rendered.
Defaults to close
.
Widget build(BuildContext context) {
return SfCartesianChart(
indicators: <TechnicalIndicator<Sample, num>>[
EmaIndicator<Sample, num>(
seriesName: 'Series1'
period: 4,
valueField: 'low'
),
],
series: <CartesianSeries<Sample, num>>[
HiloOpenCloseSeries<Sample, num>(
name: 'Series1'
)
]
);
}
Implementation
final String valueField;