Skip to content
All library documents

A Moving-Average Slope Expert Advisor Triggered by Oscillator Crossovers

Article MQL5 code base

Summary

This Expert Advisor trades when the LinearRegSlope_V1 indicator changes color. The signal is evaluated at bar close when the oscillator crosses its signal line, providing a rule-based entry trigger based on a change in the indicator’s direction. The advisor requires the separately compiled indicator file to be installed in the platform’s indicator folder.

The document reports that example trades and a test chart are provided for USDJPY on the four-hour timeframe, using default inputs in tests for 2014. It says the tests did not use stop-loss or take-profit orders. No performance figures, test details, or explanation of position sizing are included, so the chart reference alone does not establish profitability or robustness. The strategy depends on an external indicator, and its behavior may be sensitive to that indicator’s calculation and the selected market and timeframe. The material describes an entry mechanism rather than a full risk-managed trading system.

Key ideas

  • The Expert Advisor enters when the LinearRegSlope_V1 indicator changes color and the oscillator crosses its signal line at bar close.
  • It requires a separately compiled indicator file to operate.
  • The document references tests on USDJPY using four-hour bars in 2014 and default inputs.
  • Stop-loss and take-profit orders were not used in the reported tests.
  • No numerical performance results or full risk-management rules are provided.

Tags

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