Skip to content
All library documents

Using Standard Deviation and Moving Averages to Build Trading Signals

Article MQL5 articles

Summary

The article explains standard deviation as a measure of how dispersed prices are around their average, then outlines a manual calculation and the corresponding MetaTrader indicator settings. It presents three rules: compare the current standard deviation with the average of five earlier readings to classify volatility; combine a rising standard deviation with price relative to a moving average for directional signals; or require standard deviation to exceed that five-reading average before using the same price and moving-average conditions.

The article also describes translating each rule into a stepwise plan and implementing it in MQL5 to display readings and signals on a chart. It supplies conceptual examples and implementation guidance, but the excerpt gives no performance results, transaction costs, or risk controls. These are basic indicator rules rather than validated strategies, and the author advises testing them before live use. Standard deviation describes recent dispersion; the rules alone do not establish that a signal predicts returns.

Key ideas

  • Standard deviation measures the dispersion of observations around their mean and is used here as a proxy for volatility.
  • Comparing the current reading with the average of five previous readings classifies volatility as high or low.
  • A rising standard deviation combined with Ask or Bid relative to a moving average generates the article's buy and sell signals.
  • A second directional rule requires standard deviation to exceed its five-reading average before checking price against the moving average.
  • The article turns these conditions into MQL5 chart signals but provides no 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.