SarIndicator class

Parabolic SAR: one dot per candle, flipping side with the trend.

Inheritance

Constructors

SarIndicator({double start = 0.02, double step = 0.02, double maximum = 0.2, Color? color})
Creates a SAR with the usual acceleration settings.

Properties

colors List<Color>?
Colour per line, in the order of lines; null falls back to the theme.
finalinherited
fills List<IndicatorFill>
Areas shaded between two lines, drawn under them.
no setterinherited
fixedRange → (double, double)?
A scale to pin the pane to, rather than fitting it to the values.
no setterinherited
format IndicatorFormat
How values are written out.
no setteroverride
group String
Legend row overlays share; instances with the same group sit on one row.
no setterinherited
guides List<double>
Levels to draw a faint guide line at, such as 30 and 70 for an RSI.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
includeZero bool
Whether the pane's scale must include zero, as a histogram needs.
no setterinherited
label String
Name with its settings, such as ATR(14).
no setteroverride
lines List<IndicatorLine>
The lines this indicator draws.
no setteroverride
maximum double
Ceiling on the acceleration factor.
final
name String
Short name of the indicator type, such as ATR.
no setteroverride
placement IndicatorPlacement
Whether this draws over the candles or in its own pane.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings List<Object?>
The settings that, with the type, make one indicator distinct.
no setteroverride
start double
Acceleration factor a new trend starts at.
final
step double
How much the acceleration factor grows at each new extreme.
final

Methods

colorFor(int line, ChartColors theme, {int ordinal = 0}) Color
Colour of line, preferring what the caller gave over the theme.
inherited
colorForPoint(int line, int index, KLineEntity candle, double value, ChartColors theme) Color?
Colour for a single point, where it differs from the line's colour.
override
compute(List<KLineEntity> candles) IndicatorSeries
Computes one value per candle for each of lines.
override
defaultColor(int line, ChartColors theme, int ordinal) Color
Theme colour for line when the caller has not chosen one.
override
fillColor(IndicatorFill fill, ChartColors theme, {required bool isAbove}) Color
Colour of fill, which may differ with which of its lines is on top.
inherited
markerLabel(int line, int index) String?
Text drawn beside the point at index on line, for a marker series.
inherited
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