Skip to content
All library documents

Rounding Displayed Moving Average Levels in a Trading Indicator

Article MQL5 code base

Summary

This brief indicator description explains a display feature for a universal moving average: the latest value can appear as a price label, and channel levels can be rounded to a chosen number of decimal digits. The rounding precision is controlled through an input setting. This can make plotted values conform more closely to an instrument’s displayed price precision, though the text does not explain how the underlying moving average is calculated.

The indicator depends on an external smoothing library that must be installed in the platform’s include folder. The page refers readers to a separate article for details on the library’s averaging classes. It provides no trading rules, market examples, tests, or evidence that the display options improve trading results. Its useful content is therefore limited to indicator presentation and setup rather than a signal or strategy. The source is a translated MetaTrader indicator listing, and no further algorithmic or statistical detail is included.

Key ideas

  • The indicator displays the latest moving-average value as a price label.
  • Channel levels can be rounded to a user-selected number of digits.
  • The moving-average calculation relies on a separate smoothing library.
  • The description gives no trading signal, performance evidence, or details of the averaging method.

Tags

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