TRIX MA

Jul 17, 2014

Static chart image
Signals
Oscillators
Moving Averages

The TRIX MA indicator provides a triple exponentially smoothed oscillator accompanied by a signal line to identify trend momentum and potential price reversals through crossover signals and histogram analysis.

Usage

The Usage of the TRIX MA focuses on the interaction between the TRIX oscillator and its signal line. Traders typically monitor the following:

  • Crossovers: A bullish signal is generated when the TRIX line crosses above the Moving Average line, while a bearish signal occurs when it crosses below. These points are highlighted on the chart with a cross icon.
  • Zero-Line Transitions: The TRIX crossing the zero line indicates a shift in long-term momentum, often used to confirm the broader trend direction.
  • Histogram Analysis: The colored area represents the distance between the TRIX and the signal line. A growing histogram suggests accelerating momentum, while a shrinking histogram indicates potential exhaustion.
  • Signal Line Selection: Users can toggle between an EMA and an SMA for the signal line to adjust the indicator's sensitivity to recent price changes.

Details

The TRIX MA is constructed using a multi-step smoothing process to filter out market noise. The core calculation involves:

  1. Triple EMA (TEMA): The script first calculates a triple-smoothed exponential moving average of the closing price based on the user-defined "TRIX Length."
  2. Rate of Change: The TRIX value is derived from the period-to-period rate of change of the TEMA, scaled by a factor of 10,000 to improve readability.
  3. Signal Line: A secondary moving average (either EMA or SMA) is applied to the TRIX value.
  4. Histogram: The difference between the TRIX and the signal line is plotted as an area. A multiplier setting is available to exaggerate this difference for better visual interpretation on varying scales.

The script includes built-in alerts for both crossovers and crossunders, optimized for bar-close execution. Original code by munkeefonix.

Settings

  • TRIX Length: The lookback period used for the triple exponential smoothing of the price.
  • Use Ema: A toggle that determines whether the signal line is calculated as an Exponential Moving Average (True) or a Simple Moving Average (False).
  • Moving Average: The lookback period for the signal line applied to the TRIX oscillator.
  • Histogram Multiplier: A scaling factor used to increase the visual height of the histogram area relative to the oscillator lines.

FAQ

How do I interpret the histogram colors? The histogram is colored green when the TRIX line is above the signal line (bullish momentum) and red when the TRIX line is below the signal line (bearish momentum).

What is the benefit of the Triple Exponential smoothing? The triple-smoothing process is designed to filter out insignificant price fluctuations, providing a clearer view of the underlying trend while reducing the lag typically associated with traditional moving averages.

How can I access the TRIX MA? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
ninjatraderNinjaTrader
metatrader4MetaTrader 4/5
thinkorswimThinkorswim

Unlock Unlimited Access to the LuxAlgo Library

Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.