震盪指標 MomentumTrendZero Line 在 Builder 中可用

TRIX

TRIX is the rate of change of an exponential average that has been applied three times. The triple smoothing removes most short-term movement before momentum is measured, so the line crosses zero rarely — which is the whole point of using it instead of a faster oscillator.

Default period
14
Signal level
Zero
Smoothing
EMA × 3
Zero — the trend turnTRIX(14) — rate of change of a triple-smoothed EMA

示意性 — 合成資料,非即時報價。

What TRIX tells you

TRIX answers whether a heavily smoothed version of price is still speeding up. An EMA is applied to price, then to that result, then again — by the third pass almost every short swing has been averaged away. TRIX then measures how fast what remains is changing. Above zero the smoothed trend is rising; below zero it is falling. Because the input is so smooth, the sign changes only a handful of times in a long stretch of chart.

  • Above zero: the triple-smoothed average is climbing
  • Crossing zero: the smoothed trend has turned
  • The value's magnitude is instrument-dependent — only the sign and the shape transfer
  1. 1 Apply an EMA to the closing price
  2. 2 Apply the same EMA twice more to its own output
  3. 3 Measure the bar-to-bar rate of change of the result
顯示公式與計算詳情

TRIX is built by smoothing, three times over, and then asking how fast the result is moving:

  1. E1 = EMA(close, n)
  2. E2 = EMA(E1, n)
  3. E3 = EMA(E2, n)
  4. TRIX = (E3 − E3[1]) / E3[1]

The first three steps are the indicator’s whole idea. A single EMA still follows most of the swings in price; a second pass removes a good deal of what is left; by the third almost nothing but sustained direction survives. Only then is momentum measured, which is why TRIX responds to trend changes and largely ignores the movement around them.

In MQL5 the call is iTriX(symbol, period, applied_price). There is one buffer and no signal line — if a strategy refers to “TRIX crossing its signal”, it was written for a platform whose version draws a second, separately smoothed line that MetaTrader’s does not include.

Two things follow from the construction. First, the lag compounds: TRIX(14) is far slower than an EMA(14), because the period is applied three times in series. That is a deliberate trade and the reason the indicator normally lives on H4 and daily charts. Second, the scale is not portable — TRIX is a rate of change on a smoothed price, so its magnitude carries the instrument’s units and the timeframe’s. Zero is the only level that means the same thing on every chart, and it is the only one the Builder’s template uses.

The practical consequence is that TRIX signals are rare. Over a year of hourly data a zero cross might fire a couple of dozen times where a MACD crossover fires hundreds. If that seems too quiet, the honest response is a shorter period or a different indicator — not extra conditions bolted on to manufacture entries in between. The reason to reach for TRIX in the first place is that it stays silent through the chop where a faster oscillator does most of its losing.

訊號

TRIX 提供的可回測訊號 — 及每個訊號適合的市場狀態。

Zero-Line Cross

Builder 可實現
條件
TRIX changes sign
最佳市場狀態
Trending
典型用法
Enter a trend change that has survived three rounds of smoothing

Slope While Above Zero

Builder 可實現
條件
TRIX is above zero and rising against its own earlier value
最佳市場狀態
Trending
典型用法
Stay with a trend that is still accelerating

Failed Cross

Builder 可實現
條件
TRIX approaches zero and turns back without crossing
最佳市場狀態
Trend continuation
典型用法
Read a pullback that did not become a reversal

Divergence from Price

進階邏輯
條件
Price makes a new extreme, TRIX does not
最佳市場狀態
Trend exhaustion
典型用法
A discretionary warning that the smoothed trend is flattening

MT5 實作

MetaTrader 5 實際計算與繪製的內容——本頁每條規則的依據。

緩衝區

索引 緩衝區 MT5 中的繪製方式 存放內容
0 MAIN_LINE Line The rate of change of the triple-smoothed EMA. One buffer, drawn as a line around zero. MT5's TRIX has no signal line — a second line over a TRIX chart is a separate indicator someone added.

平台說明

最佳適用場景 / 謹慎使用

沒有任何指標具有普適優勢。以下是 TRIX 發揮作用的場景 — 以及可能誤導的場景。

最佳適用場景

  • Higher timeframes, where its slowness costs less
  • Trending instruments held for days rather than hours
  • As the entry trigger with a longer average deciding direction
  • Situations where fewer, later signals are preferable to more, earlier ones

謹慎使用

  • Ranging markets — a late signal in a range is the worst of both
  • Short timeframes, where the lag can exceed the move
  • Any fixed threshold on the value
  • Expecting it to call tops and bottoms; it confirms, it does not predict

構建 TRIX 策略

將訊號接入進場和出場規則,然後匯出可編譯的 MT5 EA — 無需撰寫程式碼。

  1. TRIX read at the current bar
  2. A Constant of 0 to cross against
  3. TRIX crosses above zero → the long trigger
  4. EMA(200) and current price into a Compare — price above it allows longs
  5. Both true → Open Buy · SL 60 / TP 180
  6. Stop then trails to the most recent confirmed fractal

將 TRIX 與其他指標組合

單一指標很少獨立有效。這些組合彌補了 TRIX 的盲點。

TRIX + Moving Average

  1. Price above the EMA(200)
  2. TRIX crosses above zero
  3. Buy
原因
TRIX says when the smoothed trend turned but not whether that turn is with or against the larger move; a long average supplies the side, so a zero cross is only taken in one direction at a time
最佳市場狀態
Trending
構建此策略 →

TRIX + ADX

  1. ADX above 25
  2. TRIX crosses above zero
  3. Buy
原因
A late signal is most expensive in a range, which is exactly where a trend-strength gauge earns its place — require ADX to confirm a trend before acting on the cross
最佳市場狀態
Trending

No single-flow template pairs TRIX with ADX. Start from TRIX Zero Cross + EMA200 and add an ADX node with a Compare at 25, the same filter the Parabolic SAR template uses.

開啟 Builder →

TRIX + MACD

  1. MACD's MAIN above SIGNAL
  2. TRIX above zero
  3. Buy
原因
Read two momentum constructions with opposite temperaments — MACD turns early and often, TRIX turns late and rarely, so requiring both is a way of asking for an early signal that has since been confirmed
最佳市場狀態
Trending

No single-flow template pairs TRIX with MACD. Start from TRIX Zero Cross + EMA200 and add two MACD nodes (Main and Signal) with a Compare between them.

開啟 Builder →

參數

在您自己的貨幣對和時間框架上驗證的起始值 — 非保證設置。

參數 預設值 建議測試範圍 功能說明
Period 14 9–30 The length used for all three averages. Because the smoothing compounds, raising this has a much stronger effect than on a single EMA — a period of 20 here is far slower than a 20-period EMA. Shorter periods restore some responsiveness at the cost of the noise rejection that is the reason to use TRIX at all.
Applied price PRICE_CLOSE Close, Open, High, Low, Median, Typical, Weighted Which series feeds the first average. It really is an argument to iTriX and the Builder passes it through as an EA input. Median or Typical make the input slightly less jumpy before the smoothing even starts.
Shift 0 0–30 Which bar back the node reads the buffer from. Two TRIX nodes at different shifts is how a rule expresses 'still rising', since the indicator publishes no signal line to compare against.

初始預設

Faster 9 More zero crosses; some of the noise comes back
Standard 14 MT5's default, and the template's
Regime 25 Very few crosses, each describing a large move

市場示例

TRIX 有效的場景、失效的場景,以及篩選器如何改變結果。

有效

A turn that survives the smoothing

TRIX crosses zero while price is already above the EMA(200). The move that follows lasts long enough for the fractal trail to ratchet the stop up several times.

失效

A cross against the larger trend

TRIX turns up but price is below the EMA(200). Taken on its own the signal is a counter-trend entry into a falling market — the filter is what stops it.

已篩選

The quiet stretch produces nothing

Weeks of range-bound chop pass without a single zero cross. A faster oscillator would have signalled repeatedly here; TRIX's silence is the intended behaviour.

FAQ

What does the 'triple' in TRIX mean?
An exponential moving average is applied to the closing price, then the same EMA is applied to that result, and then once more to that. TRIX is the rate of change of the third output. Each pass removes more short-term movement, so by the third the line responds only to sustained changes in direction.
Is TRIX just a slower MACD?
They are related but not the same. MACD is the difference between two averages of different lengths; TRIX is the rate of change of one average smoothed three times. MACD reacts to the gap between fast and slow opening up, TRIX to the smoothed trend itself accelerating. In practice MACD turns earlier and more often, which is why the two are sometimes used together — an early signal that TRIX later confirms.
Why does my TRIX barely move?
Because it is working as designed. Triple smoothing at period 14 removes most of what a shorter oscillator responds to, and the resulting values are small in absolute terms — often four or five decimal places on a currency pair. The chart auto-scales so the shape is visible; the number itself is not meant to be read against a fixed level.
What period should I use?
14 is MT5's default and the sensible starting point. Remember that the smoothing compounds, so raising the period slows the indicator much faster than the same change would on a single EMA — 25 is already a regime-level setting. Whatever you choose, re-validate it on your pair and timeframe rather than carrying a number across from another market.
Can I build a TRIX EA without coding?
Yes. The TRIX Zero Cross + EMA200 template crosses TRIX against a Constant of 0 for the trigger, uses an EMA(200) compared against price to decide which side is allowed, and trails the stop to the most recent confirmed fractal. The period, the applied price, the EMA length and the fractal lookback are all EA inputs.
How should I validate settings before going live?
Backtest on quality tick data, then run on a demo account before risking money. Because TRIX signals are rare, a backtest over a short window may contain only a handful of trades — that is far too few to conclude anything, so use a long period and check how many entries actually occurred before reading the profit figure. Hold back data the search never saw.