Skip to content
All library documents

Fixed Stop-Loss and Take-Profit Entries with Deposit-Based Sizing

Article MQL5 code base

Summary

The script described opens buy positions with stop-loss and take-profit levels set at fixed point distances from the current price. Its money-management input controls trade volume as a proportion of the account deposit, linking position size to the funds available. Other settings govern allowed price deviation and the number and timing of retries after an unsuccessful trade.

This is an execution and position-sizing template, not a complete entry strategy: the page does not explain when to buy, how the stop or target distances are chosen, or how the sizing ratio should be calibrated. It gives parameter descriptions but no backtest, live results, asset-specific guidance, or discussion of gaps, slippage, and changing risk as prices move. The stated point-based distances and deposit-linked volume therefore need interpretation within the target instrument and trading platform before use.

Key ideas

  • The script opens buy trades with stop-loss and take-profit distances measured from the current price.
  • A money-management parameter sets trade volume relative to the deposit.
  • Inputs also control price deviation and retries after unsuccessful trades.
  • The description does not specify entry logic or provide performance evidence.

Tags

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