Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Over Fill

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

    Over Fill

    Hi,

    I am playing around with this pivot strategy however \i get rejected orders and over fills causing it to terminate.

    How would I rectify this, will I have to look at an unmanaged approach?

    Can someone help me sort this out?
    Attached Files

    #2
    mccallum28, you would need to look into and debug what exact order / orderstatus sequence experienced leads to the overfill and strategy termination - generally 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.

    So if you sent for example a close order for a position where you had a close target limit also working, you can easily run into this scenario - a better approach would then be modifying the limit exit in this case to take you flat instead of sending the 'double' order in.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      Thank you for your help , I am still left completely stumped as your answer far exceeds my programming ability. Could you have a look and point out what I need to change or dirrect me to the section in the knowledge center?

      Thanks,

      Ryan

      Comment


        #4
        Ryan, we can unfortunately not debug or modify the code for you - since this would be needed to enhance the realtime running behavior seen I would recommend to get in contact with a consultant to help working changes into the source code.

        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tim-c, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        2 views
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,772 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        31 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        945 views
        0 likes
        Last Post spwizard  
        Working...
        X