Skip to main content
Track TRIX
1 / 15
Library

1984issue C031-6

Constructing TRIX from a cutoff to one shared alpha

TRIX is assembled by turning a chosen high-frequency cutoff into one shared alpha, applying that same exponential pass three times to the logarithm of daily closes, and only then taking a one-day difference. Filter length is converted into that same constant rather than run as a separate average.

  • TRIX is built by applying the same exponential smoothing three times to the logarithm of daily closes and then taking a one-day difference of the thrice-smoothed series.
  • One shared alpha is used on all three exponential passes, so coefficient selection is reduced to a single constant.
  • That constant may be a raw alpha, a filter length converted as K = 2/(N + 1), or a cutoff frequency converted through the archive C and K formulas.
  • A frequency-spectrum plot of past daily closes locates the high-frequency cutoff, and at least 64 past daily observations are described as the practical minimum for that plot.
Entries in this reading3 entries

What TRIX is

TRIX is an oscillator formed by triple exponential smoothing of log prices followed by a one-step difference. The archive builds it by applying the same exponential smoothing three times to the logarithm of daily closes and then taking a one-day difference of the thrice-smoothed series.

The finished oscillator is also described as a smoothed one-day momentum. The construction uses one shared alpha on all three exponential passes so that coefficient selection is reduced to a single constant.

Choose the shortest cycle that should remain

A frequency-spectrum plot of past daily closes is used to locate a high-frequency cutoff. At least 64 past daily observations are described as the practical minimum for that plot.

In the worked spectrum example, a 36.6-day cycle from 512/14 is treated as a starting cutoff, while a 27-day cycle from 512/19 is treated as shorter and filtered out. Cutoff frequency in cycles per year is computed as 130P/(N M). With P = 14, N = 512 and M = 1, the worked value is 3.55.

For daily data the usual cutoff band is given as 1.00 to 10.0 cycles per year, corresponding to removing cycles of 130 days or shorter versus 13 days or shorter. Cutoff frequency is the cycles-per-year threshold that marks which shorter oscillations the filter is meant to remove.

Turn that cutoff into one alpha

The computational routine accepts a raw alpha, a filter length converted as K = 2/(N + 1), or a cutoff frequency converted by C = (1 - cos(N * 0.024166)) / 0.25992 and K = C * (square root of (1 + 2/C) - 1).

Filter length is a lookback-in-days input that is converted into alpha instead of being used as a separate average. Editorial note: that length conversion is only another way to obtain the same shared alpha.

Reuse the same pass three times, then read the difference

Triple exponential smoothing is three successive exponential-average stages that share one alpha. The routine seeds the three recursive states with the logarithm of the first nonzero observation in the chosen input column.

Only after those three passes does the one-day difference turn the thrice-smoothed series into an oscillator reading. The routine stores a one-step change of the third smoothed value scaled by 10000 as the study output.

Judge lag with a moving-average baseline

Relative to a simple linearly weighted moving average, the exponential smoother is presented as having a comparatively short lag. That moving-average baseline is used only to judge how much lag the exponential construction is meant to reduce.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
1 of 15 in the TRIX track
19881-11 pp.Next on TRIXIsolate nested formulas before judging signalsNested trading-range formulas are treated as easy to mistype and are to be debugged before the update loop is written.
All readings on this track · 15 readings
  1. 1984Constructing TRIX from a cutoff to one shared alpha
  2. 1988Isolate nested formulas before judging signals
  3. 1992Constructing TRIX from triple exponential smoothing
  4. 1992Constructing a TRIX oscillator from daily declines
  5. 1992A pre-trade checklist that stays flat until weekly support and TRIX agree
  6. 1992Constructing TRIX as triple-smoothed log-price momentum
  7. 1992Building TRIX crossover and momentum entries on a period grid
  8. 1992TRIX lookback and momentum derivative parameters
  9. 1994Seeding TEMA and DEMA with time-trend regression
  10. 1997Constructing the TRIX oscillator from triple smoothing
  11. 2002Constructing TRIX from triple-smoothing to signal rules
  12. 2002Lock the TRIX construction before reading a zero-line cross
  13. 2003Constructing TRIX from nested exponential averages
  14. 2004Construct TRIX entry, exit, and rest windows as one recipe
  15. 2004TRIX momentum and fundamental overlays for medium-term stock selection
All 15 readings tagged TRIX
Also on TRIX5 readings