fxDreema

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

    Calculate equity drawdown percentage and open opposite direction trade

    Questions & Answers
    3
    37
    2938
    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.
    • A
      accastudent last edited by

      Dear all ,
      For all the experts and members I would request to help me in my project.
      As I have very little knowledge for coding. I have already created auto trading turn on and and turn off function.
      I just want help regarding a drawdown percentage calculator when reached a custom input value should open a hedging trade against the total lots floating in loss.
      Thank you

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

        If you would like help make a start, add the shared link, then say what's not working. To put it simply, there are blue blocks that check unrealised profit, -x.xx with a buy block under, although you will likely need a no trade block for the hedge group to limit unnecessary trades.

        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
        • A
          accastudent last edited by

          @jstap Thank you for your reply.

          https://fxdreema.com/shared/sOm1xtRcd

          Please check , I want to open a hedging trade against the total floating lots at 5 percent of equity drawdown. Again reopen the hedging trade after next 5 percent and trigger autotrading off.

          Thank you

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

            You have conflicting issues in 1 tree, equity will never = your drawdown result if no trades are running. to disable auto trading is good, but get this working before worrying about this

            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 1
            • A
              accastudent last edited by

              Yes , actually one EA is running already to open trade. I just need to make a hedging EA to support the risk management.
              Will it work accordingly if the trades are opened?
              Thank you

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

                Not with a no trade block, unless magic numbers are different, in the same tree you cannot have 2 conflicting drawdown blocks, if true pass, but 2 will never be true at the same time.

                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
                • A
                  accastudent last edited by

                  @jstap Is it possible to create different trees as the shared project

                  https://fxdreema.com/shared/ChWd6jg0c

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

                    By trees I mean a set of blocks all linked, you can have as many trees as you want. Trees will do separate/linked work but without being connected to another

                    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
                    • A
                      accastudent last edited by

                      Can you please help as this drawdown hedging function is not working. Thank you

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

                        Set it up with just 1 drawdown, for testing under a if testing block create a trade.

                        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
                        • A
                          accastudent last edited by

                          I am sorry but I am a beginner , please if you can elaborate a little and please guide me .

                          https://fxdreema.com/shared/PxajdmYJ

                          Thank you

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

                            I don't mind helping/guiding, but you'll have to tell me what the EA is doing/supposed to do

                            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
                            • A
                              accastudent last edited by

                              I just want to assemble an EA that just calculates the drawdown and opens new hedging trade on 5 percent of drawdown.
                              Not for trading and only for the risk management.
                              Thank you

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

                                Try this, it will work with any trade, but uses the account value:
                                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! 😊

                                1 Reply Last reply Reply Quote 0
                                • A
                                  accastudent last edited by

                                  @jstap Thank you for your help. I appreciate your efforts.

                                  The EA is now opening trades as it reaches drawdown value of 5 percent. But it is opening several trades for both buy and sell trades and even not match the lots size.

                                  If you can please advise modification of setting to open only one trade for opposite side or hedging for sum of lots already opened i.e. 5 buy trades (0.01 , 0.01 , 0.02 , 0.04 , 0.08 = 0.16 ). It should only open one trade for sell 0.16

                                  https://fxdreema.com/shared/igNfSNEvb

                                  Thank you

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

                                    This places extra trades (I think) because every time it places a trade there is a new one to work with. To have it working as you want you need to add to the logic, the lots used are inside the buy/sell blocks, what it should/should not be doing, and needs adding so it does what you need. Fix 1 thing, then the next until all is working

                                    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
                                    • A
                                      accastudent last edited by

                                      image.png

                                      I have change few settings and tried to find where can I enter the if condition and what would be the condition.

                                      https://fxdreema.com/shared/igNfSNEvb

                                      Thank you

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

                                        Check type is set for buys, so to place the opposite it needs set up like the picture, also if you have both set up on orange, it will place a buy and sell at that time.

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

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          accastudent last edited by

                                          image.png

                                          It is not working yet, It is opening multiple trades

                                          https://fxdreema.com/shared/bLx2cbikc

                                          P 1 Reply Last reply Reply Quote 0
                                          • A
                                            accastudent last edited by

                                            @l'andorrà Can you also please provide any solution. Thank you

                                            1 Reply Last reply Reply Quote -1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            Online Users

                                            R
                                            S
                                            D
                                            V
                                            O

                                            17
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors