MacdIndicator<T, D> constructor
MacdIndicator<T, D> ({
- bool? isVisible,
- String? xAxisName,
- String? yAxisName,
- String? seriesName,
- List<
double> ? dashArray, - double? animationDuration,
- double? animationDelay,
- List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, num> ? closeValueMapper, - String? name,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- String? legendItemText,
- Color? signalLineColor,
- double? signalLineWidth,
- int? period,
- int shortPeriod = 12,
- int longPeriod = 26,
- Color macdLineColor = Colors.orange,
- double macdLineWidth = 2,
- MacdType macdType = MacdType.both,
- Color histogramPositiveColor = Colors.green,
- Color histogramNegativeColor = Colors.red,
- ChartIndicatorRenderCallback? onRenderDetailsUpdate,
Creating an argument constructor of MacdIndicator class.
Implementation
MacdIndicator(
{bool? isVisible,
String? xAxisName,
String? yAxisName,
String? seriesName,
List<double>? dashArray,
double? animationDuration,
double? animationDelay,
List<T>? dataSource,
ChartValueMapper<T, D>? xValueMapper,
ChartValueMapper<T, num>? closeValueMapper,
String? name,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
String? legendItemText,
Color? signalLineColor,
double? signalLineWidth,
int? period,
this.shortPeriod = 12,
this.longPeriod = 26,
this.macdLineColor = Colors.orange,
this.macdLineWidth = 2,
this.macdType = MacdType.both,
this.histogramPositiveColor = Colors.green,
this.histogramNegativeColor = Colors.red,
ChartIndicatorRenderCallback? onRenderDetailsUpdate})
: super(
isVisible: isVisible,
xAxisName: xAxisName,
yAxisName: yAxisName,
seriesName: seriesName,
dashArray: dashArray,
animationDuration: animationDuration,
animationDelay: animationDelay,
dataSource: dataSource,
xValueMapper: xValueMapper,
closeValueMapper: closeValueMapper,
name: name,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
legendItemText: legendItemText,
signalLineColor: signalLineColor,
signalLineWidth: signalLineWidth,
period: period,
onRenderDetailsUpdate: onRenderDetailsUpdate);