Download MetaTrader 5
To add comments, please log in or register
Having troubles understanding the code? Perhaps, you can find an article on that topic!
Automated-Trading 2013.01.21 15:46 


Triangular Moving Average (TMA). The main weight goes for the average part of the price series. In fact, Moving Average is a double smoothed simple Moving Average

Fig.1 The TMA indicator

Fig.1 The TMA indicator

Author: Nikolay Kositsin

catador4255 2013.01.22 20:06  

Hi Nikolay, TMA is not plotting correctly. The line is not smooth as in the MT4 version Matias Romeo programmed.

Although I was able to find one error in your code, it did not fix the plotting problem. The problem I found had to do with the divisor. It is not calculating correctly. It does not have the same logic than the MT4 version of TMA. Because of that the value falls short. If you run both versions next to each other you will see they give different values for the divisor. Fixing the divisor was not enough to plot correctly. Maybe you can review your code and check where it needs to be fixed. Good luck. I'll be looking forward to use the fixed TMA!!!

To add comments, please log in or register