Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Recovering from a disconnect

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

    Recovering from a disconnect

    I was running an automated strategy and when I came back to look at it later I noticed it didn't make the trades it should have made. I then checked the logs and saw that at some point in time it lost it's connection with ZenFire and eventually reconnected. However, this stopped the strategy. How can I automatically reconnect, or have the strategy resume up reconnecting? I see I can monitor the connection status with OnConnectionStatus() but I'm not sure how to recover from a disconnect.


    #2
    shodson, on a connection loss the strategy would be halted and would resume when the connection is reestablished, but this implies you make sure the strategy vs account position are still in proper sync. Unfortunately you can't manually start / stop a strategy from within NinjaScript.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X