fxDreema

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

    Close all trades on profit

    Questions & Answers
    4
    18
    2970
    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.
    • B
      BinaryKungfu last edited by

      Hi guys. I'd appreciate some help. I am trying to close all positions once total profit for the day has been reached, and then not trade until trading hours have been reached.

      I looked all through the forums and found this example:

      https://fxdreema.com/shared/x75d43Fwc

      But it does not work, even though I have spent hours making absolutely sure each setting was correct. It alwasy give negative values, and incorrect values based on equity-balance. Here is my version:

      https://fxdreema.com/shared/vzBR3MwMb

      Is there an easier way to simply close all trades on profit?

      Thanks so much for your help!

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

        the pink blocks are titled 'For EACH Trade', meaning, each single trade.

        One way to do it would be to check equity at the start of the day, put into variable. Now check that equity as often as you need (after each trade? each tick? etc.) and compare it to the current equity. Once it exceeds by the desired amount, turn off the trade blocks and then used a once per bar on a daily time frame to turn then back on.

        B 1 Reply Last reply Reply Quote 0
        • B
          BinaryKungfu last edited by

          Thanks! I will certainly try that, and that's what I had hoped for, a much simpler solution.

          1 Reply Last reply Reply Quote 0
          • B
            BinaryKungfu @TipsyWisdom last edited by

            @tipsywisdom Looks like that causes some weird bug where it closes each trade on the exact bar it opened on. It starts out trading normally, then with 50 bars it immediately closes each order, even though it has not reached profit target.

            https://fxdreema.com/shared/S9jTWPQae

            l'andorrà 1 Reply Last reply Reply Quote 0
            • TipsyWisdom
              TipsyWisdom last edited by

              0_1627559267465_990ef24f-0200-4a2f-a719-ca4411114a47-image.png

              the way this is built, on every tick you are seeking to close profitable trades. The logic seems right, but I would design it so that it would close any profitable trades after all conditions of another trade are met.

              get rid of once per day and use once per bar, with a daily TF selected.

              B 1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà @BinaryKungfu last edited by

                @binarykungfu Block 20 should have to be block number 1. Then current blocks 1 and 12 should be linked below block 1 (former block 20)

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                B 1 Reply Last reply Reply Quote 0
                • B
                  BinaryKungfu @l'andorrà last edited by

                  @l-andorrà Stop trading with that modification.

                  1 Reply Last reply Reply Quote 0
                  • B
                    BinaryKungfu @TipsyWisdom last edited by

                    @tipsywisdom Also starts cutting off each trade at each bar, very strange.

                    1 Reply Last reply Reply Quote 0
                    • B
                      BinaryKungfu last edited by

                      It appears as though the formula is getting the wrong numeric value. It appears to be inverted or something. Which would explain the behavior.

                      TipsyWisdom 1 Reply Last reply Reply Quote 0
                      • TipsyWisdom
                        TipsyWisdom @BinaryKungfu last edited by

                        @binarykungfu ugly comment blocks are a true savior.

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

                          oh wait, maybe it makes more sense to say, check equity at start of the day and the compare balance.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            BinaryKungfu @TipsyWisdom last edited by

                            @tipsywisdom Going to try it every possible way at this point. Need it to work. Course maybe I should just go back to coding it by hand, in some way's it's faster.

                            l'andorrà 1 Reply Last reply Reply Quote 0
                            • l'andorrà
                              l'andorrà @BinaryKungfu last edited by

                              @binarykungfu Can you please share the last version to check it out?

                              (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                              (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                              (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                BinaryKungfu @l'andorrà last edited by

                                @l-andorrà This is the only version that worked: https://fxdreema.com/shared/ZHE6UmM7b

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

                                  @binarykungfu Hello, in this link is how I check for a daily profit %, the same setup can be used for fixed pips or money. link text

                                  Hope this helps

                                  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
                                  • B
                                    BinaryKungfu last edited by

                                    Very helpful! Thanks!

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

                                      @binarykungfu Your welcome

                                      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
                                      • jstap
                                        jstap @BinaryKungfu last edited by

                                        @binarykungfu Just noticed in the 1st formula it's adding, it should be dividing.

                                        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

                                        K
                                        C
                                        E
                                        M
                                        F
                                        T
                                        M

                                        18
                                        Online

                                        146.6k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors