Skip to content
All library documents

Fixed Stop and Target Orders with Deposit-Based Position Sizing

Article MQL5 code base

Summary

This script description covers opening a position with stop-loss and take-profit distances specified in points from the current price. Its money-management input is intended to set deal volume in relation to the account deposit, expressing the funds used in a trade as a proportion of total deposit funds. Other inputs control price deviation, retry count, and the pause between retries after unsuccessful deals.

The listed defaults include a money-management value, stop and target distances, and execution retry settings. These are configuration details, not evidence of a tested risk model or trading edge. The description labels the script as an open-buy-position tool despite the page title referring to a sell position, so the direction and exact behavior should be verified in the implementation. It does not specify how volume is calculated for different contract specifications, leverage, or stop distance, and it provides no backtest or performance results.

Key ideas

  • The script sets stop-loss and take-profit distances in points from the current price.
  • A money-management input is intended to relate trade volume to the total deposit.
  • Price deviation and retry settings govern order execution attempts.
  • The description does not explain the sizing formula or establish performance results.

Tags

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