Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wrong fill price with SubmitOrderUnmanaged Limit

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

    Wrong fill price with SubmitOrderUnmanaged Limit

    Here's my order submission:

    Code:
    entryOrder = SubmitOrderUnmanaged(1, isLong ? OrderAction.Buy : OrderAction.Sell, OrderType.Limit, quantityToTrade, 0, limitPrice, string.Empty, orderName);​
    I submit this for only 1 contract at 20,060 and it fills at 20,052...

    How is this possible with a limit order? I'm confused.
    Update... I had my overload wrong. This is the correct way and now it's working:
    Code:
    entryOrder = SubmitOrderUnmanaged(1, isLong ? OrderAction.Buy : OrderAction.Sell, OrderType.Limit, quantityToTrade, limitPrice, 0, string.Empty, orderName);
    ​
    Last edited by iantriestrading; 03-05-2025, 09:56 PM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
87 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
128 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
65 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
117 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
67 views
0 likes
Last Post PaulMohn  
Working...
X