fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Backtesting and simulated cash withdrawal from the account

    Questions & Answers
    2
    4
    1917
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      james last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • J
          james last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            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 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            X
            K
            F
            A

            12
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors