StochasticIndicator<T, D> class
Renders stochastic indicator.
The stochastic indicator is used to measure the range and momentum of price movements. It contains kPeriod and dPeriod properties defining the ‘k’ percentage and ‘d’ percentage respectively.
In this indicator upperLineColor, lowerLineColor and periodLineColor property are used to define the color for the Stochastic indicator lines.
- Inheritance
-
- Object
- TechnicalIndicators<
T, D> - StochasticIndicator
Constructors
-
StochasticIndicator({bool? isVisible, String? xAxisName, String? yAxisName, String? seriesName, List<
double> ? dashArray, double? animationDuration, List<T> ? dataSource, ChartValueMapper<T, D> ? xValueMapper, ChartValueMapper<T, num> ? highValueMapper, ChartValueMapper<T, num> ? lowValueMapper, ChartValueMapper<T, num> ? openValueMapper, ChartValueMapper<T, num> ? closeValueMapper, String? name, bool? isVisibleInLegend, LegendIconType? legendIconType, String? legendItemText, Color? signalLineColor, double? signalLineWidth, int? period, bool showZones = true, double overbought = 80, double oversold = 20, Color upperLineColor = Colors.red, double upperLineWidth = 2, Color lowerLineColor = Colors.green, double lowerLineWidth = 2, Color periodLineColor = Colors.yellow, double periodLineWidth = 2, num kPeriod = 3, num dPeriod = 5}) - Creating an argument constructor of StochasticIndicator class.
Properties
- 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 DashArray for the technical indicators.
finalinherited
-
dataSource
→ List<
T> ? -
Property to provide data for the technical indicators without any series.
finalinherited
- dPeriod → num
-
Value of dperiod in Stochastic Indicator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
highValueMapper
→ ChartIndexedValueMapper<
num> ? -
Value mapper to map the high values with technical indicators.
finalinherited
- 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
- kPeriod → num
-
Value of Kperiod in Stochastic Indicator.
final
- 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
- lowerLineColor → Color
-
Color of the lowerLine for Stochastic Indicator.
final
- lowerLineWidth → double
-
Width of lowerline for Stochastic Indicator.
final
-
lowValueMapper
→ ChartIndexedValueMapper<
num> ? -
Value mapper to map the low values with technical indicators.
finalinherited
- name → String?
-
Property to provide name for the technical indicators.
finalinherited
-
openValueMapper
→ ChartIndexedValueMapper<
num> ? -
Value mapper to map the open values with technical indicators.
finalinherited
- overbought → double
-
Overbought value for stochastic indicator
final
- oversold → double
-
Oversold value for Stochastic Indicator.
final
- period → int
-
Period determines the start point for the rendering of technical indicators.
finalinherited
- periodLineColor → Color
-
Color of the periodLine for Stochastic Indicator.
final
- periodLineWidth → double
-
Width of the periodLIne for Stochastic Indicator.
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
- showZones → bool
-
ShowZones boolean value for Stochastic 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
- upperLineColor → Color
-
Color of the upperLine for Stochastic Indicator.
final
- upperLineWidth → double
-
Width of the upperLine for Stochastic Indicator.
final
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited