fxDreema

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

    Partial Close - Just a set number of Lots. Help.

    Questions & Answers
    2
    4
    299
    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.
    • P
      ptt196 last edited by ptt196

      My previous question was probably too complicated. Trying to simplify.

      If I bought 4.0 lots and then 6.0 lots (total = 10.0 lots)...

      I'd then like to sell 1.0, 2.0, 3.0, 4.0 lots as the price moves up.

      How can I do this? Close (partial) doesn't do what I want. Thanks.

      https://fxdreema.com/shared/M9sbvVjre

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

        @ptt196 partial close doesnt really work on mt4, it just closes the whole position and then opens a smaller one (= double commissions). Mt5 would do it properly.

        It might be easier to split your trades into smaller ones in the first place - buy 1, 1, 1, 1 and 6 lots. Then you can simply close those 1 lot trades. Also, you can differentiate between the 1 lot and 6 lot trades by setting some group numbers.
        Just 1 framework, there's other solutions too...

        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

        P 1 Reply Last reply Reply Quote 0
        • P
          ptt196 last edited by

          Is it "close (partially)" on MT5 that does it properly?
          i.e. all you have to do is put in the amount and it closes the proper amount of trades?

          I saw that no US Brokers use MT5.

          Maybe a solution is just to loop a sale of 1.0 lot "x" many times.

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

            @roar Yes. This worked.

            In my real (much larger) program I go into lots 1 by 1. But then need to sell 4, or 5 at a time.

            So I used the "For Each Trade" and Close (partially) with 1.0 lot fixed. Just run the loop however many times I needed. Seems to work well. Thanks for your help.

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

            Online Users

            V

            9
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors