Simulation of adding or withdraw money during backtest

 

Hello Everyone,


Is it possible to simulate a change of balance during a backtest ?

Typically added money or withdraw money from Balance during the backtest.


Thank you in advance,


Regards

 
Hugues Page:

Hello Everyone,


Is it possible to simulate a change of balance during a backtest ?

Typically added money or withdraw money from Balance during the backtest.


Thank you in advance,


Regards

sure!

check those functions

testerwithdrawal


testerdeposit

Documentation on MQL5: Common Functions / TesterWithdrawal
Documentation on MQL5: Common Functions / TesterWithdrawal
  • www.mql5.com
TesterWithdrawal - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: