fxDreema

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

    (in loop)Pips away(on loss) Mt5

    Bug Reports
    2
    7
    2054
    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.
    • M
      miki last edited by

      Hi, this block work fine only with buy position,on sell position it doesn't work. Same on Pips away from open price block.

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

        To all the people that can post question to this forum - please, give as many details as needed, like MQL version (4 or 5), what version of fxDreema you are using (web of local version), project ID if in web version, and everything that can make the question clear. After all, there are other people that can find the topic and get some information from it, and it's easier to me to understand the problem.

        In this case I can see you are using the web version in MQL5 mode. What you are missing in your project is "Start positions loop" block above the pink blocks, because all "(in loop)..." blocks must work with one of the "Start whatever loop" blocks. Most of the "(in loop)..." blocks are designed to work with trades (in MQL4), positions (in MQL5), history trades, history positions or pending orders, so before using even one of them, you must say with what you want to work by placing one of the "Start whatever loop" blocks.

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

          I'm sorry I always try to put all the information,the topic was reported in mt5, these blocks I've already used in others ea, and have always worked without entering the "start loop", it is only today that the blocks only work on long positons and not on sell position.Thanks,for the great job you doing.

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

            Without "Start positions loop" all the "(in loop)..." works with the last loaded... let's say position. If you don't have pending orders and the position is only one, which is typical for MT5... well, yes, it will probably work without the starter block, because the position is loaded in "If position..." block. But it's a good idea to put the starter block. In MT4 for example, where there can be multiple trades at once, it's even more needed.

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

              I've add "Start positions loop" at the top of the loop but the problem is the same,it doesn't work with sell position. Here a shared copy http://fxdreema.com/shared/5jM2OFPqe. May be that i something wrong,but i don't know what.

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

                You are right, there was a problem. Now working fine?

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

                  Yes,thanks.It work fine,now 😉

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

                  Online Users

                  E
                  E
                  T
                  M
                  U
                  S

                  13
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors