fxDreema

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

    Unsupported filling mode (10030). XM Broker , Partially Close Block

    Bug Reports
    2
    4
    3097
    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.
    • forex-research
      forex-research last edited by forex-research

      It happen when use "partially close block" on XM Broker

      Please help.

      Thank you.

      0_1517872846517_12.png

      Forex market never sleep

      1 Reply Last reply Reply Quote 0
      • forex-research
        forex-research last edited by

        Please help me this project very important to me , l have tested on some another broker it work fine , but error happen only on XM Broker.

        Forex market never sleep

        1 Reply Last reply Reply Quote 0
        • forex-research
          forex-research last edited by forex-research

          I have already fixed the problem , Now it work fine.

          Just add this code on bool CloseTradePartial(int ticket, double lots, double deviation)

          • // filling type
            if (IsFillingTypeAllowed(symbol, SYMBOL_FILLING_FOK))
            request.type_filling = ORDER_FILLING_FOK;
            else if (IsFillingTypeAllowed(symbol, SYMBOL_FILLING_IOC))
            request.type_filling = ORDER_FILLING_IOC;
            else if (IsFillingTypeAllowed(symbol, ORDER_FILLING_RETURN)) // just in case
            request.type_filling = ORDER_FILLING_RETURN;

              int success = OrderSend(request, result);
            

          Forex market never sleep

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

            I added this into the function, I hope this will not break something else 🙂

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

            Online Users

            C
            W
            F
            N
            S
            C

            8
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors