SupertrendIndicator class

Supertrend technical indicator using Average True Range (ATR). Computes upper band (resistance in downtrend) and lower band (support in uptrend).

Inheritance

Constructors

SupertrendIndicator({int period = 10, double multiplier = 3.0, Color bullColor = const Color(0xFF00E676), Color bearColor = const Color(0xFFFF5252), double strokeWidth = 2.0})

Properties

bearColor → Color
final
bullColor → Color
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setteroverride
isOverlay → bool
no setteroverride
multiplier → double
final
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