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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          55 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          142 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          160 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          96 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          276 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X