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 lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        10 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        46 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        10 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X