fxDreema

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

    trim opposite lot size

    Questions & Answers
    4
    8
    276
    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.
    • N
      nahimh last edited by

      hi,
      i have a hedging strategy, were, for example, buy position is open, and a sell position is open 10 pips below the buy position, with same lot size, if buy tp is hit, i want to "trim" the sell position lot size down half. how do i do that...

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

        on trade tab, purple position closed - pink for each trade - close (partially)

        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
        • J
          JamieCisneros last edited by

          Hey. To adjust the lot size of the sell position when the buy take profit is hit, you can use the PositionGetDouble(POSITION_VOLUME) function to get the current volume of the sell position, then calculate half of it and use PositionSetDouble(POSITION_VOLUME) to update the volume accordingly. Hope I helped!

          N 1 Reply Last reply Reply Quote 0
          • N
            nahimh @nahimh last edited by

            @nahimh

            what if i had more than one sell position open. and i want one of them "trimming down"(lot size), how do i pick the one i want to trim... the furthest one away, for example...

            1 Reply Last reply Reply Quote 0
            • N
              nahimh @JamieCisneros last edited by

              @JamieCisneros
              im on mql4, but thanks anyway...

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

                @nahimh That is far more complicated. How many open trades should be considered? Will the criteria to trim a trade change (now the second one, then the fourth one, etc)? If so you will need a custom code array to get that.

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

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

                  @l-andorrà thanks for replying,

                  the criteria to trim is the furthest opposite trade gets trimmed first, until its completely closed, then then 2nd furthest, 3rd furthest, etc...

                  but it will complicated to pull it off on fxdreema..

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

                    Then definitely you will need some custom code to find that 'furthest' trade each time a new one is identified. I'm afraid there is no simple fxDreema structure doing that.

                    (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

                    D
                    V
                    O
                    J
                    B

                    14
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors