Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - Comment from Public Forum
"It’s so nice to be working with real professionals!" - Comment from Len
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Intraday History Bars
Author Topic: Intraday History Bars (10 messages, Page 1 of 1)

jlarmee
-Interested User-
Posts: 54
Joined: Jan 12, 2006


Posted: Jul 12, 2007 10:07 AM          Msg. 1 of 10
How do these work?

We've written an application and the idea was that it would wake up every thirty minutes, request 30-minute bars of data and process the latest 30-minute bar. Specifically, we're interested in SPX.XO, the S&P index; IINA.Z, NYSE Advances and IIND.Z, NYSE Declines.

Often, what we see is that when we wake up at 9:00 AM, the lastest bar we'll get will have a timestamp of 9:30 AM.

Two questions:

Why do we get a bar that has a timestamp in the future?

Is this latest bar a complete bar? Does it have all of the data for that 30-minute period?

Thanks in advance for your help!

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 12, 2007 01:15 PM          Msg. 2 of 10
I am looking into this

jlarmee
-Interested User-
Posts: 54
Joined: Jan 12, 2006


Posted: Jul 17, 2007 01:18 PM          Msg. 3 of 10
Any thoughts on this yet?

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 17, 2007 01:39 PM          Msg. 4 of 10
About the only thing to add is an explanation of what is happening. This has not yet been fixed.

The servers are sending the current (incomplete) bar of data.

If you rerequest several times you will see that the volume of that particular bar continues to increase until the time passes the point at which that bar would become the 2nd bar returned.

jlarmee
-Interested User-
Posts: 54
Joined: Jan 12, 2006


Posted: Jul 17, 2007 04:18 PM          Msg. 5 of 10
Oh. Okay. Sounds like the best thing to do would be to throw away the bar if it has a time in the future.

JDonovan
-Interested User-
Posts: 24
Joined: Feb 11, 2007


Posted: Jul 19, 2007 06:49 AM          Msg. 6 of 10
Just sounds like the bar's timestamp is for the *end* of the bar period and not the beginning, not really that it would be a bad bar.

- Jeff

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 19, 2007 08:44 AM          Msg. 7 of 10
Jeff, you are correct. The IQ servers have always built bars timestamped at the end of the interval. However, the old servers do not send a bar until it is complete whereas the new servers are sending the incomplete bar. The data is good.
Edited by DTN_Steve_S on Jul 19, 2007 at 09:55 AM

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 19, 2007 09:55 AM          Msg. 8 of 10
OK, scratch just about everything I said in this thread.

My initial testing must have been wrong.

This is functioning the same way on both server farms and as far as I can tell, this is the way it has always functioned.

My explanation above about why you get a data bar "in the future" is correct. The data is also correct. This will not be "fixed" because it appears nothing is wrong :)

jlarmee
-Interested User-
Posts: 54
Joined: Jan 12, 2006


Posted: Jul 19, 2007 10:20 AM          Msg. 9 of 10
Okay. Just to be clear though. If I'm receiving a bar marked 9:30 at 9:01. This bar is covering the period from 9:00 - 9:01. Unless your servers have a built-in crystal ball it must be incomplete since the entire 30 minute period hasn't happened yet. If I were to receive the same 30 minute bar later in the day, it would contain different data -- complete data.

I can deal with that. I just want to be sure I'm understanding it correctly.

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jul 19, 2007 10:59 AM          Msg. 10 of 10
That is correct
 

 

Time: Sat June 15, 2024 3:23 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003