Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Unmanaged: Overfill question
Collapse
X
-
Hello pstrusi,
From the help guide:
"An overfill is categorized as when an order returns a "Filled" or "PartFilled" state after the order was already marked for cancellation. The cancel request could have been induced by an explicit CancelOrder() call, from more implicit cancellations like those that occur when another order sharing the same OCO ID is filled, or from things like order expirations."
This means that if you are attempting to cancel an order that filled, part filled, or already cancelled you will get this message, however, the order likely has filled and will update the position and execution.
If you are using the unmanaged approach you can choose to ignore overfills.
And detect these in OnOrderUpdate() with the IOrder.OrderState.
The position will update OnPositionUpdate().
-
Unmanaged: Overfill question
Hi,
Let's say that I want to ignore "Overfill event". Now imagine that after cancelling a working Buy limit order, I get an in-flight execution, so I got an Overfill event. Since I want to address by a certain logic, I need to know first this:
When in-flight execution happened, are already updated the NEW Position.MarketPosition and Position.Quantity info ?
Thanks in advanceTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, 03-12-2024, 06:12 AM
|
4 responses
31 views
0 likes
|
Last Post
by bmartz
Today, 08:02 AM
|
||
Started by Aviram Y, Today, 05:29 AM
|
4 responses
12 views
0 likes
|
Last Post
by Aviram Y
Today, 07:57 AM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
3 responses
28 views
0 likes
|
Last Post Today, 07:41 AM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Leave a comment: