fxDreema

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

    Request/suggestion for "Close partially (group of trades)" block

    Questions & Answers
    4
    8
    1308
    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.
    • C
      catequil last edited by

      Hi, fxDreema,
      I would like to request/suggest, if not too much of a trouble, the creation of a block "Close partially (group of trades)".
      The idea is that it will be a more precise partial close (with regard to the total position) than partially closing each trade and the rounding effects the current process has.
      Example:
      we are long
      0.01
      0.01
      0.01
      or total long of 0.03 lots.

      If we need to close 67% of that position and we use "close (partially)" block, the EA will close:
      0.01 of 0.01
      0.01 of 0.01
      0.01 of 0.01
      i.e. all the position will be closed out, instead of the needed 0.02 lots out of 0.03.

      The new block could start closing out positions one by one starting from the oldest/ or newest/ or most profitable/ or least profitable until it reaches the desired level.

      Thanks in advance

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

        This is crearly a great challenge for miro and/or roar :D.

        (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
          tradermax 0 last edited by

          @roar @fxdreema
          This is a good question. Please share how to do this.

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

            @tradermax-0

            Here: https://fxdreema.com/shared/ZVBBYk4M

            1st loop: calculate the total lot size of all trades
            2nd loop: start closing trades by some order, profitable first in the example
            3rd loop calculates the current total size -> when current size is less than 67% of the original, break the 2nd loop and everything stops

            It's just a rough example, not very optimized, in fact I'm almost ashamed of that garbage algorithm lol 😄

            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

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

              @roar Special thanks bro, You responded so fast. You are a gem. I am total newbie as far as coding is concerned but I am aware of this strategy to close orders and felt this one needed some heavy techie guidance. Let's see how it works.I hope the person who posted this will share the the code flow with us, as per your guidance.

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

                Just curious. Why all those blocks on the 'On Timer' Tab? I never use that tab because I don't know what it it for 😞

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

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

                  @l-andorrà
                  On Timer is similar to On Tick, the code just runs on every given time interval, instead of on every tick.
                  You can put the same blocks to On Tick as well.

                  I used On Timer with 1 second setting to test the logic. It was late NY market session and there were no ticks happening, so On Timer was just a quicker way to test.

                  You can adjust the On Timer interval from the Project options
                  0_1565116033325_2e9cd484-4989-4de9-806d-67157afdb60e-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
                  • l'andorrà
                    l'andorrà last edited by

                    Although I am not a programmer, a friend of mine who is told me once that no EA can work without a tick arriving to the platform. Is 'On timer' emulating/simulating ticks in a way they are considered as such by the EA, maybe? Just curious 😉

                    (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
                    • 1 / 1
                    • First post
                      Last post

                    Online Users

                    A
                    L
                    O
                    S
                    E
                    J
                    D
                    M
                    X
                    K
                    E
                    D

                    26
                    Online

                    146.6k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors