Skip to content
All library documents

Using Hourly and Daily Simple Moving Averages to Read Price Trends

Article MQL5 code base

Summary

This document introduces a simple moving-average indicator that calculates an average price for a selected instrument over either an hourly or daily period. Comparing current price with the daily average can help show whether price is trading above or below that reference; the hourly version is presented as a faster way to observe possible trend changes. The indicator lets users choose the symbol, averaging period, and applied price, with weighted price given as the default in its parameter example.

The text recommends short chart intervals from one to thirty minutes and describes comparing instruments on the same chart, such as two currency pairs. It also says the daily average can serve as a reference for possible support or resistance. These are visual interpretation uses, not a complete trading system: the document gives no entry or exit rules, performance data, or risk analysis. A moving average is a lagging summary of past prices, and the suggested time scales and comparisons are not supported by reported testing.

Key ideas

  • The indicator calculates a simple moving average for a chosen symbol and price input.
  • Hourly and daily averaging periods provide references for short-term and broader price direction.
  • The document suggests using short chart intervals and comparing instruments on a shared chart.
  • A daily average may be observed as a potential support or resistance reference.
  • No trading rules, backtest results, or risk analysis are provided.

Tags

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