fxDreema

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

    Check last position...

    Questions & Answers
    3
    11
    1800
    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.
    • R
      re0306 last edited by

      .

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

        "For each Position" wih "Not more than N trades" set to 1 would load the last opened position. Even if "Not more than N trades" is not 1, because there can be only 1 position per symbol in MT5.
        Then... why not using "pips away from open-price"?

        1 Reply Last reply Reply Quote 0
        • R
          re0306 last edited by

          .

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

            Here are some examples for the pink blocks: https://fxdreema.com/examples/#Loop-(For-each...)
            These blocks are used to create a loop. This loop means loading few trades (positions in MT5) and doing actions over each one of them, one after another. For each..." loads them. If 10 trades are loaded, then the block will cause the next blocks to run 10 times, each time with different trade loaded. With the other pink blocks you can do some actions with these trades. Since in MT5 you have 1 position in the current symbol, "For each Position" would load only this position and then with the other pink blocks you can do something with it.

            But I'm not sure that we are talking for the same thing. In MT5 we can have 1 position per symbol, right? This was always true, but lately they decided to allow "hedging" in MT5. The problem is that at the moment fxDreema does not work well with this option.

            1 Reply Last reply Reply Quote 0
            • R
              re0306 last edited by

              .

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

                Yes, this is how MT5 always worked - only 1 position per symbol. Only lately they added this new "hedge" option. I think that this option is still in testing and is only available when you create account in their "MetaQuotes Demo". But I also have problems with this option and I can't make things to work properly when a position is modified. The result is that the EA hangs, it stops working in the Tester.

                1 Reply Last reply Reply Quote 0
                • M
                  miro1360 last edited by

                  when you trade only one pair with EA and you need test it with tester, I suggest you for now stay with MT4
                  MT5 in hedge can work but you need code a lot of things manually, after this you need broker which allow you trade in "hedge" mode, otherwise you need remake your EA into MT4 and again test it 😄

                  Between trading and gambling is a very small gap, be careful.

                  1 Reply Last reply Reply Quote 0
                  • R
                    re0306 last edited by

                    .

                    1 Reply Last reply Reply Quote 0
                    • R
                      re0306 last edited by

                      .

                      1 Reply Last reply Reply Quote 0
                      • R
                        re0306 last edited by

                        .

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

                          In Example 2 those "Bucket of.." blocks are working pretty much like "Pass". What these blocks do is to take a look at the existing trades and prepare some array that can be used later. There is no visible result from them, but if you run them, they can pass. And this is what happens - they run on every tick and because trades exists, they pass. Why they run on every tick... because why not, these are the rules for blocks who are on top level 🙂 When they pass... you make even more trades 🙂

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

                          Online Users

                          C
                          A
                          X
                          J
                          A

                          14
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors