RSIIndicator class
RSI RSI = SUM(MAX(CLOSE - REF(CLOSE,1),0),N) / SUM(ABS(CLOSE - REF(CLOSE,1)),N) × 100
- Inheritance
-
- Object
- IndicatorTemplate<
MACDEntity, RSIStyle> - SecondaryIndicator<
MACDEntity, RSIStyle> - RSIIndicator
Constructors
- RSIIndicator({RSIStyle indicatorStyle = const RSIStyle()})
Properties
-
calcParams
→ List<
int> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorStyle → RSIStyle
-
finalinherited
- name → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortName → String
-
finalinherited
Methods
-
calc(
List< KLineEntity> dataList) → void -
override
-
drawChart(
MACDEntity lastPoint, MACDEntity curPoint, double lastX, double curX, GetYFunction getY, Canvas canvas, KChartColors chartColors) → void -
override
-
drawFigure(
MACDEntity entity, int precision, KChartColors chartColors) → TextSpan? -
override
-
drawVerticalText(
{required Canvas canvas, required TextStyle style, required double maxValue, required double minValue, required int fixedLength, required Rect chartRect}) → void -
override
-
formatNumber(
double value, int precision) → String -
inherited
-
getMaxMinValue(
KLineEntity entity, double minV, double maxV) → (double, double) -
record.$1 : min value
record.$2: max value
override
-
getTextStyle(
Color? color) → TextStyle -
text format
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