Skip to content
All library documents

A Simple Moving-Average Price Deviation Indicator

Article MQL5 code base

Summary

This short description defines a price-deviation indicator that compares the selected price with its average, calculated using a simple moving average over a chosen period. The user sets the calculation period and the applied price, which determine the averaging window and the price series used. The indicator is presented as a measure of how far price has deviated from its average, but the document does not specify whether the output is expressed in raw price units, percentages, or standardized units.

The concept can help describe price extension relative to a recent baseline, but the source gives no thresholds for interpreting high or low readings, no entry or exit rules, and no backtest or trading evidence. A deviation alone does not establish whether price is likely to revert or continue moving. Its meaning will also depend on the chosen asset, averaging period, and price input. Traders would need to define and validate a use case before treating the measure as a signal.

Key ideas

  • The indicator measures price deviation from a simple moving-average baseline.
  • Its calculation uses a configurable period and applied price.
  • The description does not state whether deviation is normalized or provide interpretation thresholds.
  • A deviation reading alone does not indicate whether price will revert or continue trending.
  • The document provides no trade rules or performance evidence.

Tags

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