Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.
Matias RomeoThe main weight goes for the average part of the price series. In fact, they are double-smoothed simple moving averages. The simple Moving Averages' length depends on evenness or oddness of the chosen number of periods. Operations for TMA calculation:
- 1. To the number of periods of Moving Average 1 is added.
- 2. The received sum is divided to 2.
- 3. If the result was released fraction, it is rounded up to a whole.
- 4. The simple Moving Average of close prices with the number of periods obtained up to point 3 is calculated.
- 5. Again using the value obtained up to point 3 the simple Moving Average calculated by point 4 is calculated.

Experience adaptive trading with the Fluid Expert Advisor for MT4/MT5. Dynamic money management and trend detection. Click for info.
Build better strategies with RobotFX professional tools – check them out.
7375