OPEN-SOURCE SCRIPT
EMA vs TMA Regime Filter

EMA vs TMA Regime Filter
This indicator is built as a visual study tool to compare the behavior of the Exponential Moving Average (EMA) and the Triangular Moving Average (TMA).
The EMA applies an exponential weighting to price data, giving stronger importance to the most recent values. This makes it a faster, more responsive line that reflects short-term momentum. The TMA, by contrast, applies a double-smoothing process (or in the “True TMA” option, a split SMA sequence), which produces a much slower curve. The TMA emphasizes balance over reactivity, often used for filtering noise and observing longer-term structure.
When both are plotted on the same chart, their differences become clear. The shaded region between them highlights times when short-term price dynamics diverge from longer-term smoothing. This is where the idea of “regime” comes in — not as a trading signal, but as a descriptive way of seeing whether market action is currently dominated by speed or by stability.
Users can customize:
The goal is not to create a system, but to help traders experiment, observe, and learn how different smoothing techniques can emphasize different aspects of price. By switching between the legacy and true TMA, or adjusting lengths, users can study how each approach interprets the same data differently.
This indicator is built as a visual study tool to compare the behavior of the Exponential Moving Average (EMA) and the Triangular Moving Average (TMA).
The EMA applies an exponential weighting to price data, giving stronger importance to the most recent values. This makes it a faster, more responsive line that reflects short-term momentum. The TMA, by contrast, applies a double-smoothing process (or in the “True TMA” option, a split SMA sequence), which produces a much slower curve. The TMA emphasizes balance over reactivity, often used for filtering noise and observing longer-term structure.
When both are plotted on the same chart, their differences become clear. The shaded region between them highlights times when short-term price dynamics diverge from longer-term smoothing. This is where the idea of “regime” comes in — not as a trading signal, but as a descriptive way of seeing whether market action is currently dominated by speed or by stability.
Users can customize:
- Line styles, widths, and colors.
- Cloud transparency for visual clarity.
- Whether to color bars based on relative position (optional, purely visual).
The goal is not to create a system, but to help traders experiment, observe, and learn how different smoothing techniques can emphasize different aspects of price. By switching between the legacy and true TMA, or adjusting lengths, users can study how each approach interprets the same data differently.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。