Latency in Ninjatrader - futures io
futures io futures trading



Latency in Ninjatrader


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one elitetradernyc with 2 posts (0 thanks)
    2. looks_two Fat Tails with 1 posts (2 thanks)
    3. looks_3 vvhg with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,740 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Latency in Ninjatrader

(login for full post details)
  #1 (permalink)
new york, ny
 
Experience: Intermediate
Platform: ninjatrader
Trading: stocks, options
 
Posts: 80 since Nov 2012
Thanks: 6 given, 4 received

Hey guys I am no expert in trading systems development, but was wondering if there was a way to test latency in NT to make sure that #1 the data is not lagging behind and also that NT is not hung up and is still monitoring the trades.

Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
111 thanks
Selling Options on Futures?
109 thanks
Rank your Futures vs Stocks trading priority
37 thanks
Want your NinjaTrader indicator created, free?
26 thanks
Bitcoin storage wallet recommendations
18 thanks
 
(login for full post details)
  #3 (permalink)
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
 
Adamus's Avatar
 
Posts: 1,085 since Dec 2010
Thanks: 471 given, 786 received


You can set up a timer to run an event and do stuff in your event.

 
Code
// in your OnStartUp():
					if (timer == null)
					{
						timer = new System.Windows.Forms.Timer();
						timer.Interval = 100;
						timer.Tick += new EventHandler(OnTimerTick);
						timer.Enabled = true;
					}
I've been thinking about the best way to approach the same problem but never settled on a solution. Part of the solution would be to monitor the quality of your internet connection somehow, since that is more likely to cause you problems than the actual price feed, assuming you have a reliable quote provider.

You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
 
vvhg's Avatar
 
Posts: 1,583 since Mar 2011
Thanks: 1,016 given, 2,816 received


elitetradernyc View Post
Hey guys I am no expert in trading systems development, but was wondering if there was a way to test latency in NT to make sure that #1 the data is not lagging behind and also that NT is not hung up and is still monitoring the trades.

Data will always be lagging, the further you are away from the exchange the more lag you will experience.
You could, however measure the lag and warn on higher than usual lag, one issue here is that your computer clock might not be accurate enough.

Regarding checking NT, you would have to monitor that from a different process, as NT will not be able to respond to any internal checking when hung up...

As @Adamus suggested, checking things (internet connection, feed updates coming in) on timer tick might be the most practical way to monitor some of the stuff...

The best thing to ensure NT stability is to only have well coded indicators/strategies in NT (running or not).

vvhg

Hic Rhodos, hic salta.
Reply With Quote
 
(login for full post details)
  #5 (permalink)
new york, ny
 
Experience: Intermediate
Platform: ninjatrader
Trading: stocks, options
 
Posts: 80 since Nov 2012
Thanks: 6 given, 4 received

Cool, thanks for the advice, yes I'm only really concerned with serious lags, since I've got a swing trading system, so say like 20 mins late, that sort of thing.

Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,731 received


elitetradernyc View Post
Cool, thanks for the advice, yes I'm only really concerned with serious lags, since I've got a swing trading system, so say like 20 mins late, that sort of thing.

You will not get serious lags, if you use proper indicators and strategies. For swing trading you should be able to trade thousands of instruments simultaneously without getting any lag.

Just make sure that you have a real-time data feed.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Latency in Ninjatrader


Last Updated on April 4, 2013


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts