Skip to content
All library documents

Modeling Periodic Account Withdrawals in Strategy Tester Backtests

Article MQL5 articles

Summary

This article shows how to model withdrawals during MetaTrader 5 strategy testing and explains how they affect account balance, equity, and drawdown reporting. It proposes configurable withdrawal schedules and amounts, with withdrawals calculated either as a fixed sum or a percentage of balance. A channel breakout Expert Advisor serves as an example, and the article describes using a custom tester criterion to compare withdrawal outcomes or drawdown measures.

The reported experiments compare runs with withdrawals disabled and enabled, including a baseline relative equity drawdown of 4.75%. The author cautions that the tester’s net profit and gross loss figures need adjustment to interpret performance after withdrawals, and that drawdowns from systems with and without withdrawals are not directly comparable without accounting for the difference. This is a testing technique for examining capital use and strategy sensitivity, not evidence that the example strategy is profitable or that a withdrawal schedule is safe.

Key ideas

  • The tester withdrawal function reduces balance and equity during backtests while tracking withdrawn funds separately.
  • Withdrawal schedules can be configured by interval and by fixed amount or percentage of balance.
  • A channel breakout Expert Advisor demonstrates how to incorporate periodic withdrawals into testing.
  • Withdrawal settings can be used to examine drawdown sensitivity and money management behavior.
  • Tester profit and loss figures require adjustment to interpret results after withdrawals.

Tags

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