Skip to content
All library documents

MQL5 Trading Panel with Editable Double-Precision Volume Controls

Article MQL5 code base

Summary

This document describes implementation details for an MQL5 chart-based trading panel. Its key interface change is a modified spin-edit control that displays decimal values, allows direct text entry, and commits the entered text as a numeric value when editing ends. The panel exposes a magic number as its only input parameter, used to identify the expert advisor’s orders.

To handle quiet markets where ticks arrive infrequently, each panel-button click also invokes the trading dialog’s tick handler so order processing can occur immediately. The document offers implementation notes rather than a trading strategy or performance evidence. It does not explain order validation, execution guarantees, or how the panel behaves under broker-specific constraints.

Key ideas

  • The panel uses a modified spin-edit control to display decimal-valued trade sizes.
  • The control accepts manual text entry and saves the entered value when editing ends.
  • The expert advisor uses a magic number as its sole input parameter.
  • Button clicks invoke the internal tick handler to prompt order processing between market ticks.

Tags

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