AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.stock.indicators.TRIX Improve this Doc

TRIX indicator class.

Methods Overview

Series
signalSeries()Indicator signal series instance.
trixSeries()Indicator TRIX series instance.
Specific Indicators Settings
maType()Indicator smoothing type.
period()Indicator period settings.
signalMaType()Indicator signal smoothing type.
signalPeriod()Indicator signal period settings.

Methods Description

maType

Getter for the smoothing type.

Returns:

string | anychart.enums.MovingAverageType - Indicator smoothing type.
Setter for the smoothing type.

Params:

NameTypeDefaultDescription
typeanychart.enums.MovingAverageType | string
'ema'
Indicator smoothing type.

Returns:

anychart.core.stock.indicators.TRIX - Self instance for method chaining.

period

Getter for the period.

Returns:

number - Indicator period.
Setter for the period.

Params:

NameTypeDefaultDescription
periodnumber
15
Indicator period to set.

Returns:

anychart.core.stock.indicators.TRIX - Self instance for method chaining.

signalMaType

Getter for the signal smoothing type.

Returns:

string | anychart.enums.MovingAverageType - Indicator signal smoothing type.
Setter for the signal smoothing type.

Params:

NameTypeDefaultDescription
typestring | anychart.enums.MovingAverageType
'ema'
Indicator signal smoothing type.

Returns:

anychart.core.stock.indicators.TRIX - Self instance for method chaining.

signalPeriod

Getter for the signal period.

Returns:

number - Signal period.
Setter for the signal period.

Params:

NameTypeDefaultDescription
periodnumber
9
Indicator signal period to set.

Returns:

anychart.core.stock.indicators.TRIX - Self instance for method chaining.

signalSeries

Getter for the indicator signal series instance.
Setter for the indicator signal series type.

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator signal series.

Returns:

anychart.core.stock.indicators.TRIX - Self instance for method chaining.

trixSeries

Getter for the indicator TRIX series instance.
Setter for the indicator TRIX series type.

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator TRIX series.

Returns:

anychart.core.stock.indicators.TRIX - Self instance for method chaining.