Skip to content

charton API


charton API / @chart-on/ta / trix

Function: trix() ​

trix(values, length, out?, state?): Float64Array

Defined in: momentum.ts:373

TRIX: the one-bar change of a triple ema (an EMA of an EMA of an EMA, each over length) of the logarithm of the values, times 10000, as the indicator is usually computed. That is close to the triple average's percent change, in hundredths of a percent. Lookback 3 * (length - 1) + 1. NaN for a value at or below 0.

Pass state to keep the three averages (of the logarithms) for trixAt.

Parameters ​

values ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

state? ​

TrixState

Returns ​

Float64Array