Skip to content
All library documents

Building an MQL5 Wizard Signal Module for Moving Average Crosses

Article MQL5 articles

Summary

This tutorial shows how to create a custom MQL5 signal module that can be selected by the MQL5 Wizard when generating an Expert Advisor. Its worked example is a moving average crossover module. The process covers deriving a class from the signal base class, adding a module descriptor so the Wizard can display its name and configurable inputs, storing those inputs in the class, and exposing methods to set them.

The remaining steps validate parameter settings, initialize indicator objects, and define long and short signal conditions. The article emphasizes building and checking a signal module separately, then combining it with the Wizard's existing trailing and money management components. It is a software construction guide rather than a trading performance study: it gives no backtest results or evidence that the moving average crossover is profitable. Its practical scope is the MQL5 Wizard and its class conventions, so the example may not transfer directly to other platforms or frameworks.

Key ideas

  • A custom Wizard signal module derives from the MQL5 signal base class.
  • A descriptor declares the module name and the input parameters exposed in the Wizard.
  • Class methods transfer configured inputs into the module and support validation and indicator setup.
  • Long and short condition methods encode the entry signals, illustrated with moving average crosses.
  • Testing simple signal modules individually can help structure larger Expert Advisors, but the tutorial provides no evidence of profitability.

Tags

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