Building a Metadata-Driven Indicator Parameter Configuration Panel
Summary
This article describes extending a MetaTrader 5 indicator search panel so users can configure an indicator’s inputs before attaching it to a chart. It proposes metadata definitions for parameter names, types, defaults, validation limits, and enumeration choices, with reusable mappings for options such as applied price and moving average method. A repository associates each supported indicator with its own parameter definitions, allowing one dialog to create controls dynamically instead of requiring a separate dialog per indicator.
The workflow collects and validates user input, converts it into MqlParam values, and passes those values to indicator creation. Examples include input sets for RSI, Moving Average, and Bollinger Bands, while Awesome Oscillator needs no configurable inputs. The article focuses on software architecture and implementation within an MQL5 charting tool; it supplies no trading-performance evidence or evaluation of indicator signals. Its usefulness is therefore for interface and indicator-launcher development rather than assessing a trading strategy.
Key ideas
- A shared parameter metadata structure can describe inputs across different built-in indicators.
- Reusable enumeration helpers avoid duplicating choices such as applied prices and moving average methods.
- A repository maps each indicator type to the parameters its configuration dialog should display.
- The dialog validates entered values and converts them into parameters for indicator creation.
- The article explains a software workflow and does not present evidence of trading performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.