Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy has sent cancel requests, attempted to close the position and terminated its

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

    Strategy has sent cancel requests, attempted to close the position and terminated its

    good morning,

    I had an issue this morning during a very short disconnect, NT tried to modify an order, it blew up the strategy. I get the following log message

    Strategy has sent cancel requests, attempted to close the position and terminated itself

    So the first and last parts I agree with, but the middle part was not at all a desired outcome (I can understand for fast strategies it could make sense, but I also run very slow strategies where this is not helpful).

    What should I do so that when an strategy blows up due to an error message on modifying orders, it will cancel all outstanding orders, but not issue any orders to close its position ?

    #2
    curmudgeon, that process is part of the realtime error handling used per default, this can be set as well to take no action if you prefer- http://www.ninjatrader.com/support/h...htsub=realtime
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      Do you have the copy of the default OnOrderUpdate function that includes the three steps (cancel orders, input lots of market orders, shutdown) so that I could implement it with commenting out the input market orders ?

      If not, is the only status that one would need to worry about OrderState.Rejected or are there other order status types that would include an error message ?

      Thanks

      Comment


        #4
        Unfortunately could not offer a dedicated sample here for managing this state, the error handling specifically is targeted for the rejected state only.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by iantriestrading, 04-16-2025, 01:39 PM
        7 responses
        37 views
        0 likes
        Last Post iantriestrading  
        Started by iantriestrading, 04-19-2025, 09:43 AM
        2 responses
        30 views
        0 likes
        Last Post iantriestrading  
        Started by dRun22, Today, 09:43 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by HandsFreeTrader, 06-28-2023, 07:38 AM
        2 responses
        188 views
        0 likes
        Last Post uchauhan  
        Started by NISNOS69, 04-18-2025, 02:20 PM
        4 responses
        46 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X