Is this possible Add or withdraw deposit into backtest.

 

Dear,

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

 

Thanks.  

 
You can use TesterWithdrawal function for withdrawal emulation, but adding more money is not possible to my knowledge.
 
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.
Reason: