fxDreema

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

    Partial Close

    Questions & Answers
    2
    14
    8176
    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.
    • ekanters
      ekanters last edited by

      Still Strugling with the online version. This is an exact copy of the desktop version. From block 1 to 81 both versions work perfect. It's the partial close area in the online version (Block 81 to 107) that doesn't work. The Robot Terminates at Block 81. No Idea why.
      0_1519897479984_My Bot.jpg

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

        So you say that block 107 runs when it doesn't have to run? Above it block 103 always passes and we can skip it. So, is block 105 right?

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

          No I am saying the EA can't get past Block 81. The blocks (No Trade Running) are a must because often the EA terminates when not all trades are closed. That is the reason for Block 55, 77 and 105.

          In the desktop version when the EA gets to block 81 it will close 50% of all trades and trails the remaining 50% of all trades. In the online version when the EA gets to block 81 it closes all trades and the robot terminates. The Robot only terminates when trades are FULLY CLOSED. This is set in the on trade section. See second picture.

          P.S. Or as you say it goes straight from Block 81 to 107. That's possible.

          0_1520175993466_2018-03-04_16-05-31.jpg

          ekanters 1 Reply Last reply Reply Quote 0
          • ekanters
            ekanters @ekanters last edited by

            Below the desktop version. Above is all online version.0_1520177117858_desktop.jpg

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

              Ok I have checked and double checked. Time frame and Inputs are exactly the same and below the result of both versions. 10 trades total.
              Note: In the desktop version variables are used and in the online version Constants are Used.
              0_1520190219442_#CLM15 Versions.png

              ekanters 1 Reply Last reply Reply Quote 0
              • ekanters
                ekanters @ekanters last edited by

                Inputs on both EA's except one 🙂
                0_1520191152757_Inputs.png

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

                  You know, the desktop version is very old. I think I even added some code in that "close (partially)" block. But also I revised the code of many blocks, because I decided to make the code of each block in MQL4 and MQL5 exactly the same. So I think of 2 scenarios - the desktop version is wrong and the web version does it right, or I introduced some bug in the web version with my latest updates.

                  If you know which block is wrong, can you make a simpler example that shows that the particular block is not working as expected?

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

                    @fxdreema Now that's a very good question. I do my best. If you like I could send both to you in private, but not sure how. Anyway I do my best to explain in a simple way. Now its bed time for me so it need to wait for a day. 🙂

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

                      @fxdreema Ok I made 4 simple EA's and got 4 different outcomes. No need to reply here. Will send full but very simple report by email with all 4 bots included.
                      0_1520773993864_BOT.jpg

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

                        @fxDreema Solved one problem in EA nr 1. Counter ID's must be different otherwise "PARTIAL CLOSE" wil not work 🙂
                        0_1520779627442_counter ID.jpg

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

                          @fxDreema Ok I am getting somewhere. This seems to work. Now lets see if I can rebuild the original EA now. So no need to check my emails. Will let you know when done. 🙂
                          0_1520796931371_Working.jpg

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

                            @fxDreema Everytime I think I have solved the problem I get another one. The EA below is working but the big question is when I use ON TRADE CLOSED as a safety ie close trades Fully by hand Its not working anymore and the EA Terminates at the partial close level. Anyway I think the problem must be found in that area. But I keep digging. 🙂
                            0_1520810968531_ON TRADE.jpg

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

                              @fxDreema Here the example. I will wait for a response now. Thanks a lot in advance.
                              0_1520812440046_EURJPYM15 complete.png

                              ekanters 1 Reply Last reply Reply Quote 0
                              • ekanters
                                ekanters @ekanters last edited by

                                SOLVED 🙂

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

                                Online Users

                                C
                                D
                                G
                                T
                                N
                                M
                                K

                                18
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors