Skip to content
All library documents

A Color-Coded Adaptive Moving Average Indicator for MetaTrader 5

Article MQL5 code base

Summary

This document describes a MetaTrader 5 indicator that displays a moving-average-style line in two colors according to its direction of change: red when the value falls from the prior value and blue when it rises. A filter can be applied to smooth market noise. Inputs include the calculation range, fast and slow exponential moving-average periods, the number of bars to display, and the filter setting.

The description explains the indicator’s display and configuration, but gives no trading rules, backtest, or performance evidence. It does not specify how the filter works or quantify how much smoothing it provides, so users would need to inspect and test the implementation to understand its behavior. The color change indicates movement in the indicator value; by itself it does not establish a trend or provide evidence of profitable entries.

Key ideas

  • The indicator colors its line red when its value declines and blue when it rises.\nA configurable filter is intended to smooth market noise.\nInputs include range, fast and slow EMA periods, displayed bar count, and filter settings.\nThe document provides no trading rules or performance evaluation.

Tags

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