Skip to content
All library documents

Risk-Percentage Lot Sizing and One-Click Trade Execution in MT5

Article MQL5 code base

Summary

This document describes an MT5 chart panel for estimating trade size from a chosen percentage of account balance. The trader positions two horizontal chart lines to set low and high price levels, which the panel uses to preview buy and sell lot sizes alongside the line prices, spread, and risk amount. The panel also supports one-click order entry, editable risk settings, and a configurable spread filter.

The sizing approach is deliberately approximate and uses account balance rather than equity. The document does not explain the calculation formula, how the tool handles different contract specifications, or provide performance evidence. Its intended use is quick manual trading, and it recommends trying the tool on a demo account before using it live.

Key ideas

  • The panel estimates lot size from a user-selected percentage of account balance.
  • Two draggable chart lines define the price levels used for the buy and sell previews.
  • One-click order buttons support manual execution, while a maximum-spread setting can block trades.
  • The sizing engine is approximate and bases risk on balance rather than equity.

Tags

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