fxDreema

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

    I need help with a partial close structure.

    Questions & Answers
    2
    15
    729
    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.
    • T
      tho401 last edited by

      I want partial closes in draw down, once a trade is running against me.

      The key is, i only want it to happen once the trade is for example 10 pips in profits.

      So for the partial close to be valid, the trade should be 10pips in profit from the entry and only if it comes back running against me, i want a 50% partial close at -10 pips draw down against me from Open price.

      So if the EA Opens a trade and it rus straight agains me, i dont want any partial close.
      Only if the trade reached +10pips profit first and then from there goes against me, then i want a 50% partial close at -10 pips
      .

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

        @tho401 For each trade->pips away use - for negative, use flags to switch on the -10 when trade has reached+10.

        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
        • T
          tho401 last edited by

          @jstap i think i got the partial close. I just dont get the flags, so it only closes partials once the +10 pips have been reached first. I would appreciate your help! 0_1655586098917_Screenshot (4215).png image url)

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

            @tho401 That is what I meant by the partial close, use a bool (true/false) flag, under the +pips away tree turn the flag to true, check above the -pips away and set back to false under.

            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! 😊

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

              @jstap I dont get it, im stuck with it for 3x weeks now. Could you Show me how its done? i would appreciate it. Im definitely doing something wrong, it doesn't even close partials at all for me with the flags.

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

                @tho401 Put your latest project here.

                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! 😊

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

                  @jstap https://fxdreema.com/shared/k99PfzHqe

                  My logic is, if price is away +650 points from Open then i set the flag to true, so if thats true then it can go to the next Block and close partials at -650 points.

                  I never made expirence with the true/false falgs, so i dont know if im doing it right or wrong, would appreacite your help.

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

                    @tho401 Try it like this:

                    0_1655663550022_9db9007e-0858-44b9-9ffe-e6b93cdc2649-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! 😊

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

                      @jstap Can you share it so i can look into the blocks, im just confused at this point, sorry XD
                      thx for your help!

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

                        @tho401 I didn't set the blocks, tree 1 checks for +650 and sets flag to true, tree 2 checks if flag is true then at -650 closes partial and sets the flag back to false.

                        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! 😊

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

                          @jstap Like this? https://fxdreema.com/shared/Yz99llh1c

                          tryed it, but it doesnt close partials.

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

                            @tho401 Try this https://fxdreema.com/shared/UJhswOYSd I added a buy so you can test on backtest.

                            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! 😊

                            T 2 Replies Last reply Reply Quote 0
                            • T
                              tho401 @jstap last edited by

                              @jstap THX!

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

                                @jstap 0_1655667904277_Screenshot (4221).jpg

                                it works there is just a small problem, the ea closes partials till minimum lotsize in some cases, but that could be fixed with "once per trade" maybe. i just dont get why it doest happen all the time, just in some cases.

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

                                  @tho401 Your right once per trade may fix but logically as soon as it closes partial the flag should turn false, check all flags are set to the right value.

                                  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

                                  F
                                  M
                                  A
                                  L
                                  O
                                  S
                                  E
                                  J
                                  D
                                  M
                                  X

                                  23
                                  Online

                                  146.6k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors