MacdIndicator<T, D> class

This class holds the properties of the Macd indicator.

The macd indicator has shortPeriod and longPeriod for defining the motion of the indicator. Also, you can draw line, histogram macd or both using the macdType property.

The macdLineColor property is used to define the color for the macd line and the histogramNegativeColor and histogramPositiveColor property is used to define the color for the macd histogram.

Provides the options of macd type, name, short Period, long period and macd line color is used to customize the appearance.

Inheritance
Annotations

Constructors

MacdIndicator({bool isVisible = true, String? xAxisName, String? yAxisName, String? seriesName, List<double> dashArray = const <double>[0, 0], double animationDuration = 1500, double animationDelay = 0, List<T>? dataSource, ChartValueMapper<T, D>? xValueMapper, ChartValueMapper<T, num>? closeValueMapper, String? name, bool isVisibleInLegend = true, LegendIconType legendIconType = LegendIconType.seriesType, String? legendItemText, Color signalLineColor = Colors.blue, double signalLineWidth = 2, int period = 14, 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.

Properties

animationDelay double
Delay duration of the technical indicator's animation. It takes a millisecond value as input. By default, the technical indicator will get animated for the specified duration. If animationDelay is specified, then the technical indicator will begin to animate after the specified duration.
finalinherited
animationDuration double
Animation duration for the technical indicators.
finalinherited
closeValueMapper ChartIndexedValueMapper<num?>?
Value mapper to map the close values with technical indicators.
finalinherited
dashArray List<double>
Property to provide dash array for the technical indicators.
finalinherited
dataSource List<T>?
Property to provide data for the technical indicators without any series.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
highValueMapper ChartIndexedValueMapper<num?>?
Value mapper to map the high values with technical indicators.
finalinherited
histogramNegativeColor Color
Histogram negative color of the macd indicator.
final
histogramPositiveColor Color
Histogram positive color of the macd indicator.
final
isVisible bool
Boolean property to change the visibility of the technical indicators.
finalinherited
isVisibleInLegend bool
Boolean property to determine the rendering of legends for the technical indicators.
finalinherited
legendIconType LegendIconType
Property to provide icon type for the technical indicators legend.
finalinherited
legendItemText String?
Property to provide the text for the technical indicators legend.
finalinherited
longPeriod int
Long period value of the macd indicator.
final
lowValueMapper ChartIndexedValueMapper<num?>?
Value mapper to map the low values with technical indicators.
finalinherited
macdLineColor Color
Macd line color of the macd indicator.
final
macdLineWidth double
Macd line width of the macd indicator.
final
macdType MacdType
Macd type line of the macd indicator.
final
name String?
Property to provide name for the technical indicators.
finalinherited
onRenderDetailsUpdate ChartIndicatorRenderCallback?
Callback which gets called while rendering the indicators.
finalinherited
openValueMapper ChartIndexedValueMapper<num?>?
Value mapper to map the open values with technical indicators.
finalinherited
period int
Period determines the start point for the rendering of technical indicators.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seriesName String?
Property to link indicators to a series based on names.
finalinherited
shortPeriod int
Short period value of the macd indicator.
final
signalLineColor Color
Property to provide the color of the signal line in the technical indicators.
finalinherited
signalLineWidth double
Property to provide the width of the signal line in the technical indicators.
finalinherited
volumeValueMapper ChartIndexedValueMapper<num?>?
Volume of series.
finalinherited
xAxisName String?
Property to map the technical indicators with the axes.
finalinherited
xValueMapper ChartIndexedValueMapper<D>?
Value mapper to map the x values with technical indicators.
finalinherited
yAxisName String?
Property to map the technical indicators with the axes.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override