Skip to content
All library documents

Extending MQL5 Wizard Experts with Price-Level Order Modules

Article MQL5 articles

Summary

The article explains how to extend Experts generated by the MQL5 Wizard so they can place orders, stop losses, and take profits at calculated price levels rather than only at fixed distances from the current market. It proposes inheriting from standard Expert and signal classes to preserve compatibility with the Wizard while adding price modules that supply entry and risk levels.

The modified decision process separates trade direction, derived from weighted signal forecasts, from the selection of an entry level. It filters candidate price sets by direction and favors the set from the highest-weight module; if no suitable entry is available, the Expert waits. The article also describes updating existing orders when module parameters change. This is an implementation design and framework extension, not a tested trading strategy: it gives no empirical performance results, and the quality of its behavior depends on the price modules and their inputs.

Key ideas

  • Inheritance and polymorphism allow custom MQL5 classes to extend Wizard-generated Experts while retaining standard-library compatibility.
  • Signal modules determine trade direction, while separate price modules provide order levels and associated parameters.
  • The Expert selects a direction-compatible price set, using module weight to choose among candidates.
  • When direction is clear but no entry level exists, the system remains inactive until one becomes available.
  • The article describes architecture and implementation, without evidence that the extension improves trading results.

Tags

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