Download MetaTrader 5

Is this possible Add or withdraw deposit into backtest.

To add comments, please log in or register
Sign up to publish an article and receive 200 USD
Mohammad Ali
19515
Mohammad Ali 2014.07.24 14:13 

Dear,

Is there any function or coding into MT5 EA So EA can add deposit or withdraw equity into backtesting.   

 

Thanks.  

Stanislav Korotky
17866
Stanislav Korotky 2014.07.24 19:14  
You can use TesterWithdrawal function for withdrawal emulation, but adding more money is not possible to my knowledge.
Alain Verleyen
Moderator
30707
Alain Verleyen 2014.07.28 16:35  
https://www.mql5.com/en/articles/131
Using the TesterWithdrawal() Function for Modeling the Withdrawals of Profit
Using the TesterWithdrawal() Function for Modeling the Withdrawals of Profit
  • 2010.09.06
  • Andrey Voytenko
  • www.mql5.com
This article describes the usage of the TesterWithDrawal() function for estimating risks in trade systems which imply the withdrawing of a certain part of assets during their operation. In addition, it describes the effect of this function on the algorithm of calculation of the drawdown of equity in the strategy tester. This function is useful when optimizing parameter of your Expert Advisors.
To add comments, please log in or register