MASeries.fromIndicator constructor
MASeries.fromIndicator(})
Initializes
Implementation
MASeries.fromIndicator(
Indicator<Tick> indicator,
MAOptions options, {
String? id,
LineStyle? style,
super.offset,
}) : super(
indicator,
id ?? 'SMASeries-period${options.period}-type${options.type}',
options: options,
style: style ?? const LineStyle(thickness: 0.5),
lastTickIndicatorStyle: style != null
? getLastIndicatorStyle(
style.color,
showLastIndicator: options.showLastIndicator,
)
: null,
);