OPEN-SOURCE SCRIPT
TMA Volatility Bands

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
The central TMA provides a smooth representation of the underlying price trend and reduces short-term market noise.
Three band levels are calculated above and below the TMA. The bands automatically adapt to changing price volatility, creating a dynamic market range.
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.
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.
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
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.
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
- TMA Period controls the smoothing and responsiveness of the central TMA.
- Band Deviation controls the distance of the primary volatility bands from the TMA.
- Price Source allows the calculation to use the selected price source.
- 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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.