NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-08-2009, 10:33 AM   #1
shodson
Member
 
Join Date: May 2009
Posts: 83
Thanks: 1
Thanked 0 times in 0 posts
Default 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.

http://www.ninjatrader-support.com/H...nnectionStatus
shodson is offline  
Reply With Quote
Old 08-10-2009, 07:07 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,566
Thanks: 261
Thanked 1,015 times in 996 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MBTrading Disconnect JamesF Automated Trading 5 06-09-2009 11:47 AM
Auto Connect/Disconnect heyligerb Automated Trading 0 05-20-2009 06:13 AM
Recovering chart/strategy setup after NT crash molecool Strategy Development 5 04-08-2009 12:45 PM
recovering position to DOM StockMaster Miscellaneous Support 1 04-12-2006 01:50 AM
NT Recovering overnight positions that are Simulated scjohn Miscellaneous Support 4 08-22-2005 01:47 AM


All times are GMT -6. The time now is 08:00 AM.