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!!!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
TMA:
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
Author: Nikolay Kositsin