Skip to content
All library documents

A Trading Assistant for Manual Orders, Protective Levels, and Risk Display

Article MQL5 code base

Summary

This document describes a chart-based trading assistant that lets a user place market orders with keyboard commands and configure pending buy-stop, sell-stop, buy-limit, and sell-limit orders by selecting entry, stop-loss, and take-profit prices on a chart. It displays estimated account-balance risk and potential gain for protective levels, along with position size, tick value, required margin, spread, and the assistant's aggregate profit or loss. Its profit-and-loss display includes commissions and swaps.

The tool also supports adjusting volume, viewing order counts and average stop-loss or take-profit levels, and attempting to close its positions. The description cautions that rapid market changes can prevent a close command from closing every order, so users should check the resulting positions. It explains interface behavior rather than a trading strategy, and supplies no evidence about execution quality or trading performance. Users are advised to test on a demo account and verify the selected chart before entering commands.

Key ideas

  • Pending orders can be entered by selecting price levels on a chart, with stop-loss and take-profit levels required.
  • The assistant displays position size, margin, spread, and potential account-level gain or loss.
  • Its aggregate profit-and-loss calculation includes commissions and swaps.
  • A close command may leave positions open during rapid market changes, so order status should be checked.
  • The document describes order-entry tooling and provides no strategy-performance evidence.

Tags

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