Therefore, I am exploring IgnoreOverfill, so that I can handle the situation on my own code. The problem is that looking through the log and the literature, I do not see how to trap the message of an Overfill. The only information seems to be, what the, obviously named, instruction does, and a dire warning to be careful. Where is the information on how my code will know that an Overfill has occurred, even as it ignores same?
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
How do we trap an Overfill?
Collapse
X
-
How do we trap an Overfill?
After receiving more Overfills that do not make sense: there was an Exit order to exit a short in one account, and an Entry order for a long in another, completely different account. They triggered at the same time, by the same condition, and I got an Overfill message.
Therefore, I am exploring IgnoreOverfill, so that I can handle the situation on my own code. The problem is that looking through the log and the literature, I do not see how to trap the message of an Overfill. The only information seems to be, what the, obviously named, instruction does, and a dire warning to be careful. Where is the information on how my code will know that an Overfill has occurred, even as it ignores same?Tags: None
-
Originally posted by NinjaTrader_ChelseaB View PostHi koganam,
If there has been an overfill on an order the IOrder handle will have an Overfill object that will be true.
For example:
private IOrder myOrder = null;
myOrder = EnterLongLimit();
if (myOrder.Overfill == true)
// overfill detected
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHi koganam,
If there has been an overfill on an order the IOrder handle will have an Overfill object that will be true.
For example:
private IOrder myOrder = null;
myOrder = EnterLongLimit();
if (myOrder.Overfill == true)
// overfill detected
I was given a great example in this forum:
protected override void OnOrderUpdate(IOrder o)
{
if(o.OverFill)
Print("Over fill");
}
NOTE: I'm sorry I've post this message after your quick answer :-)Last edited by pstrusi; 09-29-2015, 02:38 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pechtri, 06-22-2023, 02:31 AM
|
9 responses
122 views
0 likes
|
Last Post Today, 02:31 PM | ||
Started by frankthearm, 04-18-2024, 09:08 AM
|
16 responses
66 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by habeebft, Today, 01:18 PM
|
1 response
5 views
0 likes
|
Last Post Today, 02:03 PM | ||
Started by benmarkal, Today, 12:52 PM
|
2 responses
14 views
0 likes
|
Last Post
by benmarkal
Today, 02:00 PM
|
||
Started by f.saeidi, Today, 01:38 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:45 PM |
Comment