Skip to content
All library documents

Triangular Moving Average as a Double-Smoothed Simple Average

Article MQL5 code base

Summary

The document explains the triangular moving average (TMA) as a moving average formed by applying a simple moving average twice. It describes how to choose the period for those two passes: add one to the requested period, divide by two, and round up if the result is fractional. The resulting period is used for both the first simple average of closing prices and the second average of that output.

The note gives a calculation recipe rather than trading rules, performance evidence, or market examples. It does not explain how to interpret TMA direction, crossovers, or lag, and it offers no comparison with other smoothing methods. The description is therefore useful as a basic indicator definition, but insufficient to assess whether the indicator improves a strategy or how it behaves across assets and timeframes.

Key ideas

  • TMA is calculated by applying a simple moving average twice.
  • The period for both averaging steps is half the requested period plus one, rounded up when needed.
  • The first pass averages closing prices, and the second pass averages the first pass output.
  • The document gives no signal rules or evidence of trading performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.