Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lost connection on Strategy

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

    Lost connection on Strategy

    If I'm running a strategy that has live orders (Take Profit and Stop Loss) and it loses connection and then resumes, the platform seems to resume upon reconnect.

    What if one of those orders are triggered while the connection is lost? Will the strategy receive the OnOrderUpdate upon reconnect and resume normally? At what point does the strategy shut down?

    Thanks
    Rich

    #2
    Hi Rich,

    There are settings for strategy connection loss available under Tools > Options > Strategies > NinjaScript tab. You can keep running, recalculate, or stop. If the strategy keeps running and the connection is restored, it will receive the fill event for the order and continue.

    Custom connection loss handling could be coded using this:


    If the strategy is restarted at all, then it's considered a new instance, and it will follow handling detailed here, depending on the settings of the strategy, and historical strategy position. Order comparisons are made using the new historical instance of the strategy with the prior, actual one:
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    666 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X