Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaTrader Crashes on unmanaged stop order submission

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

    NinjaTrader Crashes on unmanaged stop order submission

    Hi
    I have a strategy that has been working well for months and now is crashing on an Unhandled exception every time its submits a stop order. The Error its getting that causes the crash is,

    HTML Code:
    2021-09-23 18:01:00:308|1|16|NinjaScript strategy *************  Strategy/243828464' submitting order
    2021-09-23 18:01:00:332|1|32|Order='846b3a2b1b454f908e25896e4 eb12232/********************' Name='StopLossLong' New state='Submitted' Instrument='ES 12-21' Action='Sell' Limit price=0 Stop price=4438 Quantity=1 Type='Stop Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2021-09-23 18:01:00:347|1|32|Order='1226044234/DionPouncilOUP3620210922001' Name='StopLossLong' New state='Accepted' Instrument='ES 12-21' Action='Sell' Limit price=0 Stop price=4438 Quantity=1 Type='Stop Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2021-09-23 18:01:00:557|1|16|Error occured when sending the data to Signal System An error occurred while sending the request.
    2021-09-23 18:01:00:560|0|4|Unhandled exception: An error occurred while sending the request..
    Then ninjatrader will not start as NinjaTrader.Vendor.dll is locked in the old crashed process. I have to restart the computer, delete the NinjaTrader.Vendor.dll and restart NT.


    If you look at the trace file the error is
    HTML Code:
    2021-09-23 18:01:00:347 (DP321) Cbi.Account.OrderUpdateCallback: realOrderState=Accepted oldOrderId='846b3a2b1b454f908e25896e4eb12232' orderId='1226044234' account='Account#****' name='StopLossLong' orderState=Accepted instrument='ES 12-21' orderAction=Sell limitPrice=0 stopPrice=4438 quantity=1 orderType='Stop Market' filled=0 averageFillPrice=0 time='2021-09-23 18:01:00' statementDate='2021-09-23' error=NoError comment='' nr=-1
    2021-09-23 18:01:00:559 *************** unhandled exception trapped ***************
    2021-09-23 18:01:00:559 An error occurred while sending the request.
    2021-09-23 18:01:00:559 The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
    2021-09-23 18:01:00:560 System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationExcep tion: The remote certificate is invalid according to the validation procedure.
    The account is a OneUP rithmic account is this an error something to do with their order handling?

    Attached Files

    #2
    Ignore the above. Have found the problem - a different add-on was causing the error.

    Problem Solved

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X