TRIX
The TRIX is the percentage change of a triple exponential moving average of the price. Triple smoothing removes the short-lived price noise, so the line only turns when the underlying move survives three averages; what remains is the momentum of the smoothed price, centred on zero.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries: allows or denies opening a position. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers exits: allows or denies closing a position. |
The TRIX produces conditions, not order prices: as an entry rule it is ANDed with the entry point and the other entry rules, as an exit rule it is ORed with the other exit rules. See Indicators for the slot semantics.
Logic rules
The TRIX offers the standard oscillator rule set:
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| TRIX rises | TRIX rose on the previous bar | TRIX fell on the previous bar |
| TRIX falls | TRIX fell on the previous bar | TRIX rose on the previous bar |
| TRIX is higher than the Level line | TRIX is above the Level | TRIX is below −Level |
| TRIX is lower than the Level line | TRIX is below the Level | TRIX is above −Level |
| TRIX crosses the Level line upward | TRIX crossed above the Level from below | TRIX crossed below −Level from above |
| TRIX crosses the Level line downward | TRIX crossed below the Level from above | TRIX crossed above −Level from below |
| TRIX changes its direction upward | TRIX formed a valley | TRIX formed a peak |
| TRIX changes its direction downward | TRIX formed a peak | TRIX formed a valley |
The long threshold is the Level parameter; the short threshold is its mirror around zero, −Level. With the default Level of 0 the rules compare with the zero line, which is the natural boundary for a percentage change: "TRIX is higher than the Level line" reads "the smoothed price is rising".
Rises and falls are states; the two direction changes and the two crossings are events, which makes them single-bar triggers for the Generator.
Parameters
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| Apply to | select | Close | Open, High, Low, Close, Median, Typical, Weighted | Price series the TRIX is calculated from |
| Period | number | 14 | 2 to 1000 | Period of each of the three exponential averages |
| Level | number | 0 | −100 to 100 | Long threshold; the short threshold is −Level |
Calculation
TRIX = 100 * (EMA3[bar] − EMA3[bar − 1]) / EMA3[bar − 1], where EMA3 is an exponential moving average applied three times in series over the applied price.
- Three exponential averages are chained, so the line is much smoother than a plain moving average and only reacts to a move that survives all three.
- Three EMAs need about
3 · periodbars to settle, so the line starts later than a plain moving average: the engine reports no value before3 · period − 2bars and the export guards the same warm-up.
- The result is drawn as a line in its own pane below the price chart (
separatedChart).
Backtesting
- The rule is evaluated on the previous (closed) bar; the signal applies to the current bar.
- Comparisons use the standard dead zone (
SIGMA = 0.000001). - No MA method: MetaTrader's
iTriXsmooths with exponential averages only, so the parameter is not offered. - The TRIX never changes the entry or exit order price; the level comes from the point indicator.
Related
- TRIX Differential — the difference between a fast and a slow TRIX
- Rate of Change — the same percentage change, over one moving average instead of three
- Moving Average of Oscillator
- Indicators index