Skip to content
All library documents

Sizing Fixed-Stop Trades by Deposit Equity

Article MQL5 code base

Summary

This trading script opens a buy position with stop-loss and take-profit distances set in points from the current price. Its stated risk-control feature uses a configurable fraction of account equity to determine the loss associated with a triggered stop. Other inputs govern price deviation, the stop and target distances, the number of retries after unsuccessful orders, and the pause between retries.

The document explains the purpose of these settings but does not include the script’s full implementation or describe how position size is calculated across instruments. It gives no backtest, performance evidence, or discussion of slippage, gaps, or whether the equity-based loss target can be maintained in live execution. Treat it as a brief description of order and risk parameters, not evidence that the approach limits realized losses to the configured amount.

Key ideas

  • The script places buy trades with stop-loss and take-profit distances measured from the current price.
  • A configurable equity fraction is intended to set the loss associated with a triggered stop.
  • Inputs also control price deviation, retries, and the pause between retries.
  • The document gives no performance evidence or full account of position sizing and execution risks.

Tags

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