Skip to content
All library documents

MetaTrader Assistant for Order Controls and Position Monitoring

Article MQL5 code base

Summary

This MetaTrader 4 expert advisor is designed as a chart-side control panel for manually managed trading. It displays the symbol, timeframe, account leverage, current spread, selected lot size, estimated tick value, required margin, and the profit or loss and order count associated with its identifier. It also summarizes average stop-loss and take-profit levels among positions that have those settings, and reports how many positions include them.

Keyboard controls open long or short positions using the configured settings, close positions belonging to the advisor, and increase or decrease trade size. The document describes configurable items such as the order identifier, lot size, slippage, and chart text placement. It is an operational aid rather than a trading strategy, and it provides no performance evidence. The author cautions that rapidly changing market conditions may prevent all positions from closing in one attempt and that accidental key presses can place unwanted orders; users should verify the selected chart and open positions.

Key ideas

  • The advisor displays account, market, sizing, and position information directly on a chart.
  • A unique order identifier lets users view and control positions associated with the advisor.
  • Keyboard shortcuts open or close positions and adjust the selected trade size.
  • Closing may be incomplete during rapid market changes, so positions require manual verification.
  • The document describes interface behavior but provides no evidence about trading performance.

Tags

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