T3_MA
Download scriptThis script implements a sophisticated technical analysis tool known as the T3 Moving Average (T3 MA). Unlike standard moving averages, which can often lag behind current market prices, the T3 MA is designed to provide a much smoother trend line while significantly reducing that delay. It achieves this through a complex multi-layered mathematical smoothing process.
Core Logic Overview
The indicator operates by applying several layers of "Exponential Moving Averages" (EMA) to the price data in a sequential chain. Here is how the logic unfolds:
1. Initialization and Weights When you first apply the script, it calculates specific weighting coefficients based on two user-defined inputs:
- Period: The look-back window (how much historical data to consider).
- Coefficient: A factor that determines the "aggressiveness" of the smoothing.
The script uses these inputs to calculate a series of unique constants ($c1$ through $c4$) and weights ($w1, w2$). These values ensure that the final output maintains a specific balance between being "smooth" and "responsive."
2. Data Foundation The logic starts by pulling a standard Simple Moving Average (SMA) from the market price (usually the closing price). This serves as the raw foundation upon which all subsequent smoothing layers are built.
3. The Smoothing Chain (Recursive Processing) Instead of calculating one average and stopping, the script passes the result through six distinct stages of exponential smoothing.
- The result of the first calculation becomes the input for the second.
- The result of the second becomes the input for the third, and so on.
- This "cascading" effect allows the indicator to filter out "noise" (minor price fluctuations) much more effectively than a standard moving average can.
4. The Final Compilation Once the data has passed through all six smoothing layers, the script applies a final mathematical formula using the coefficients calculated at the start. This step blends the results of the various stages together to produce the final T3 MA line seen on your chart.
Summary for the User
In practical terms, this script provides a high-quality trend indicator. Because it uses a multi-layered smoothing approach, it is designed to follow the market trend more closely than a standard moving average, making it easier for traders to identify the primary direction of the market without being distracted by erratic price spikes.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | T 3 _ M A . m q 5 |
/ / | C o p y r i g h t 2 0 1 8 , M e t a Q u o t e s S o f t w a r e C o r p . |
/ / | h t t p s : / / m q l 5 . c o m |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "