Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Group Multi-Instruments orders into one

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Group Multi-Instruments orders into one

    Is it possible to Group Multi-Instruments orders into one?
    I also want the orders to be filled or kill. (FOK)
    I do not want partial fill.
    I want BOTH orders to be accepted, not one, and nothing less.

    Basically, I want BOTH EURUSD and GBPUSD to be filled at the quantity specified,
    or not to place the orders at all.

    Code:
    if (
    // conditions are true...
    )
    {
                    EnterShort(0,Quantity,"EURUSD");
                    EnterLong(1,Quantity,"GBPUSD");
    }

    #2
    Hello johnnybegoode,

    Thank you for the post.

    The following links are publicly available.

    There is no way of knowing that you are getting partially filled for a given order until you detect a partial fill in OnOrderUpdate. You will know a partial fill has occurred if order.OrderState == OrderState.PartFilled. There is no guarantee you will be filled at the specified quantity at a specified price. If you do get a partial fill on an order, it is best to cancel the remaining order and then either add to or close out the existing position received from the partial fill.

    Below is a relevant reference sample where OnOrderUpdate and OnExecution update is used to submit protective orders. You can use this to get a feel for how to use OnOrderUpdate properly.



    Please let me know if I can assist further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X