Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X