Backtest withdrawals: separate trading profit from account cash flow

Backtest withdrawals: separate trading profit from account cash flow

A test that simulates withdrawing money follows a different capital path from one that reinvests everything. Comparing only the final balances can therefore hide both the withdrawn amount and the effect of smaller later positions.

Know what is simulated

TesterWithdrawal emulates a withdrawal during a test and returns whether it succeeded. It does not transfer real money. The withdrawal amount is specified in the deposit currency, so its meaning belongs to the test account configuration.

Reconcile a simple example

Suppose a hypothetical test starts at 1000, makes 400 in net trading profit and withdraws 200. With no other cash flows, ending balance is 1200. Ending balance plus withdrawals minus starting capital equals 400; the withdrawal itself is not another trading gain.

Compare the sizing path

An equity- or balance-based EA may reduce future lots after money is withdrawn. Freeze the withdrawal schedule and automatic-sizing rule when comparing runs. A reinvestment test and a withdrawal test are not identical except for their report formatting.

Present the result clearly

Show starting capital, net trading result, deposits, withdrawals and ending balance as separate fields. Ask AI to verify the reconciliation rather than simply calculate a percentage from final balance. Label any withdrawal policy as a simulated scenario, not an available account-service feature.

TesterWithdrawal reference

Back to top

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.

100% committed to following up on your delivery and support requests.

Free downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.1

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$99.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.7

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping