fxDreema

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

    Partial Close Error with odd numbers

    Questions & Answers
    2
    8
    2260
    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.
    • E
      eklonsousa last edited by

      Hi, guys!

      I'm working with partial closes and some instrument like XTIUSD have 0.50 as minimum lote size in the broker that i'm using.
      But this case applies to another instrument as well.

      My lote size is calculated by % related to stop loss size. If I have any order with odd number, and my setup is to close 50% it will no work.
      Ex: 0.11. When It reached the partial point it gives me an error and don't do nothing.

      Is there any way to "round" the parcial close? In case of the correct amount was not possible, give the Ea some alternative to close to most near of that amount. For 0.11, close 0.05 or 0.06.

      Any ideas? thanks

      1 Reply Last reply Reply Quote 0
      • J
        johnle1024 last edited by

        I open 2 trades and close one.

        E 1 Reply Last reply Reply Quote 0
        • E
          eklonsousa @johnle1024 last edited by

          @johnle1024 Hi!

          Could you please show how you do it? Two Buy/sell blocks?

          1 Reply Last reply Reply Quote 0
          • J
            johnle1024 last edited by

            Hi,

            Here you go!

            https://fxdreema.com/shared/lUDHESZec

            It should look like this when done:
            0_1556593199172_Annotation 2019-04-29 225750.jpg

            E 1 Reply Last reply Reply Quote 0
            • E
              eklonsousa @johnle1024 last edited by

              @johnle1024 Hi!
              Thank you for your contribution.

              J 1 Reply Last reply Reply Quote 0
              • J
                johnle1024 @eklonsousa last edited by

                @eklonsousa Np, I got some questions answered and also there is a ton of info in the forums... just making sure I do my part.

                1 Reply Last reply Reply Quote 0
                • E
                  eklonsousa last edited by

                  Hi!

                  Any insights? How to round partial lot to close?

                  1 Reply Last reply Reply Quote 0
                  • E
                    eklonsousa last edited by

                    Hi Guys!

                    Any ideas how to divide by minimum broker lot size the pending order lot size before it open and then do the math to set the correct amount?

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

                    Online Users

                    B
                    T
                    S
                    O
                    K

                    19
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors