Skip to content
All library documents

Trading Moving Average Direction Changes at Bar Close

Article MQL5 code base

Summary

The document describes an Expert Advisor based on a direction-changing moving average. A trading signal is generated when a bar closes and the moving average changes direction. The indicator is supplied as a compiled file that must be placed in the platform's indicators directory, so the page offers a basic signal concept rather than the underlying calculation or source code.

The stated example tests the default Expert Advisor inputs on USDCHF four-hour bars for 2011. Stop loss and take profit were not used in those tests, and the page refers to charts showing historical trades and test results. It gives no numerical performance statistics or detailed execution assumptions. The example therefore provides limited evidence for evaluating the signal, and the single currency pair, timeframe, and test year do not establish how it would perform in other settings.

Key ideas

  • The strategy signals a deal when the moving average changes direction at a bar close.
  • The indicator is described as a directional adaptation of a general moving average.
  • The reported test uses default Expert Advisor inputs on USDCHF four-hour data for 2011.
  • The test did not use stop loss or take profit settings.
  • The page refers to historical trade and test charts but gives no numerical performance measures.

Tags

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