Skip to content
All library documents

A Moving-Average Slope Rule for Multi-Timeframe Trend Signals

Article MQL5 code base

Summary

This indicator describes a simple way to display trend direction across multiple timeframes in one window. For each timeframe, it compares the latest moving-average value with the preceding value: a higher current reading marks a bullish trend, while a lower or equal reading marks a bearish trend. The default moving-average period is five, aimed at identifying short-term direction, and users can change the period to suit their needs.

The document explains only the signal rule and its configurable setting. It provides no backtest, market examples, entry or exit rules, or risk controls, so it does not establish whether the indicator predicts returns or works across instruments and timeframes. A moving-average slope can also change direction after prices move, and the short default period may produce frequent reversals. Treat it as a visualization or input to a tested process rather than a complete strategy.

Key ideas

  • The indicator summarizes direction across multiple timeframes in one window.
  • It labels a timeframe bullish when its latest moving average exceeds the previous value.
  • A lower or unchanged moving average is classified as bearish.
  • The default period is five, and the period can be adjusted.
  • The document supplies no performance evidence or complete trading rules.

Tags

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