CciIndicator class
Commodity channel index.
Constructors
- CciIndicator({int period = 14, Color? color})
-
Creates a CCI over
periodcandles.
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 setterinherited
- 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 setteroverride
- 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
- name → String
-
Short name of the indicator type, such as
ATR.no setteroverride - period → int
-
How many candles the index covers.
final
- 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
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.
inherited
-
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
linewhen 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
indexonline, 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