Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OrderFill problem...

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

    OrderFill problem...

    Hi. can anyone tell me what could be cause for orderfill problem wit this strategy?



    here strategy code:


    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    152 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    305 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    176 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X