Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Triangular Moving Average - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Triangular moving average - indicator for MetaTrader 5

The Triangular Moving Average is a weighted moving average known for very smooth results. The weights in a triangular moving average add more weight to the center value of the average data. The coefficients are therefore distribution specific. Some examples that clearly show coefficient series:

 Period 1 : 1 Period 2 : 1 1 Period 3 : 1 2 1 Period 4 : 1 2 2 1 Period 5 : 1 2 3 2 1 Period 6 : 1 2 3 3 2 1 Period 7 : 1 2 3 4 3 2 1 Period 8 : 1 2 3 4 4 3 2 1 Period 9 : 1 2 3 4 5 4 3 2 1

etc……

There are many implementations and definitions of triangular moving averages. Some are accurate, some are not (the "inaccurate" ones never realize that odd and even periods cannot have the same average). Some are actually interesting explanations of what is discussed over and over again with the Triangular Moving Average. Accurate methods mainly lack only one thing: they loop over and over again, and over longer periods of time, execution speed becomes critical.

Solving for execution speed while producing accurate results (odd and even cycles don't have the same average value :))

You can use color changes as signals. Note that unlike many that mix center TMA with TMA, this is not a center TMA, and it does not recalculate/redraw.

Triangular moving average - indicator for MetaTrader 5


Attachment download

📎 triangular_moving_average.mq5 (10.48 KB)

Source: MQL5 #23163

Verification code Refresh