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 AaronKoRn, Today, 09:49 PM
        0 responses
        3 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Today, 08:42 PM
        0 responses
        8 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        9 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,975 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Working...
        X