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.

Try it:

Setter for the smoothing type.

Params:

Name Type Default Description
value anychart.enums.MovingAverageType | string
'ema'
Indicator smoothing type.

Returns:

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

Try it:

period

Getter for the period.

Returns:

number - Indicator period.

Try it:

Setter for the period.

Params:

Name Type Default Description
period number
15
Indicator period to set.

Returns:

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

Try it:

signalMaType

Getter for the signal smoothing type.

Returns:

string anychart.enums.MovingAverageType - Indicator signal smoothing type.

Try it:

Setter for the signal smoothing type.

Params:

Name Type Default Description
value string | anychart.enums.MovingAverageType
'ema'
Indicator signal smoothing type.

Returns:

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

Try it:

signalPeriod

Getter for the signal period.

Returns:

number - Signal period.

Try it:

Setter for the signal period.

Params:

Name Type Default Description
period number
9
Indicator signal period to set.

Returns:

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

Try it:

signalSeries

Getter for the indicator signal series instance.

Try it:

Setter for the indicator signal series type.

Params:

Name Type Description
type anychart.enums.StockSeriesType | string Type of the indicator signal series.

Returns:

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

Try it:

trixSeries

Getter for the indicator TRIX series instance.

Try it:

Setter for the indicator TRIX series type.

Params:

Name Type Description
type anychart.enums.StockSeriesType | string Type of the indicator TRIX series.

Returns:

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

Try it: