Backtesting and simulated cash withdrawal from the account
-
Hello!

In MT4, using fxDreema local, I'm trying to figure out how during backtests I can simulate the effect of withdrawing cash from the account. For example, if the account is $100 in profit, withdraw (bank) 10% and carry on running with the lower balance.
Any ideas would be most gratefully received!
Thanks.
-
I don't know how. I received this question long time ago, but I don't know any MQL4 function to do that. Also the swap, how to change it... well, MQL4 has some limitations.
-
Many thanks for your reply.
I found this: http://forum.mql4.com/17805, and this: http://articles.mql4.com/127, but I couldn't work out what it all meant - I'm no programmer!
Does it make any sense to you?
-
They show how to generate report at the end of the backtest, but in the middle of the backtest how to make MT4 to show you that there was a withdraw, to make changes to the Balance/Equity chart, to make functions like AccountBalance() and AccountEquity() to return correct values. I don't know, if I have to do tricks with MQL4 and MQL5, I will rather program a whole new backtester. But this is something bih and I already think and work for different kind of project
