MacdIndicator<T, D> class Null safety

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, String? xAxisName, String? yAxisName, String? seriesName, List<double>? dashArray, double? animationDuration, 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.

Properties

animationDuration double
Animation duration for the technical indicators. [...]
final, inherited
closeValueMapper ChartIndexedValueMapper<num>?
Value mapper to map the close values with technical indicators. [...]
final, inherited
dashArray List<double>
Property to provide DashArray for the technical indicators. [...]
final, inherited
dataSource List<T>?
Property to provide data for the technical indicators without any series. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, override
highValueMapper ChartIndexedValueMapper<num>?
Value mapper to map the high values with technical indicators. [...]
final, inherited
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. [...]
final, inherited
isVisibleInLegend bool
Boolean property to determine the rendering of legends for the technical indicators. [...]
final, inherited
legendIconType LegendIconType
Property to provide icon type for the technical indicators legend. [...]
final, inherited
legendItemText String?
Property to provide the text for the technical indicators legend. [...]
final, inherited
longPeriod int
Long period value of the macd indicator. [...]
final
lowValueMapper ChartIndexedValueMapper<num>?
Value mapper to map the low values with technical indicators. [...]
final, inherited
macdLineColor Color
MacdLine color of the macd indicator. [...]
final
macdLineWidth double
MacdLine 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. [...]
final, inherited
onRenderDetailsUpdate ChartIndicatorRenderCallback?
Callback which gets called while rendering the indicators [...]
final, inherited
openValueMapper ChartIndexedValueMapper<num>?
Value mapper to map the open values with technical indicators. [...]
final, inherited
period int
Period determines the start point for the rendering of technical indicators. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seriesName String?
Property to link indicators to a series based on names. [...]
final, inherited
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. [...]
final, inherited
signalLineWidth double
Property to provide the width of the signal line in the technical indicators. [...]
final, inherited
xAxisName String?
Property to map the technical indicators with the axes. [...]
final, inherited
xValueMapper ChartIndexedValueMapper<D>?
Value mapper to map the x values with technical indicators. [...]
final, inherited
yAxisName String?
Property to map the technical indicators with the axes. [...]
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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