NexusFi: Find Your Edge


Home Menu

 





How do you handle connection loss?


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one nourozi with 7 posts (1 thanks)
    2. looks_two SMCJB with 5 posts (14 thanks)
    3. looks_3 Big Mike with 2 posts (0 thanks)
    4. looks_4 dstrader with 1 posts (4 thanks)
      Best Posters
    1. looks_one dstrader with 4 thanks per post
    2. looks_two SMCJB with 2.8 thanks per post
    3. looks_3 artemiso with 1 thanks per post
    4. looks_4 nourozi with 0.1 thanks per post
    1. trending_up 9,242 views
    2. thumb_up 20 thanks given
    3. group 8 followers
    1. forum 18 posts
    2. attach_file 1 attachments




 
Search this Thread

How do you handle connection loss?

  #11 (permalink)
nourozi
New Zealand
 
Posts: 92 since Jun 2013
Thanks Given: 52
Thanks Received: 30


SMCJB View Post
I find pingplotter very helpful in diagnosing connection issues. It's also a useful tool to have when trying to discuss connection issues with your provider. It's a tool that allows you to see the results of a traceroute query graphically. I set it to my server address and have it trace/ping every 10 seconds. I then can see min/max/average ping times and packet loss for every hop between me and my server.
https://www.pingplotter.com/



I also use multiping. It's not as detailed as pingplotter but it allows you to ping multiple different address's at the same time and see the ping result and packet loss for the final destination only. I normally set this up so that it's continually pinging a) the first node on my provider's network b) my server in Chicago and c) The ICE WebICE gateway.
https://www.multiping.com/



Thats great, so if I am using a VPS, trading ZB and using Continuum feed with Ninjatrader Brokerage, what should I be pinging and how do I get their ping addresses? (I'm not good with networking). Also, should I just use MultiPing? Not sure if I need to use both applications?

In the event of a connection loss, am I correct in thinking it will either be a:

1. loss of connection to the internet
2. loss of connection to the data providers server (continuum)

so to diagnose the specific issue, I would need to ping two addresses:

1. A normal website such as google.com
2. Data providers server

Or am I missing something?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
 
  #12 (permalink)
 dstrader 
Chicago, USA
 
Experience: Advanced
Platform: TS, NT, TOS, SSE, IRT
Trading: ES, currency futures, options, stocks
Posts: 195 since Dec 2010
Thanks Given: 330
Thanks Received: 275

I use a very simple application in my trading computers that will immediately notify me if there is a disconnection if I'm in front of the computer. As I run some strategies overnight, it will create a log if there was any disconnection. It's called Net Uptime Monitor, and I believe it's just $10 bucks. I'm sure there must have something more sophisticated out there, but I've been using this little app for years. I should say I rarely have a disconnection, maybe a couple of times a year if much. I never had to call the broker. I also have a wireless internet connection for back up just in case (Verizon LTE Mifi Hotspot - an older model of this one Verizon Jetpack MiFi 6620L | Verizon Wireless ).

Attached Thumbnails
Click image for larger version

Name:	2015-02-11_2310.png
Views:	209
Size:	14.6 KB
ID:	174696  
Reply With Quote
Thanked by:
  #13 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT and Stellar
Broker: Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,049 since Dec 2013
Thanks Given: 4,388
Thanks Received: 10,207


Let me start by saying I'm a Trader not an IT guy. I discovered pingplotter in my search for a better understanding of my connection. There are others out there who understand this subject much better than I.

nourozi View Post
Thats great, so if I am using a VPS, trading ZB and using Continuum feed with Ninjatrader Brokerage, what should I be pinging and how do I get their ping addresses? (I'm not good with networking). Also, should I just use MultiPing? Not sure if I need to use both applications?

There are two separate issues here. First your connection to your VPS and secondly your VPS's connection to the data supplier.

Do you connect to your VPS using a VPN or just straight over the internet? Your VPS has an address, called an IP address, which is of the form of four 1-3 digit numbers all seperated by decimal points. Something like 208.100.50.221 (which is actually the IP address of https://nexusfi.com/). If you connect using a VPN the IP address is probably displayed right there on the VPN software. If you don't connect using a VPN you may need to look at your RDP or VNC settings to find it. Or ask your broker.

Input that number/IP Address into PingPlotter and off you go. Pingplotter will then show you every step in the internet connection from your home in NZ to your VPS in Chicago. It will also show you how long it takes internet traffic to make everyone of those steps and if there is any packet loss, what the packet loss is for every step. When you lose connection, several of these will go red, show an error in ping time and 100% packet loss. The first location where this is visible is where the problem is. I would recommend reading some of the pingplotter resources available at https://www.pingplotter.com/gsg/index.html. If you look at the chart they show in " Finding the source - Part 2" there is very clearly a problem (but not a complete disconnection) starting at hop 9.



In reality I find when I have a problem it's even more obvious than the chart implies.

if you want to test the stability of your connection to the dataprovider you would need to do exactly the same thing, but this time pingplotter would need to be located on your VPS and pointed at the data provider.



nourozi View Post
In the event of a connection loss, am I correct in thinking it will either be a:

1. loss of connection to the internet
2. loss of connection to the data providers server (continuum)

Yes they are two different issues. Note that "loss of connection to the internet" is technically not correct. It would be "loss of your connection to your VPS". You might still be connected to the internet, it could just be that there is an issue in teh internet connecting to your VPS.


nourozi View Post
so to diagnose the specific issue, I would need to ping two addresses:

1. A normal website such as google.com
2. Data providers server

Or am I missing something?

Yes you could do that (see below), but pingplotter will give you a more specific diagnosis.

The Free, but Crude Method.
On a windows machine open a "Command" window. On Windows XP and W7 box's you do this by clicking the start menu and then "Run" and then in the box type "cmd". In the black box that opens type
 
Code
tracert www.bigmiketrading.com
or even
 
Code
tracert 208.100.50.221
which should give the same result - specifically it will show you how internet traffic goes from your computer to the address requested (in this case the bigmike forums). This is actually what pingplotter is doing but it is repeating it continually and plotting the charts graphically.

Next type
 
Code
ping 208.100.50.221
This will show you what the total time to reach the destination is, but not what route it takes.

Finally if you type
 
Code
ping 208.100.50.221 -t
This will send a continous stream of ping requests to the destination. As soon as one is resolved it sends another. When you start getting "host unreachable" or "timed out" errors - you have a connection problem.

Now if you open two of these windows. Set one to ping continuously the first node on your network (obtained by using the tracert command) and set the other to ping continuously your target destination.
If both go down, then your internet connection is down.
If your first node continues responding, but your destination ping goes down, you know that your internet connection is still up, BUT there is a problem on the internet that is preventing you reaching your destination.

Now back to trading...

Reply With Quote
  #14 (permalink)
nourozi
New Zealand
 
Posts: 92 since Jun 2013
Thanks Given: 52
Thanks Received: 30

Very helpful, thanks.

I have a fully automated strategy running on my VPS so the issue is not the connection from my local computer to my VPS. The issue is the connection from my VPS to my data provider or to the internet I think.

Am I correct in assuming the following is the process/route in which I receive data from the exchange?

1) Data is sent to the data provider from the Exchange
2) Data provider sends data to the Brokerage
3) Brokerage sends data to my trading platform

