here strategy code:
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
OrderFill problem...
Collapse
X
-
Hello selnomeria,
Thanks for opening the thread.
Our help guide has the following description for over fills:
NOTE: 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.
You could use the setting above to ignore overfills, but this could be dangerous and the implications of using it should be understood.
I did not notice any CancelOrder() calls in your code or notice any OCO ID's in your error. It could be that your code is changing some IOrders and then when that order is referenced by a its entry signal for an exit, there is an inconsistent order quantity being used.
I would suggest to limit the strategy's order operations and use Print() statements and Trace Orders to debug the strategy so you can find out more about how that situation occurred and how you can prevent it.
Debugging: http://ninjatrader.com/support/forum...ead.php?t=3418
TraceOrders: http://ninjatrader.com/support/forum...ead.php?t=3627
Please let me know if I can be of further help.JimNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by smartromain, 03-13-2024, 01:42 AM
|
5 responses
92 views
0 likes
|
Last Post
by AndreiBig
Today, 06:08 AM
|
||
Started by Noerclou, Today, 04:55 AM
|
0 responses
4 views
0 likes
|
Last Post
by Noerclou
Today, 04:55 AM
|
||
Started by llanqui, Yesterday, 09:59 AM
|
2 responses
17 views
0 likes
|
Last Post
by llanqui
Today, 04:00 AM
|
||
Started by ThoriSten, Today, 03:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by ThoriSten
Today, 03:56 AM
|
||
Started by PhillT, 04-19-2024, 02:16 PM
|
3 responses
25 views
0 likes
|
Last Post
by mangel2000
Today, 03:04 AM
|
Comment