fxDreema

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

    HELP, How to define the First Opened Position

    Questions & Answers
    2
    6
    559
    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.
    • E
      econsulttt last edited by

      Good day, please I need help on the following:

      My ea is created to open many positions without stop loss and take profit;
      So I want the ea to:

      1. close all the sell positions if the first opened sell position reaches 25pips profit

      2. close all the buy positions if the first opened buy position reaches 25pips profit

      Please, how do I achieve this?

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @econsulttt last edited by

        @econsulttt You could turn virtual stops on, or you could do something like this:

        0_1637796250402_cdf9b070-ea29-40d9-b3d2-16a0256ac93a-image.png

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        E 1 Reply Last reply Reply Quote 0
        • E
          econsulttt @jstap last edited by

          @jstap thanks but still does not solve the issue, there is no way the CLOSE PROFITABLE TRADES block can identify the first trade position. I want all trades to be closed only if the first trade position enters into 25pips profit

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @econsulttt last edited by

            @econsulttt You need to use groups and define a condition, for when group 1 trade is @ 25 pips profit, close group 1 trade and then close the rest.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            E 1 Reply Last reply Reply Quote 0
            • E
              econsulttt @jstap last edited by

              @jstap Yea I believe it should work as you've said but sincerely I'm not familiar with using groups for task like this. I will appreciate if you can help with the blocks connection.

              Thanks

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @econsulttt last edited by

                @econsulttt I don't mind helping, just start your project, put a shared link on here with what you need to sort.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

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

                Online Users

                Z
                S
                C
                P

                20
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors