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

Unmanaged: what if an order returns with any of this errors ( non rejected case )

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

    Unmanaged: what if an order returns with any of this errors ( non rejected case )

    Let's suppose that there's a successful connection going on and the Strategy submit an order, but for unknown reason it returns with any of this errors, that I understand DON'T KICK in the the handling:

    - ErrorCode.BrokerOrderError
    - ErrorCode.InvalidInstrument
    - ErrorCode.LoginFailed
    - ErrorCode.NoError
    - ErrorCode.NotConnected
    - ErrorCode.NotSupported
    - ErrorCode.Panic
    - ErrorCode.ServerConnectionIsBroken
    - ErrorCode.UnableToCancelOrder
    - ErrorCode.UnableToChangeOrder
    - ErrorCode.UnableToSubmitOrder
    - ErrorCode.UserAbort

    1. What would it happen with that order when returned to me? would it be erased ? Re-submited ? Should I do some snippet for handling them?



    2. What do these errors mean?
    - ErrorCode.NoError
    - ErrorCode.Panic

    Thanks
    Last edited by pstrusi; 10-05-2015, 11:06 AM.

    #2
    Hello pstrusi,

    Thank you for your post.

    Unless NinjaTrader receives a rejection the order will wait for the next OrderState update. So the order will stay in it's current state unless updated.

    ErrorCode's are from the brokerage connections, you would need to contact the provider for information on any error codes you receive.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    11 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X