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

new entry order immediately in CancelPending state in a live account

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

    new entry order immediately in CancelPending state in a live account

    Hi,
    a client had an odd occurrence where a strategy placing two entry orders had one rejected.

    2021-03-29 07:14:12:179 (My Continuum) Cbi.Account.OrderUpdateCallback: realOrderState=Rejected orderId='c380526097464c28aafdb04ffe3d2122' account='xxxdisguisedxxx' name='SE2_Level' orderState=Rejected instrument='ES 06-21' orderAction=SellShort limitPrice=3947.5 stopPrice=0 quantity=1 orderType='Limit' filled=0 averageFillPrice=0 time='2021-03-29 07:14:13' statementDate='2021-03-29' error=UnableToSubmitOrder comment='Order 'c380526097464c28aafdb04ffe3d2122' can't be submitted: order status is CancelPending.' nr=-1

    All other entry orders placed earlier or at the same time were fine, such as seen below.

    2021-03-29 07:14:12:162 (My Continuum) Cbi.Account.Submit0: realOrderState=Initialized isPendingSubmit=False orderId='5c3088bb94dd48b3b34b990569750de5' account='xxxdisguisedxxx' name='SE1_Level' orderState=CancelPending instrument='ES 06-21' orderAction=SellShort orderType='Limit' limitPrice=3947.5 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=2361 time='2021-03-29 07:14:13' gtd='2099-12-01' statementDate='2021-03-29'

    I have log and trace files of this incident if it would be helpful.

    I'm wondering how a new order (the orderId does not exist earlier in the logs) can be immediately in CancelPending, or why an order is "UnableToSubmitOrder". Thanks!

    saltminer

    #2
    Hello saltminer,

    Thank you for your reply.

    The second example you've noted there is also in a cancelPending state:

    2021-03-29 07:14:12:162 (My Continuum) Cbi.Account.Submit0: realOrderState=Initialized isPendingSubmit=False orderId='5c3088bb94dd48b3b34b990569750de5' account='xxxdisguisedxxx' name='SE1_Level' orderState=CancelPending instrument='ES 06-21' orderAction=SellShort orderType='Limit' limitPrice=3947.5 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=2361 time='2021-03-29 07:14:13' gtd='2099-12-01' statementDate='2021-03-29'

    Does the strategy use the Managed or Unmanaged approach?

    Please send me the log and trace files so that I may look into what occurred. You can email these into our scriptingsupport [at] ninjatrader [dot] com email. Please reference the following ticket number in the subject of the email: 3036266 ATTN Kate W., and please put a link to this post in the body as well.

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    601 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    22 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    16 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Started by agclub, 04-21-2024, 08:57 PM
    3 responses
    17 views
    0 likes
    Last Post TradingLoss  
    Working...
    X