fxDreema

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

    Using fixed amount for partial close

    Questions & Answers
    3
    10
    1753
    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
      TraderEA6 last edited by

      Hi,

      Currently I am using pips away from open price for partial close and it is working well. However, I also like to add an "OR" option if price hit a certain amount for partial close. I use the below and it doesnt work. Can anyone advise?
      Project Link[https://fxdreema.com/shared/wEa2KUHS](link url)

      Current Setup;

      0_1588691296934_Screenshot 2020-05-05 at 23.08.06.png

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

        Connect block 65 directly to block 49 (orange dot).

        (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.

        1 Reply Last reply Reply Quote 0
        • T
          TraderEA6 last edited by

          Hi @l-andorrà ,

          I tried your recommended but it doesn't work. I tried to understand the logic.

          Base on tutorial explanation - my diagram state that "For each trade" it will do block 48 (if condition not true) YELLOW DOT (OR clause) then do Block 65

          OR Is it that blue block cannot flow to pink block?

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

            Yes, the blue block can be connected to pink blocks. If you connect the blue block to the yellow output of block 48, it will not be checked until block 48 has been checked. Connecting it to block 49 makes sure it will be checked independently of block 48. Can you confirm there were cases in whick more than $100 was in profit AND price was not as many pips away as you specified AND the trade was not closed?

            Because if this is true, then you should create a thread on the Bugs forum explaining the problem with the 'close partially' block. The admin always takes a look at it.

            (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.

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

              @l-andorrà Thanks. I will replicate the setup and post in the BUGS section.

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @TraderEA6 last edited by

                @traderea6 I think this is working just fine. Technically. Its just that 1 ATR is very small distance, and 100 money is relatively big distance with 0.1 lots.

                Note that "once per trade/order" will activate just once per trade, as it says, no matter of what happens above that block.

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                  Here's a handy trick for troubleshooting: use visual tester and vertical lines. I draw light pink line for each "pips away" pass and blue line for each "money away" pass.
                  0_1588853291915_e9da8991-d355-4b8f-aecf-8685162ceff7-image.png

                  https://fxdreema.com/shared/OLfevPZB

                  I used 5 times ATR and 3 money for the inputs, so there's a chance for them both to activate.

                  Aaand as it turns out, the money condition is active most of the time, and pips away condition activates only when ATR is very low:
                  0_1588853387667_64e9633d-3dae-4c6f-915e-84a2242c5673-image.png

                  Need small help? Tag me in your post
                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                  1 Reply Last reply Reply Quote 0
                  • T
                    TraderEA6 last edited by

                    I will try this. Thanks

                    1 Reply Last reply Reply Quote 0
                    • T
                      TraderEA6 last edited by

                      UPDATE @l-andorrà @roar - The reason whe trade doesnt get executed is because of the lot size. I am using 1% of balance base on SL and my lot size will be 0.57 or 0.29 etc. The type of sizing create error when the EA attempt to close 50% volume. I tested again with standard lot size such as 0.2 etc and it works.

                      Thank you

                      roar 1 Reply Last reply Reply Quote 1
                      • roar
                        roar @TraderEA6 last edited by roar

                        @traderea6 impressive detective work 😉

                        This lot sizing bug has been reported already. You can fix with custom mql code.

                        To close 50% or nearest applicable part of a position, put this code in a "fixed" amount field:
                        MathFloor(PositionGetDouble(POSITION_VOLUME)*0.5 *100)/100
                        (this works for instruments that use 0.01 as minimum lot)
                        0_1588866716132_6f1622ec-6492-4800-a895-a8cef9adbe89-image.png

                        Need small help? Tag me in your post
                        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                        Online Users

                        M
                        2
                        M
                        M
                        N
                        B
                        A
                        B
                        S
                        E
                        W
                        M

                        22
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors