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,499 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

  #31 (permalink)
 steve2222 
Auckland, New Zealand
 
Experience: Beginner
Platform: Sierra Chart
Broker: AMP/CQG
Trading: Whatever moves in my timezone
Posts: 1,896 since Sep 2009
Thanks Given: 3,379
Thanks Received: 1,540


vast View Post
Hi Steve
Trade live, but I usually use limit orders.
I am unsure if it has any any effect at all as this is all that I am used to.
I would prefer it to be faster though.
Regards

Thanks Vast,

You are probably aware of this, but I read somewhere where NT/Zenfire does not hold all order types at the exchange. Instead some are held on NT and only sent to the exchange when price triggers on NT. So in these cases round trip latency could have an effect, especially if you are trading something fast like CL.

I think normal limit orders are held at the exchange/Zenfire, but if you are using ATM with say a OCO profit target and stop loss target, then I think these maybe held in NT on your computer.

I am sure I read this on futures.io (formerly BMT) somewhere.

Oh and PS: good to see the Kiwis can beat the Aussies at something - 224ms vs 260ms latency

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
23 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #32 (permalink)
 
vast's Avatar
 vast 
Australia
 
Experience: Intermediate
Platform: Ninja
Posts: 167 since Jun 2009
Thanks Given: 154
Thanks Received: 62

Now Steve we will keep the Nation rivalry out of it. I mean really you are a State of Australia anyway. lol
Interesting thoughts though on the handling of orders. It may be the case.
Was in NZ last year and had a great time. Sth Island is majestic.
Take care

Reply With Quote
  #33 (permalink)
Andrew
sea side
 
Posts: 217 since Dec 2009
Thanks Given: 86
Thanks Received: 25


Zoltran,

Agree with you 100 %
I've heard that some tweaks can be done in Windows register which can make ping speed about 30 % faster.
Keeping in mind your IT background do you know that by chance or can investigate ?

Krgds,
Andrew


zoltran View Post
Hi Guys
In my other life I'm a Network Architect, and I have designed/supported many sites in the Asian timezones from North America.
200-275ms round trip ping times between NZ and Chicago is typical. There is little that can be done to improve that.
It's not a matter of speed, it's simply the time it takes light/electrons to travel that distance thru copper or glass. ... The latency would be similar on a large dedicated circuit vs the Internet.

Who'd-a-thunk we'd be dealing with limitations in the speed of light in our day and age, eh?

So.. you are going to be at least 1 second behind the exchanges...
250ms to deliver the chart/quote data
250ms to send the order
250ms to acknowledge the order
250ms to ... whatever ....

250ms is 1/4 of a second..It doesn't take many interactions to really start to add up.
Probably not well suited to any trading styles that require sub-second interactions.


Reply With Quote
  #34 (permalink)
 zoltran 
London,Ontario,Canada
 
Experience: Intermediate
Platform: Ninja, Omnitrader
Posts: 10 since Jul 2009
Thanks Given: 4
Thanks Received: 3

I'm afraid that's a myth.
There is nothing you can tune that will make ping times better.


TCP/IP is a connection oriented protocol. A client and server will send a burst of data and then wait for the other side to confirm receipt.
This 'burst' is called a 'window' in TCP terms, and will typically vary from 17-64KBytes.
This can be a problem on high latency connection as you can end up spending a long time waiting for that receipt before sending more data.
This problem gets worse the faster the connection.

The tools you're thinking about tune how much data is sent in each window, so they may help with downloads, and perhaps when delivering historical data when you open a new chart.

But nothing can reduce the latency, other than a straighter/shorter path.
Pure physics..

Reply With Quote
  #35 (permalink)
Andrew
sea side
 
Posts: 217 since Dec 2009
Thanks Given: 86
Thanks Received: 25

Zoltran,
Thank you.
Do you know and can suggest/advise any reliable tool I'm looking for ?
Also can give your opinion about below
In
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
create
DWORD with value 1 and text "
TcpAckFrequency"

In
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters
create
DWORD with value 1 and text "
TCPNoDelay"

Is above good or bad idea ?
What do you think ?

P.s. for Windows Vista ?

Krgds,
Andrew



zoltran View Post
I'm afraid that's a myth.
There is nothing you can tune that will make ping times better.


TCP/IP is a connection oriented protocol. A client and server will send a burst of data and then wait for the other side to confirm receipt.
This 'burst' is called a 'window' in TCP terms, and will typically vary from 17-64KBytes.
This can be a problem on high latency connection as you can end up spending a long time waiting for that receipt before sending more data.
This problem gets worse the faster the connection.

The tools you're thinking about tune how much data is sent in each window, so they may help with downloads, and perhaps when delivering historical data when you open a new chart.

But nothing can reduce the latency, other than a straighter/shorter path.
Pure physics..


Reply With Quote
  #36 (permalink)
 zoltran 
London,Ontario,Canada
 
Experience: Intermediate
Platform: Ninja, Omnitrader
Posts: 10 since Jul 2009
Thanks Given: 4
Thanks Received: 3

personally,I'd leave them alone.

Tuning parms like this will only affect longer flows that transfer a lot of data, as they effectively increase the amount of data sent before the sender pauses and waits for an ack. But ..in this case, only you are setting them.. and ideally you want to see it on the server too.

Tuning cannot help latency sensitive applications...

If there was a silver bullet I'd tell you... ;-P

Reply With Quote
  #37 (permalink)
Andrew
sea side
 
Posts: 217 since Dec 2009
Thanks Given: 86
Thanks Received: 25

Zoltran,

Thank you.
Just for good orders sake...I'm not arguing with you, I'm discussing, asking for advice.
I'm heard about such prog as CFOS, but not tried that yet.
Seems that prog can reserve channel for special needs as well as special IPs.
I do not using any voice and video chats, so for example I don't need channel optimized for that.
cFos Software GmbH
Can you please advise your opinion about that (Germans usually do good and reliable things)
Also question about CPU, how I can test and in case needed fine tune that ?
All runs fast, but seems I got some "bug" there ?

Krgds,
Andrew


zoltran View Post
personally,I'd leave them alone.

Tuning parms like this will only affect longer flows that transfer a lot of data, as they effectively increase the amount of data sent before the sender pauses and waits for an ack. But ..in this case, only you are setting them.. and ideally you want to see it on the server too.

Tuning cannot help latency sensitive applications...

If there was a silver bullet I'd tell you... ;-P


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

Andrew, no matter how well tuned is your TCP stack on your PC, 95% of the latency is not under your control: the dozens of routers/links between you and the destination host.
For some specific pro trading applications and bots, some specific hardware and fine TCP/UDP tuning is done (or specific hardware/drivers are designed), and it's useful in HFT, but the guys have some direct links to the exchanges, which is not the case here...

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #39 (permalink)
Andrew
sea side
 
Posts: 217 since Dec 2009
Thanks Given: 86
Thanks Received: 25

Sam,

If all respect to you I see 2 reply from you which tell "stop do that and that".
Thank you for warning, but I'm looking for info not warnings.
+ your last reply regarding institutional softwares, datafeeds was great insight, but no any reply to questions posted on that.
I do not intend to offend you, I treat info from you very useful, but I need info, not warnings.
That is very interesting also
QUOTE
For some specific pro trading applications and bots, some specific hardware and fine TCP/UDP tuning is done (or specific hardware/drivers are designed)
UNQUOTE

Can you please provide more specific info apart common phrases.

Repeat, I do not offend you, I just want to say I need info, warnings I know on my own perfectly.

P.s. Sam are you "connected" ? I do not remember seems in Paris exists (apart from 4 other EU cities) direct transatlantic cable to US exchanges

Krgds,
Andrew


sam028 View Post
Andrew, no matter how well tuned is your TCP stack on your PC, 95% of the latency is not under your control: the dozens of routers/links between you and the destination host.
For some specific pro trading applications and bots, some specific hardware and fine TCP/UDP tuning is done (or specific hardware/drivers are designed), and it's useful in HFT, but the guys have some direct links to the exchanges, which is not the case here...


Reply With Quote
  #40 (permalink)
Andrew
sea side
 
Posts: 217 since Dec 2009
Thanks Given: 86
Thanks Received: 25


Just to day got on my email a few articles about High Frequency Trading (HFT)

posting here just as info about HFT

Breaking it Down: An Overview of High-Frequency Trading by Advanced Trading

High-Frequency Trading Shops Play the Colocation Game by Advanced Trading

Naked Access Attracts High-Frequency Traders, Gets Regulators’ Attention by Advanced Trading

and the last, but not least

http://www.wallstreetandtech.com/algorithms/showArticle.jhtml?articleID=217200203

Reply With Quote




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