![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2009
Posts: 83
Thanks: 1
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,566
Thanks: 261
Thanked 1,015 times in 996 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |