NexusFi: Find Your Edge


Home Menu

 





Dealing latency with ZenFire & NT


Discussion in Brokers

Updated
      Top Posters
    1. looks_one Andrew with 23 posts (0 thanks)
    2. looks_two sam028 with 11 posts (10 thanks)
    3. looks_3 steve2222 with 8 posts (0 thanks)
    4. looks_4 NickA with 6 posts (4 thanks)
      Best Posters
    1. looks_one sam028 with 0.9 thanks per post
    2. looks_two FBJS with 0.8 thanks per post
    3. looks_3 NickA with 0.7 thanks per post
    4. looks_4 zoltran with 0.6 thanks per post
    1. trending_up 44,868 views
    2. thumb_up 39 thanks given
    3. group 26 followers
    1. forum 111 posts
    2. attach_file 1 attachments




 
Search this Thread

Dealing latency with ZenFire & NT

  #91 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


sam028 View Post
TCPnodelay won't help a lot, it's only useful for very small packets (see Nagle's algorithm - Wikipedia, the free encyclopedia).
TcpAckFrequency allow acknowledging immediatly all incoming TCP segments, in all cases (instead of waiting a bit for another packet).
I don't think both parameters could help, it may only "look" faster.
All these can be changed in the registry.

Is it advisable to change these settings Sam?

Recently IQFeed Support mentioned that TcpAckFrequency could make (in theory) the data feed quicker, but that it was not advisable to change this since it could negatively impact other programs. Is that a valid concern in your view? (My trading pc is fully for trading only, so no email programs or browsers that also send packages)

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #92 (permalink)
 Futures Operator 
New York, NY
 
Experience: Intermediate
Platform: Sierra Chart, thinkorswim
Broker: Amp-Rithmic/TT, IB
Trading: CL, GC, NQ
Posts: 601 since Nov 2010
Thanks Given: 2,039
Thanks Received: 258

Even if these would help a little, I think traders may wish to optimize and take what little benefit they can get. Any advice or direction to resources on how to safely/correctly modify these for better speed would be great.

Reply With Quote
  #93 (permalink)
 NetTecture 
Szczecin
 
Experience: Intermediate
Platform: Ninja, writing own now
Posts: 211 since Mar 2010


It hsould not be the correct way to change those settings. PRoblem is - it makes only sense when your base latency already is high. THAT Is the problem. Basically changing this is like changing the seatbeld when driving a car way faster than one should - yes, it helps, but it ignores the core problem.

To get the latency down, move the trading setup closer to the exchange. Depending what you trade it should be trivial to rent a VPS ina data center (or a physical machine) within 5ms of the exchange or your upstraem provider. Heck, I am 1ms behind my broker at CME and I am NOT colocating with the exchange.

Reply With Quote
  #94 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Jura View Post
Is it advisable to change these settings Sam?

Recently IQFeed Support mentioned that TcpAckFrequency could make (in theory) the data feed quicker, but that it was not advisable to change this since it could negatively impact other programs. Is that a valid concern in your view? (My trading pc is fully for trading only, so no email programs or browsers that also send packages)

Their is no big risks to try it, so you can give it a shot.
But do not expect any miracle .

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #95 (permalink)
 
grahamg's Avatar
 grahamg   is a Vendor
 
Posts: 115 since Dec 2012
Thanks Given: 59
Thanks Received: 108

I have read this thread and should I conclude that:

Not much can be done to solve latency from your trading computer to exchange with todays high speed communications networks. Distance to your data provider and order server is the decider.

VPS is only beneficial latency wise for automated systems - Remoting in would add at least the same delay to the broker plus probably more overhead.


I am about to start live scalping Eurex futures from Australia and I might want to look into my delay factor first as the FGBL can move quite quickly.

I am using Ninjatrader with AMP Futures broker and CQG feed to trade Eurex.

Can anyone help me out with:

- Where does Ninjatrader route my orders too? Chicago AMP Futures or a CQG Server located... where? (one for NT support maybe?)


Ninjatrader
The NinjaTrader/CQG integration project centered on connectivity to the CQG Global network for order routing and real time futures and index data. For reasons I can’t disclose it was decided that NinjaTrader would supply the historical data server technology. Our servers are co-located at CQG’s Chicago’s data center and provides tick, minute and daily bars for last, bid and ask.

For further clarification:

Order Routing – NinjaTrader Client -> CQG Global Network -> Exchange (and back of course)
Real time futures and index data - Exchange -> CQG Global Network -> NinjaTrader Client
Historical futures and index data - Exchange -> CQG Global Network -> NinjaTrader Data Server -> NinjaTrader Client

- Would I be best hiring a VPS close to Eurex exchange or to CQG (wherever that is)?


- Should I move countries?

Worst case scenario I will just have to experience how my fills go.. but with ping time of >200ms to chicago I am looking at ~500ms disadvantage at best when trying to catch the edge.

From CQG - Contains IPs of the servers to Ping and is found via google so sharing link here:

https://www.cqg.com/Docs/CQGNETTechSpec.pdf

Vendor - PriceSquawk Audible Market Technology
Follow me on Twitter Reply With Quote
Thanked by:
  #96 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

I don't know if this would be a good idea. Anyone?

[How To] Lower your Ping/Latency in Online Games!!! - YouTube

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #97 (permalink)
 NickA 
London
 
Experience: None
Platform: MC & Ninja mainly
Posts: 135 since Jan 2010
Thanks Given: 5
Thanks Received: 50


grahamg View Post
I have read this thread and should I conclude that:

Not much can be done to solve latency from your trading computer to exchange with todays high speed communications networks. Distance to your data provider and order server is the decider.

VPS is only beneficial latency wise for automated systems - Remoting in would add at least the same delay to the broker plus probably more overhead.

Snip

Your conclusions are pretty much correct. The latency is broken into two broad parts (assuming you have DSL/ADSL or cable type technology). The local loop will be copper and latency will be determined by how close you are to the exchange. This typically is 20-40 milliseconds. Cable will be potentially better as cable companies run fibre to a distribution box in the street usually. Maybe10 ms.

The second part is directly proportional to distance, the speed of light in glass fibre is the cap. That is going to account for the rest, not much you can do about that without relocating or picking a closer exchange/broker.

Reply With Quote
Thanked by:
  #98 (permalink)
 NickA 
London
 
Experience: None
Platform: MC & Ninja mainly
Posts: 135 since Jan 2010
Thanks Given: 5
Thanks Received: 50


Zondor View Post
I don't know if this would be a good idea. Anyone?

[How To] Lower your Ping/Latency in Online Games!!! - YouTube

There was a discussion earlier in the thread about TCP/IP tweaks. The key ones (IMHO) are the last 2 lines in the description. Some of these tweak everything whether needed or not! I am pretty sure that Zenfire (and presuambly most other data providers) use UDP for their data feed so that part won't benefit at all from these tweaks. You might shave a chunk of time off placing orders and receiving confirmation, actually it can be a good chunk of time.

Reply With Quote
  #99 (permalink)
 
Daytrader999's Avatar
 Daytrader999 
Ilsede, Germany
Site Moderator
 
Experience: Advanced
Platform: NinjaTrader 8
Broker: Rithmic / CQG / Ninja Trader Brokerage
Trading: NQ
Posts: 1,525 since Sep 2011
Thanks Given: 2,067
Thanks Received: 2,316

@grahamg:

Since this topic can be discussed quite controversial, you may also want to take a look at this thread:

Reply With Quote
Thanked by:
  #100 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


About what @grahamg wrote about CQG, and their servers locations, I had some interesting information coming from one of my VPS users.
This user is using the CQG API directly to code his own system, and as he will trade CME contracts, I create his VPS on one our servers in Chicago, which seems to be the logical thing to do.

What he told was "the ping to CQG order routing server from the VPS is <1ms but somehow when I send orders using the API it takes almost 100 millisecond before I get response that order is in exchange...", and also "... they are quite slow (data comes from New York)...".
I do not have any CQG account based myself, and can't do deep tests for this, but this kind of latency is really not good at all, compared to what I usually see with my other VPS customers (few ms with Rithmic for example, same with CTS).

If should be interesting to have more details on CQG infrastructure, but I know it's not easy to get detailed information on this.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on June 16, 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