fxDreema

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

    Creation of virtual balance withdrawal for backtests.

    Questions & Answers
    4
    17
    2204
    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.
    • O
      Ontrade last edited by

      Hello friends, I notice that many times in the backtest the balance we put in the metatrader to perform the tests is doubled or tripled.
      For example:
      See in the picture, 1500 is the value that I put to test.
      But in the backtest this figure has already been exceeded, being 3587.
      In other words, the amount that I would have placed to carry out negotiations has already been made and doubled, I could have withdrawn this investment balance and be working only with the profit from the operations.
      What I wanted to know is how to create the following:
      Display information on the screen where at the end of the test even though at the end of the test it ends as the EA losing everything I earn, it shows:
      The initial balance
      The average daily gain
      The weekly gain
      The monthly gain
      The annual gain

      Having this if the backtest ends I will have the information on the chart showing that even though my EA showing that I was a loser in the end, it will show me how all the trades progressed.
      Can you help me?

      1_1601220136950_saldobacktest+.PNG 0_1601220136944_saldobacktest.PNG

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @Ontrade last edited by

        @ontrade I'm not completely sure that is possible for MT5 (as I see in your screenshot) You can certainly find some of tha infor when using MT4 with these options here:

        0_1601227561157_01.png

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

          I'd say withdrawing the lucky wins before account is destroyed will not lead to anything... You will only surrender the most effective tool of investing, compound interest.

          Anyway, here is the mql5 function to simulate withdrawals:
          https://www.mql5.com/en/docs/common/testerwithdrawal

          Need small help? Tag me in your post
          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

          O 1 Reply Last reply Reply Quote 0
          • O
            Ontrade @roar last edited by

            @roar How could I use this in fxdreema? do I have to use a specific block and put this code? can you give me an example?

            roar 1 Reply Last reply Reply Quote 0
            • O
              Ontrade last edited by

              @l-andorrà i will find this option on the mt5 fxdreema

              1 Reply Last reply Reply Quote 0
              • roar
                roar @Ontrade last edited by

                @ontrade put it in custom mql code block.
                For example, if you want to withdraw 500 usd, put
                TesterWithdrawal(500)

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                1 Reply Last reply Reply Quote 0
                • B
                  biztet last edited by

                  What?? Even the withdrawal can be simulate?? 🤔

                  roar 1 Reply Last reply Reply Quote 0
                  • roar
                    roar @biztet last edited by

                    @biztet yes, thats what you asked for, right? 😄
                    https://fxdreema.com/shared/PEBxB2rgb
                    0_1601297153586_e2ae4807-15e0-481d-a2cb-fe1da61247d9-image.png

                    Need small help? Tag me in your post
                    Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                    1 Reply Last reply Reply Quote 0
                    • B
                      biztet last edited by

                      errr...it's @Ontrade 's request actually.
                      Scammers will love this, hahaha!
                      Nice one @roar .

                      roar O 2 Replies Last reply Reply Quote 0
                      • roar
                        roar @biztet last edited by

                        @biztet oh sorry, didnt notice lol

                        Need small help? Tag me in your post
                        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                        1 Reply Last reply Reply Quote 0
                        • O
                          Ontrade @biztet last edited by

                          @biztet In fact, many scammers will love to put this as proof that the robot is a winner, unfortunate to say but this is the truth.
                          I'm glad I'm not one of these scammers ehheeh

                          1 Reply Last reply Reply Quote 0
                          • B
                            biztet last edited by

                            Really @Ontrade ? 😄
                            I never thought of doing an optimized backtest until we can also plan like withdrawing profits. Good luck with your project.

                            O 1 Reply Last reply Reply Quote 0
                            • O
                              Ontrade @biztet last edited by

                              @biztet said in Creation of virtual balance withdrawal for backtests.:

                              Really @Ontrade ? 😄
                              I never thought of doing an optimized backtest until we can also plan like withdrawing profits. Good luck with your project.

                              The thought I have is to know how many withdrawals I would make before the stop full happened, as my robots work with Hedge this helps me to measure the minimum initial investment to obtain the value close to the ideal for each withdrawal when working in a leveraged way.

                              1 Reply Last reply Reply Quote 0
                              • O
                                Ontrade last edited by

                                @roar said in Creation of virtual balance withdrawal for backtests.:

                                TesterWithdrawal(500)

                                Hello @roar

                                0_1602550097983_50$.PNG
                                Is correct this code?
                                I tried to use what happened to me and it didn't work.
                                I want to withdraw the balance virtually whenever he gives me $ 50

                                roar 1 Reply Last reply Reply Quote 0
                                • roar
                                  roar @Ontrade last edited by

                                  @ontrade try this inside the custom box:

                                  if(AccountBalance() - startblc > 50) TesterWithdrawal(50);

                                  Need small help? Tag me in your post
                                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                  O 1 Reply Last reply Reply Quote 0
                                  • O
                                    Ontrade @roar last edited by

                                    @roar Hello my friend,

                                    Can you help me create a condition for him to withdraw 50 $ whenever this profit happens?
                                    example:

                                    1. I put the EA on the chart.
                                    2. He obtained the balance of $ 10,000
                                    3. The EA started trading and made a $ 50 profit, then a withdrawal is immediately made, making the Balance $ 10,000 again and this is happening repeatedly.
                                      This is for backtests purposes, I know that compound interest is coming but I want to try to see how many times it would be possible to withdraw a balance of 50 $ with the same strategy.
                                    1 Reply Last reply Reply Quote 0
                                    • O
                                      Ontrade last edited by

                                      @roar I am trying to simulate withdrawals, because some robots that I develop end up at the end of the backtest showing that they broke the account, but the backtest just ended and he had open orders and this makes the backtest not end with a positive balance.

                                      Is there any other way around it?

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

                                      Online Users

                                      M
                                      D
                                      A
                                      M

                                      14
                                      Online

                                      146.7k
                                      Users

                                      22.4k
                                      Topics

                                      122.6k
                                      Posts

                                      Powered by NodeBB Forums | Contributors