Skip to content
All library documents

Trading an MA Oscillator Histogram Direction Change

Article MQL5 code base

Summary

This document describes an expert advisor that trades signals from the MAOscillatorHist indicator. It enters a trade when the indicator histogram changes direction, with the signal evaluated at the close of a bar. The advisor depends on a compiled indicator file, and an accompanying library is mentioned for brokers that require support for nonzero spreads and protective orders during position opening.

The document reports a test on AUDUSD over a stated year and timeframe, using default advisor inputs and no stop loss or take profit. It provides no numerical performance measures or detailed evaluation of the test, so the example offers limited evidence about profitability or robustness. The signal rule is described, but the document does not explain the indicator's calculation, position exit logic, or risk controls.

Key ideas

  • The advisor generates a trade signal when the histogram reverses direction at bar close.
  • It relies on a compiled MAOscillatorHist indicator file.
  • The cited AUDUSD test used default inputs and omitted stop loss and take profit.
  • The document gives no detailed performance statistics or explanation of exit rules.

Tags

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