Skip to content
All library documents

Chart-Based Order Entry and Management with a Drag Trading Library

Article MQL5 articles

Summary

The article describes a MetaTrader library for placing and managing trades directly on a chart with mouse-operated controls. Its interface is divided into optional trading, information, and order-management panels, which can be enabled independently. Traders can place market orders by setting a stop-loss level and using chart controls, or create stop and limit pending orders by selecting a trigger price. Existing orders can be closed, pending orders deleted, and order stop or trigger levels adjusted through chart interaction.

The article also explains how to integrate the library into an Expert Advisor, initialize and run its functions, and configure settings through scripts and terminal global variables. It notes practical limitations: pending-order stop levels must be set through the terminal’s modification interface, and global variables constrain the type and size of settings they can carry. The author reports use on a live account but provides no performance study or independent reliability evidence. This is an operational tool for manual chart-based trade handling, not a tested trading strategy.

Key ideas

  • The library separates chart trading, account information, and order handling into independently enabled panels.
  • Market and pending orders can be entered and managed through chart controls.
  • Order-management functions include closing selected orders and deleting pending orders.
  • Expert Advisors integrate the library through initialization, shutdown, and per-tick calls.
  • The article describes workflow and implementation limits but provides no evidence of strategy profitability.

Tags

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