Triangular Moving Average (TMA) bands
Jul 30, 2019

The Triangular Moving Average (TMA) bands indicator provides a volatility-based envelope around a smoothed moving average to identify potential reversal points and trend exhaustion in the market.
Usage
The Usage section describes how the script can be used, particularly for identifying mean reversion opportunities. Traders typically look for price interaction with the outer bands to determine entry and exit points.
- Mean Reversion: When the price hits the lower band, it is often interpreted as an oversold condition and a possible buy signal. Conversely, when the price hits the upper band, it suggests an overbought condition and a potential sell signal.
- Take Profit Levels: The middle line (the TMA itself) serves as the first Take Profit (TP1) target. The opposite band serves as the secondary Take Profit (TP2) target.
- Trade Management: A common methodology involves moving the Stop Loss to breakeven once TP1 is reached. If the price continues to TP2, the stop loss can be trailed to the TP1 level to lock in gains.
Details
The script is constructed using a Triangular Moving Average (TMA) as the baseline, which is essentially a doubly smoothed moving average that places more weight on the middle portion of the data series. This results in a much smoother line compared to a Simple Moving Average (SMA).
To create the bands, the indicator incorporates the Average True Range (ATR) to account for market volatility. The upper and lower bands are calculated by adding and subtracting a multiplied ATR value from the TMA. This ensures the bands expand and contract based on recent price action, providing a dynamic boundary for price movement.
Settings
- TMA number of bars back: Sets the lookback period for the Triangular Moving Average calculation. Higher values result in a smoother, slower-reacting baseline.
- ATR number of bars back: Determines the period used to calculate the Average True Range, affecting how the bands react to volatility.
- ATR Multiplier: Adjusts the width of the bands. Increasing this value moves the bands further from the midline, while decreasing it makes the envelope tighter.
- Price: Allows the user to select the source data for the calculation (e.g., Close, Open, High, Low).
FAQ
How do I use the TMA Bands for scalping?
For scalping or intraday trades, users often look for price touches on the outer bands on lower timeframes, using the midline as a quick exit or a place to adjust risk.
Can I change the sensitivity of the bands?
Yes, by adjusting the ATR Multiplier, you can make the bands wider (less sensitive) or narrower (more sensitive) to suit different assets and market conditions.
How can I access the TMA bands?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

