SMAIndicator class

Simple Moving Average (SMA) Indicator.

Inheritance

Constructors

SMAIndicator({int period = 20, Color color = const Color(0xFFFFB300), double strokeWidth = 1.5})

Properties

color → Color
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setteroverride
isOverlay → bool
no setteroverride
name → String
no setteroverride
period → int
final
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