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 fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,406 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
98 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
8 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
160 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
9 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment