StochasticIndicator class

Stochastic Oscillator indicator (%K and %D lines). Renders as a sub-pane oscillator with 80 (Overbought) and 20 (Oversold) threshold lines.

Inheritance

Constructors

StochasticIndicator({int kPeriod = 14, int kSmooth = 3, int dPeriod = 3, Color kColor = const Color(0xFF2962FF), Color dColor = const Color(0xFFFF6D00), double strokeWidth = 1.4})

Properties

dColor → Color
final
dPeriod → int
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setteroverride
isOverlay → bool
no setteroverride
kColor → Color
final
kPeriod → int
final
kSmooth → int
final
name → String
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth → double
final

Methods

calculate(List<Candle> candles) → IndicatorResult
Pure computation function that produces an IndicatorResult from candles.
override
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