Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PC crush - Strategy order object

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

    PC crush - Strategy order object

    Hello,

    Trying to figure out how to handle a specific issue. Let's say a strategy submits an order, and waits for close order command. Then PC crashes. Once I restart PC, all my order objects are null, and my exit command will be ignored since I am checking that order is not null to allow closing the position.

    How can I repopulate an order object with the order that was earlier opened and still active?

    Thanks,
    redduke
    Last edited by RedDuke; 04-14-2014, 09:30 AM.

    #2
    Hello RedDuke,

    Thank you for your post.

    Unfortunately, it is not possible to pick up the order from the previous instance of the strategy (the instance before the PC crash).

    Comment


      #3
      Is manually closing the position, and then reopening it via strategy is the only option?

      Looks like I would need to pay commission twice.

      Also, what about the weekend or if i disconnect and reconnect TWS , will the order object also become null?

      Thanks

      Comment


        #4
        Hello RedDuke,

        Thank you for your response.

        That is correct, the strategy will not be able to pick up the order after the strategy is disabled via a disconnect, shutting down or restarting NinjaTrader.

        Comment


          #5
          Did anyone figured out on how to do it maybe? A handling for a crash or disconnect is essential for auto trading. The markets are closed during the weekend, and there must be some way to be able to keep track of positions during this time.

          Would be great if someone can share their experiences.

          P.S. Patrick thanks for your input.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          67 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          59 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X