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 judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        57 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        35 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        19 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        9 views
        0 likes
        Last Post cre8able  
        Working...
        X