Skip to content
All library documents

One-Click Trade Execution with Position Sizing and Scaled Exits

Article MQL5 code base

Summary

This document describes an on-chart trading panel for placing market and pending orders, managing position size, and automating exits. Traders can size positions using manual lots, a percentage of equity, or a fixed cash risk amount. The panel also supports three staged profit targets with configurable close fractions, stop-loss settings, and a bulk flattening action for open positions and pending orders.

For trade management, it offers fixed-distance, ATR-adaptive, and prior-bar structure trailing methods, plus an automatic break-even adjustment after a configured profit threshold. The setup instructions explain how to install the panel in MetaTrader 5, configure risk and exit levels, and enable algorithmic trading. The document is a feature and usage description; it provides no strategy signal, performance results, or evidence that its example defaults are suitable across instruments or account sizes. Risk settings and execution behavior therefore require configuration for the trader’s market and trading plan.

Key ideas

  • Position size can be set manually, as a share of equity, or from a fixed cash risk amount.
  • The panel supports market orders and limit or stop pending entries.
  • Traders can divide exits across three profit targets and choose configurable close fractions.
  • Trailing exits can use fixed distances, ATR, or prior-bar structure, with an optional move to break-even.
  • The document describes software features and example settings, not evidence of a profitable trading strategy.

Tags

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