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 Perr0Grande, Today, 07:09 AM
    3 responses
    29 views
    0 likes
    Last Post MiCe1999  
    Started by SheriDi, 04-25-2025, 02:24 PM
    3 responses
    49 views
    0 likes
    Last Post SheriDi
    by SheriDi
     
    Started by aligator, Today, 11:32 AM
    2 responses
    16 views
    0 likes
    Last Post aligator  
    Started by tradeologist, Today, 02:16 PM
    2 responses
    13 views
    0 likes
    Last Post tradeologist  
    Started by kawansantos, Today, 10:29 AM
    2 responses
    14 views
    0 likes
    Last Post kawansantos  
    Working...
    X