Download MetaTrader 5

Is this possible Add or withdraw deposit into backtest.

To add comments, please log in or register
Mohammad Ali
20698
Mohammad Ali  

Dear,

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

 

Thanks.  

Stanislav Korotky
19869
Stanislav Korotky  
You can use TesterWithdrawal function for withdrawal emulation, but adding more money is not possible to my knowledge.
Alain Verleyen
Moderator
32028
Alain Verleyen  
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