TRIX

All functions · nseries package

TRIX

func (s Series) TRIX(n int) Series

TRIX calculates the TRIX indicator but using the more recent approach of percentage gains of E3(t) compared with E3(t-1), rather than the older approach that used the log of the price.

The output is a percentage, via DeltaPercent. Bar 0 is 0; bars 1 to n-2 are the raw one-bar percentage change of the input, since the triple smoothing passes it through; the result is clean from bar 3n-2.

TRIXTS

func (s Series) TRIXTS(n int) Series

TRIXTS calculates the TRIX indicator using the same formula as TradeStation.

The output is 10000 times the one-bar change of the log of the triple-smoothed series, about 100 times TRIX. Bar 0 is 0, and the raw scaled log change follows while the averages pass the input through; the result is clean from bar 3n-2.