or something different?

Reply With Quote
  #15 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT and Stellar
Broker: Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,049 since Dec 2013
Thanks Given: 4,388
Thanks Received: 10,207


nourozi View Post
Very helpful, thanks.

I have a fully automated strategy running on my VPS so the issue is not the connection from my local computer to my VPS. The issue is the connection from my VPS to my data provider or to the internet I think.

Am I correct in assuming the following is the process/route in which I receive data from the exchange?

1) Data is sent to the data provider from the Exchange
2) Data provider sends data to the Brokerage
3) Brokerage sends data to my trading platform

or something different?

I believe that's correct but not 100% sure. It's not something I'm very versed in as my broker (Advantage Futures) connect directly to the raw exchange feeds so there is no data provider in the middle. I use TT's Xtrader and it's very easy to tell whether the issue is my servers connection to the Gateway's or the Gateway's feeds from the exchange. In reality any issues between my server and the exchange normally means a rather significant failure, and not something that automatically corrects itself a few seconds later. Obviously this will vary greatly depending upon your individual setup.

Reply With Quote
  #16 (permalink)
nourozi
New Zealand
 
Posts: 92 since Jun 2013
Thanks Given: 52
Thanks Received: 30

I guess I just need to know the source of the data and ping that? In the event of a disconnection, the fault will be somewhere between the source and my VPS.

How do I find the IP address of the source of the data?

Reply With Quote
  #17 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426


nourozi View Post
I guess I just need to know the source of the data and ping that? In the event of a disconnection, the fault will be somewhere between the source and my VPS.

How do I find the IP address of the source of the data?

If you're using >= Windows 7 the Network section of the resource Monitor is an easy look, there's a button for it in the Performance section of the Task Manager. That way you can see what's actually being used.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
  #18 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT and Stellar
Broker: Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,049 since Dec 2013
Thanks Given: 4,388
Thanks Received: 10,207


nourozi View Post
I guess I just need to know the source of the data and ping that? In the event of a disconnection, the fault will be somewhere between the source and my VPS.

How do I find the IP address of the source of the data?

Sorry can't help you there - it will be software specific. With TT I can click on something called Guardian and immediately see all the Gateways and their IP address's.

If the problem is the datafeed doesn't your software register/record/log that it lost connection? With TT I can clearly see when/if I lose my connection to the price server, or if the price server goes down, both of which would obviously mean I lose prices.

Reply With Quote
  #19 (permalink)
 artemiso 
New York, NY
 
Experience: Beginner
Platform: Vanguard 401k
Broker: Yahoo Finance
Trading: Mutual funds
Posts: 1,152 since Jul 2012
Thanks Given: 784
Thanks Received: 2,685


nourozi View Post
I guess I just need to know the source of the data and ping that? In the event of a disconnection, the fault will be somewhere between the source and my VPS.

How do I find the IP address of the source of the data?

I think 208.48.16.214 should suffice.

Reply With Quote
Thanked by:




Last Updated on February 13, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts