Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated Strategy... need help in OCO orders

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

    Automated Strategy... need help in OCO orders

    I have had some communication problems lately... and I have been dropping out right after my strategy places a manual buy order... So, I am stuck and can't get the sell order to the broker in time... Thus, I thought that an OCO order might just be the right thing... So the way it works is the "OCO" value must be the same... and the order of submission determines how it works... buy first then sell..

    SubmitOrder(0, OrderAction.Buy, OrderType.Limit, 100, 10.00, 0, "Tiedtogether", "Manual");

    SubmitOrder(0, OrderAction.Sell, OrderType.Limit, 100, 10.10, 0, "Tiedtogether", "Manual");

    So in my example above... I submit a buy order and I tie it with "Tiedtogether" and the broker will then know the next order will be based on the buy order completing...

    Is my thought process right so far?... What happens if the buy order doesn't fill all the way... It's all or none.... right?

    Thank you for your response .... I await your answers.

    #2
    theotterway, your though process is correct - if partial fills come in for one leg of the bracket this would be reflected in the other part so you would see PendingChange requests as the qty of the order is amended to reflect to received executions. Once the complete Filled state is seen, the other OCO order is cancelled then.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X