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!
See more
See less

Partner 728x90

Collapse

OnExecutionUpdate is not called for all the order filled status change

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

    OnExecutionUpdate is not called for all the order filled status change


    Hi, My strategy placed an order with 2 contract. One contract is filled first (PartFilled) and another contract is filled later. The OnOrderUpdate is called for both PartFilled and Filled status change. But the OnExecutionUpdate is called only for PartFilled and not called when the order Filled fully. OnExecutionUpdate will not be called on Filled status change ?

    Log :

    OnOrderUpdate called for PartFilled:


    2024-02-29 11:15:36:378|2|16|ID1 : 2/29/2024 11:30:00 AM | OOU | order | 2/29/2024 11:15:36 AM | orderId='1095676484' account='XXXXXX' name='ID1$Long' orderState=PartFilled instrument='NQ 03-24' orderAction=Buy orderType='Stop Limit' limitPrice=18012.5 stopPrice=18012.5 quantity=2 tif=Gtc oco='' filled=1 averageFillPrice=18012.5 onBehalfOf='' id=11144 time='2024-02-29 11:15:36' gtd='2099-12-01' statementDate='2024-02-29'

    OnExecutionUpdate called for PartFilled:

    2024-02-29 11:15:36:379|2|16|ID1 : 2/29/2024 11:30:00 AM | OEU | execution update | 2/29/2024 11:15:36 AM | orderId='1095676484' account='XXXXXX' name='ID1$Long' orderState=PartFilled instrument='NQ 03-24' orderAction=Buy orderType='Stop Limit' limitPrice=18012.5 stopPrice=18012.5 quantity=2 tif=Gtc oco='' filled=1 averageFillPrice=18012.5 onBehalfOf='' id=11144 time='2024-02-29 11:15:36' gtd='2099-12-01' statementDate='2024-02-29'

    OnOrderUpdate called for Filled:

    2024-02-29 11:15:36:652|2|16|ID1 : 2/29/2024 11:30:00 AM | OOU | order | 2/29/2024 11:15:36 AM | orderId='1095676484' account='XXXXXX' name='ID1$Long' orderState=Filled instrument='NQ 03-24' orderAction=Buy orderType='Stop Limit' limitPrice=18012.5 stopPrice=18012.5 quantity=2 tif=Gtc oco='' filled=2 averageFillPrice=18012.5 onBehalfOf='' id=11144 time='2024-02-29 11:15:36' gtd='2099-12-01' statementDate='2024-02-29'

    No OnExecutionUpdate ​ is called when the order is Filled.​

    #2
    Hello nandhumca,

    Thank you for your post.

    What is your logic inside of OnExecutionUpdate()? Please provide a snippet. I would also like to review your diagnostic files for more information about the sequence of these events. Please send me your log and trace files from the platform. You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default. Please include "ATTN Emily C" in the subject line along with a link to this forum thread in the body of the email.

    I look forward to assisting you further.​
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X