HMAIndicator class
Hull Moving Average — WMA(2*WMA(n/2) − WMA(n), sqrt(n)). Extremely low lag while remaining smooth — ideal for trend-following.
Constructors
- HMAIndicator({int period = 20, Color color = const Color(0xFF26C6DA), double strokeWidth = 1.8})
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