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

Getting error 'UnableToSubmitOrder' for the 2nd time

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

    Getting error 'UnableToSubmitOrder' for the 2nd time

    Hello Everone

    For the second consecutive day I'm receiving the following error when my strategy tries to submit an order from my NinjaScript:

    **NT** Strategy 'MODELO/fbbb145e2f964ed6817f9d0b65930226' submitted an order that generated the following error 'UnableToSubmitOrder'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

    Can someone please explain further? Follow my questions:

    1- Does this mean the Broker's Order Server is down? Could it be an ISP connection problem at the moment?

    2- Is there a way I can check Connection status right before I attempt to execute an order on my ninja scrip strategy.

    3- Is there a way the strategy is not terminated and it doesn't try to close the position, instead it just keeps running?

    Thank you

    Rodrigo

    #2
    Hello Rodrigo,

    Thank you for your post.

    1. This can be due to a disconnect from the brokerage technology. We would need to review your Log and Trace files to investigate why this occurred.

    2. To check connection status you would need to use the OnConnectionStatus() method: http://www.ninjatrader.com/support/h...tionstatus.htm

    3. You can set RealtimeErrorHandling to TakeNoAction, however this will have serious consequences and you would need to handle upcoming error scenarios then in your code...like reissuing the rejected order after x mins etc. Information on RealTimeErrorHandling can be found at the following link: http://www.ninjatrader.com/support/h...orhandling.htm

    If this is truly due to a disconnect, the behavior of the strategy is handled by the options under Tools > Options > Strategies > NinjaScript > On connection loss. Information on these settings can be found at the following link: http://www.ninjatrader.com/support/h...tegies_tab.htm

    If you would like us to review your Log and Trace files please send a note to platformsupport[at]ninjatrader[dot]com with this thread in the subject line: http://www.ninjatrader.com/support/f...ad.php?t=67665
    You can do this by going to the Control Center-> Help-> Mail to Support.

    I look forward to your response.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Gerik, Today, 09:40 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by RookieTrader, Today, 09:37 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by alifarahani, Today, 09:40 AM
    0 responses
    5 views
    0 likes
    Last Post alifarahani  
    Started by KennyK, 05-29-2017, 02:02 AM
    3 responses
    1,284 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by AttiM, 02-14-2024, 05:20 PM
    11 responses
    186 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X