Building an Expert Advisor Panel for Editing Trading Parameters Live
Summary
This article explains how to add a chart panel to an MQL5 Expert Advisor so selected settings can be changed while it is running. Its example EA trades in the direction of a JMA indicator on completed bars, with configurable indicator period, stop loss, take profit, position reversal, and lot size. A setting mode lets the EA save its active parameters to a file, read them back, and update that file when a user edits values through the panel.
The implementation is organized into a main EA and include files for panel creation, file operations, events, signals, and trading functions. A timer checks for a missing parameter file and restores it, while the EA uses external inputs when live editing is disabled or in the tester. The article is primarily a programming walkthrough rather than a strategy evaluation: it provides no trading performance evidence, and notes that some interface edge cases and validation checks are left for further work.
Key ideas
- A live settings panel can let users edit selected Expert Advisor parameters without restarting it.
- The example persists editable values in a file and reloads them when live-setting mode is enabled.
- Separate include files can organize panel, file, event, signal, and trade logic.
- The sample strategy trades with a JMA direction signal on completed bars, but the article does not evaluate its profitability.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.