Building a Chart Panel for Editing Trading Indicator Settings
Summary
This tutorial describes a custom chart panel that lets users view and change an indicator’s settings directly on the chart. It lays out the panel as rows of cells, with each cell defined by its object type, text, row, and share of the panel width. The article packages reusable drawing and interaction logic in MQL5 classes and explains how an indicator can create the panel, receive chart events, and apply edited values.
The examples also show how the same panel concept can expose settings for chart objects, such as color, style, width, and fill. This is implementation guidance rather than a trading method or evidence that changing settings improves results. The author notes practical limitations: multiple instances can conflict when their short names match, saved chart templates may restore launch-time inputs instead of later panel edits, and some indicators cannot readily be adapted. The tutorial is aimed at beginners and relies on attached code files for the complete implementation.
Key ideas
- A table of chart objects can provide editable indicator controls directly on a chart.
- Cell widths are expressed as percentages that should total the full row width.
- A reusable class can manage panel creation, chart events, and cleanup.
- Chart-event handlers can apply edits to indicator or graphical-object settings.
- Indicator naming and chart-template behavior can limit multi-instance use and persistence of edits.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.