← Back to Home
Trading Signal / Indicator
📊

TRIX Indicator

A triple-smoothed momentum oscillator that filters out short-term noise.

Start Automating Free →

Want to automate this strategy? Try auto-Trading free — no credit card required.

TRIX Indicator chart

Overview

What is TRIX Indicator?

TRIX (Triple Exponential Average) is a momentum oscillator developed by Jack Hutson and published in Technical Analysis of Stocks & Commodities magazine in 1983. It calculates the percentage rate of change of a triple-smoothed EMA, making it exceptionally effective at filtering out short-term price cycles that cause false signals in single or double-smoothed oscillators.

Calculation: Apply an EMA of period N to price. Apply a second EMA of period N to the first EMA. Apply a third EMA of period N to the second EMA. TRIX = Percentage change in the triple EMA from the previous period.

The triple smoothing removes noise so effectively that TRIX can be used as a slow, reliable trend indicator or as a faster oscillator depending on the period chosen. A 12-period TRIX behaves as a smooth MACD-like oscillator; a 30-period TRIX provides long-term trend confirmation.

Signals: Zero-line crossovers indicate trend changes (above zero = bullish momentum, below zero = bearish). Divergence between TRIX and price is among the most reliable reversal signals — particularly on higher timeframes. A signal line (9-period SMA of TRIX) is often added to generate crossover signals analogous to MACD's signal line.

TRIX is particularly effective for identifying the trend's strength: a TRIX that is rising steeply indicates strong momentum, while a TRIX that is flat or turning indicates momentum exhaustion.

How It Works in auto-Trading

Automate It

auto-Trading computes TRIX and its signal line with configurable period settings. The strategy builder supports TRIX/signal line crossovers (faster signals), TRIX zero-line crossovers (slower, more reliable trend changes), and divergence detection. TRIX is effective as a standalone signal generator and as a confirmation filter alongside price breakout signals.

Try Free →

Strategy Code

Pick a script below, copy it, and use it on your chart.

Pine Script (TradingView)

This is a TradingView Pine Script example for this indicator. Paste it into the TradingView Pine Editor, add it to your chart, and adjust inputs for your market and timeframe.

//@version=6
strategy("TRIX Indicator", overlay=true)
fastLen = input.int(20, "Fast Length")
slowLen = input.int(50, "Slow Length")
fast = ta.ema(close, fastLen)

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

ThinkScript (thinkorswim)

This is a thinkorswim ThinkScript example for this indicator. Open thinkorswim, create a custom study, paste the script, and apply it to your chart.

input length = 15;
def trix = TRIX(length = length);
def buySignal = trix crosses above 0;
def sellSignal = trix crosses below 0;
AddOrder(OrderType.BUY_AUTO, buySignal, close, 1, Color.GREEN, Color.GREEN, "TRIX Buy");

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

Ready to automate TRIX Indicator?

Join thousands of traders who use auto-Trading to execute this strategy automatically, 24/7.

Get Started Free →

All Strategies & Signals

Continue Learning

Trading Strategies

Trading Signals & Indicators