NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 07-13-2012, 02:27 AM   #1
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 279
Thanks: 55
Thanked 7 times in 6 posts
Default on conncection loss handling

Hello,

All my strategies have set
ConnectionLossHandling = ConnectionLossHandling.KeepRunning;

But when the conditions set on options (I attach screenshot) acomplish all strategies stop.

I'm doing something wrong? How to completely avoid stopping strategies on connection loss?
Attached Images
File Type: jpg Dibujo.jpg (30.7 KB, 7 views)
Last edited by guillembm; 07-13-2012 at 02:30 AM.
guillembm is offline  
Reply With Quote
Old 07-13-2012, 02:32 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
Default

Hi guillembm, sorry I don't follow you here - the screenshot does the handling is set to KeepRunning as well, so if connectivity is restored after an interruption the strategies should continue begin enabled / running, is this not what you see on your end?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-13-2012, 03:05 AM   #3
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 279
Thanks: 55
Thanked 7 times in 6 posts
Default

No.

It happend me twice that after several short-recurring connection loss for some minutes all strategies stop.

This happens sometimes with IB
guillembm is offline  
Reply With Quote
Old 07-13-2012, 03:17 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
Default

guillembm, can you please email us your logs with an approx. timestamp where this occurred via Help >> Mail to Support so we could review?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-15-2012, 11:32 AM   #5
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 279
Thanks: 55
Thanked 7 times in 6 posts
Default

This won't be necessary.

I checked the log at the time strategies where disabled and I found this line:

/13/2012 7:49:41 AM|3|128|Strategy 'FOREX/74157ea36e7e4062914fbe9dc0fa067a' lost price connection more than 10 times in the past 5 minutes and will be disabled.
7/13/2012 7:49:41 AM|1|128|Disabling NinjaScript strategy 'FOREX/74157ea36e7e4062914fbe9dc0fa067a'

Although Handling is set to KeepRunning, strategies have been disabled. Is this correct or it may be considered a bug?

To temporaly solve this I set impossible-to-reach settings on "Number of restart attempts" while I get a more elegant solution.
guillembm is offline  
Reply With Quote
Old 07-16-2012, 04:37 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
Default

The strategies were kept running in your case, they were only disabled as your connection loss settings triggered here for the connection quality appeared to get worse.

The handling does not signify they won't be ever disabled, but just how the they react to a temporary connection loss experienced by the platform.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-16-2012, 04:41 AM   #7
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 279
Thanks: 55
Thanked 7 times in 6 posts
Default

So, increasing "Number of restart attempts" to an unreachable value should be enough to solve this.

I know this can happen. This is why i have the IB connection as primary and kinetick as secondary backup connection.
guillembm is offline  
Reply With Quote
Old 07-16-2012, 04:46 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
Default

That's correct guillembm. You can run higher #'s here to lessen the risk of seeing this happen.
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
Reply

Tags
connectionlosshandling

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
Connection Loss Handling blar58 Strategy Development 4 12-12-2011 09:47 AM
oco handling claxxical SuperDOM and other Order Entry Windows 9 11-09-2011 07:12 AM
Order Handling zerosum666 Automated Trading 5 04-06-2011 12:11 PM
Running strategies with connection loss handling set to 'recalculate' causing problem adamus Automated Trading 8 03-29-2011 03:01 AM
Handling Stop Loss Orders troy_xp Strategy Development 1 09-23-2009 05:06 AM


All times are GMT -6. The time now is 01:36 PM.