Tripple Exponentially Smoothed Moving Average
systemic:core-trixIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Window | Whole number | The EMA window, in bars, used at each of the three smoothing stages. |
| Price | Number series | The price series that TRIX is calculated from. |
Outputs
| Name | Type | Description |
|---|---|---|
| TRIX | Number series | The TRIX line: the percentage change, from one bar to the next, of a triple-smoothed EMA of the price. |
Cost
0.206 + 0.00573Β·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Problem TRIX Was Built to Solve
In the early 1980s, traders who used moving average crossover systems had a problem: whipsaws.
Picture this: price crosses above your moving average, so you buy. The next day it dips below, so you sell at a small loss. Then it crosses back above and you buy again. The cycle repeats and the small losses add up to a large drawdown, while the market goes nowhere.
Jack Hutson, writing in Technical Analysis of Stocks & Commodities magazine, asked a simple question: What if we could filter out all the noise and only react to real trend changes?
His answer was aggressive: smooth the data not once, not twice, but three times. Then measure whether even this ultra-smooth line is rising or falling.
The Intuition: What Triple Smoothing Actually Does
Think of price data as a signal contaminated by noise at different frequencies:
flowchart TD
subgraph Noise["Price Contains Multiple Cycles"]
N1["π Daily noise (random walk)"]
N2["π Weekly swings (mean reversion)"]
N3["π Monthly trends (momentum)"]
N4["π Major trends (what we want)"]
end
subgraph Filter1["First EMA"]
F1["Removes daily noise β"]
end
subgraph Filter2["Second EMA"]
F2["Removes weekly swings β"]
end
subgraph Filter3["Third EMA"]
F3["Removes monthly oscillations β"]
end
subgraph Result["What Remains"]
R["Only major trend direction"]
end
Noise --> Filter1 --> Filter2 --> Filter3 --> Result
Each smoothing pass works like a low-pass filter in audio: it removes the faster cycles. After the third pass, only the underlying trend is left.
The key point: TRIX does not output this very smooth line. It outputs the rate of change of that line, because the level does not matter. What matters is whether the smoothed line is rising or falling, and how fast.
When TRIX is positive, the triple-smoothed average is rising. When it crosses zero, the smoothed trend has changed direction.
Why Not Just Use a Longer Moving Average?
If you want smoothness, why not use one 100-bar EMA instead of smoothing a 15-bar EMA three times?
The answer is lag behavior.
A very long single EMA responds slowly to everything, including the real trend changes you want to catch. Triple smoothing behaves differently: it ignores noise, but it follows sustained moves faster than a single EMA of the same smoothness.
flowchart LR
subgraph LongEMA["Long Single EMA (e.g., 100-bar)"]
L1["Smooth β"]
L2["Slow to react to real trends β"]
L3["Uniform lag on all movements"]
end
subgraph TripleEMA["Triple EMA (e.g., 15Γ3)"]
T1["Equally smooth β"]
T2["Faster response to sustained moves β"]
T3["Variable lag: ignores noise, follows trends"]
end
Hutson's insight was that not all lag is equal. Triple smoothing creates selective lag: a long delay for noise, a short delay for real trend changes.
Reading TRIX: The Zero Line is Everything
Forget overbought/oversold levels. TRIX isn't RSI. The zero line is what matters:
| TRIX Position | Meaning |
|---|---|
| Above zero, rising | Strong uptrend, momentum increasing |
| Above zero, falling | Uptrend intact but weakening |
| Crossing down through zero | Major trend change: bullish β bearish |
| Below zero, falling | Strong downtrend, momentum increasing |
| Below zero, rising | Downtrend intact but weakening |
| Crossing up through zero | Major trend change: bearish β bullish |
The strength of TRIX: A zero cross is more likely to be a real change than noise.
When TRIX Shines (And When It Doesn't)
TRIX Excels At:
1. Position Trading / Swing Trading If you hold positions for weeks or months, TRIX helps you stay in trends longer without being shaken out by normal volatility.
2. Trend Filtering Use TRIX as a "regime detector": only take long trades when weekly TRIX > 0, only short when < 0. This keeps you aligned with the major trend.
3. Divergence Detection Because TRIX is so smooth, divergences between price and TRIX are meaningful. If price makes new highs but TRIX doesn't, the underlying trend momentum is genuinely weakening.
4. Multi-Asset Comparison TRIX is a percentage, so you can compare momentum across assets with different price levels. A TRIX of 0.3 means the same thing for a $10 stock and a $1000 stock.
TRIX Struggles With:
1. Day Trading / Scalping The lag is too long. When TRIX confirms a move, the move is often already over for a day trader.
2. Mean-Reverting Markets In choppy, range-bound markets, TRIX crosses zero late, often just before the range reverses again.
3. Fast V-Shaped Reversals TRIX misses the bottom of a V-shaped reversal. When it confirms the new uptrend, much of the move is over.
Creative Applications
1. The "Major Trend Bias" System
Set your trading bias based on weekly TRIX:
- Weekly TRIX > 0 β Only look for long entries on daily bars
- Weekly TRIX < 0 β Only look for short entries on daily bars
This simple filter removes many trades that go against the major trend.
2. Volatility Regime Detection
Apply TRIX to the VIX (or any volatility measure):
- TRIX of VIX crossing above zero β Volatility regime increasing, reduce position sizes
- TRIX of VIX crossing below zero β Volatility regime decreasing, normal position sizes
3. The "Confirmation Delay" Strategy
When you see a potential entry on faster indicators (RSI, MACD), wait for TRIX to confirm before entering with full size. Enter 1/3 position immediately, add remaining 2/3 when TRIX confirms.
4. Sector Rotation
Calculate TRIX for multiple sector ETFs. Overweight sectors where TRIX is positive and rising; underweight where it's negative and falling.
Configuration
This module has one setting:
| Setting | Typical value | Effect |
|---|---|---|
| Window | 15 | The EMA window, in bars, used at each of the three smoothing stages |
Window Selection Guide
| Your Goal | Window | Character |
|---|---|---|
| More signals, accept more noise | 9-12 | Swing trading on daily charts |
| Balanced (Hutson's original) | 14-15 | Position trading |
| Maximum smoothness, few signals | 18-25 | Long-term trend following |
Warm-up note: The first bars that have a price are empty. For window=15, that is 43 bars. Empty bars (weekend, holiday) do not count.
Missing Data
An empty input bar (weekend, holiday, missing price) gives an empty output bar:
- Empty bars are skipped. The three EMA stages and the final percentage change use only the bars that have a price, so Monday follows Friday directly.
- Warm-up: the first bars that have a price are empty. No partial value is returned.
- A fully empty input returns a fully empty output of the same length.
Building a Complete System
This module outputs only the TRIX line. To add a Signal Line (for crossover signals), connect the output to an EMA module:
flowchart LR
subgraph This["This Module"]
T["TRIX Line"]
end
subgraph Add["Connect EMA Module"]
S["9-bar EMA of TRIX"]
end
subgraph Use["Trading Signals"]
C1["TRIX crosses above EMA β Bullish"]
C2["TRIX crosses below EMA β Bearish"]
end
This --> Add --> Use
Combining with Other Modules
| Combination | Strategy |
|---|---|
| TRIX + RSI | Enter RSI signals only when TRIX confirms trend direction |
| TRIX + ATR | Size positions inversely to ATR when TRIX gives entry signals |
| TRIX + Volume | Require volume confirmation on TRIX zero-line crosses |
| TRIX (weekly) + MACD (daily) | Weekly TRIX for bias, daily MACD for timing |
On Comparisons to Other Indicators
TRIX solves one specific problem (whipsaws in trend following) through heavy smoothing. It is not "better" than MACD or RSI. It is different. If you trade major trends and dislike false signals, TRIX is worth exploring. If you trade short-term reversals, TRIX will be too slow.
Choose your tools based on your trading style.
Historical Note
Jack Hutson introduced TRIX in 1983. Moving average systems of that time gave too many false signals in choppy markets. Triple EMAs are simple to compute. Hutson's contribution was the idea that heavy smoothing followed by a rate of change separates trend from noise better than other methods of the time.
Four decades later, TRIX is still useful because the problem it solves, telling real trends from noise, has not changed.
Further Reading
- Investopedia: TRIX Indicator
- TrendSpider: TRIX Indicator Explained
- Triple Exponential Moving Average
Indicator Assessment
The chart below places TRIX by complexity (how easy it is to understand and use) and reliability (how consistent its signals are across market conditions). Higher points are more reliable. Points further left are less complex.
quadrantChart
title TRIX Indicator Assessment
x-axis Low Complexity --> High Complexity
y-axis Low Reliability --> High Reliability
quadrant-1 Complex & Reliable
quadrant-2 Simple & Reliable
quadrant-3 Simple & Unreliable
quadrant-4 Complex & Unreliable
Stocks: [0.45, 0.70]
Crypto: [0.45, 0.60]
Assessment Breakdown
| Dimension | Stocks | Crypto | Notes |
|---|---|---|---|
| Popularity | 5/10 | 5/10 | Moderately known but overshadowed by MACD; niche following among trend-followers |
| Reliability | 7/10 | 6/10 | Excellent for major trends due to triple smoothing; struggles in sideways markets; crypto's volatility causes more false signals |
| Complexity | 4.5/10 | 4.5/10 | Concept is intuitive (smooth three times, measure rate of change) |
| Versatility | 5.5/10 | 5.5/10 | Best for position trading and weekly charts; limited utility for short-term trading due to lag |
| Recent Interest | 4.5/10 | 5/10 | Steady but not growing in traditional markets; slight uptick in crypto for noise filtering |