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

SlotAvailableRole
Entry PointNo—
Entry RuleYesFilters entries: allows or denies opening a position.
Exit PointNo—
Exit RuleYesTriggers 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:

RuleLong signal is 1 whenShort signal is 1 when
TRIX risesTRIX rose on the previous barTRIX fell on the previous bar
TRIX fallsTRIX fell on the previous barTRIX rose on the previous bar
TRIX is higher than the Level lineTRIX is above the LevelTRIX is below −Level
TRIX is lower than the Level lineTRIX is below the LevelTRIX is above −Level
TRIX crosses the Level line upwardTRIX crossed above the Level from belowTRIX crossed below −Level from above
TRIX crosses the Level line downwardTRIX crossed below the Level from aboveTRIX crossed above −Level from below
TRIX changes its direction upwardTRIX formed a valleyTRIX formed a peak
TRIX changes its direction downwardTRIX formed a peakTRIX 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

ParameterTypeDefaultRangePurpose
Apply toselectCloseOpen, High, Low, Close, Median, Typical, WeightedPrice series the TRIX is calculated from
Periodnumber142 to 1000Period of each of the three exponential averages
Levelnumber0−100 to 100Long 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.

  1. 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.
  1. Three EMAs need about 3 · period bars to settle, so the line starts later than a plain moving average: the engine reports no value before 3 · period − 2 bars and the export guards the same warm-up.
  1. 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 iTriX smooths 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.