OPEN-SOURCE SCRIPT

TMA Volatility Bands

492
TMA Volatility Bands

TMA Volatility Bands is a trend and volatility indicator built around a smoothed Triangular Moving Average (TMA) and dynamically calculated deviation bands.

The indicator is designed to show the current market trend, volatility range, and potential reversal areas through a structured set of expanding TMA bands.

The TMA acts as the central trend reference, while the surrounding bands expand according to the current deviation of price from the TMA. This creates three volatility levels on both sides of the TMA, helping visualize how far price has moved from its smoothed average.

Main Settings

  • TMA Trend Line


The central TMA provides a smooth representation of the underlying price trend and reduces short-term market noise.

  • Dynamic Volatility Bands


Three band levels are calculated above and below the TMA. The bands automatically adapt to changing price volatility, creating a dynamic market range.

  • Multi-Level Band Structure


The first band represents the primary volatility boundary, while the middle and outer bands extend progressively farther from the TMA. This makes it easier to identify stronger extensions in price movement.

  • Trend Strength Gradient


The TMA changes color according to the direction and strength of its movement relative to ATR-based volatility. Stronger TMA movement produces a stronger color transition, while weaker movement moves toward a neutral color.

  • Buy and Sell Signals


The indicator includes automatic reversal-style signals based on price extending beyond the primary volatility band and then forming an opposite-direction candle.

A Buy signal appears when the previous candle moves below the lower primary band and the current candle closes bullish.

A Sell signal appears when the previous candle moves above the upper primary band and the current candle closes bearish.

Adjustable Settings

  1. TMA Period controls the smoothing and responsiveness of the central TMA.
  2. Band Deviation controls the distance of the primary volatility bands from the TMA.
  3. Price Source allows the calculation to use the selected price source.
  4. Trend Threshold controls the sensitivity of the TMA trend-strength gradient.


TMA Volatility Bands is designed to provide a clean visual framework for analyzing trend direction, volatility expansion, price extensions, and potential reversal areas.

The signals should be used as part of a broader trading strategy and confirmed with price action, market structure, or other analysis tools.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.