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)




"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
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 »Trying to under Interval
Author Topic: Trying to under Interval (5 messages, Page 1 of 1)

Ensotrader
-Interested User-
Posts: 6
Joined: May 4, 2015


Posted: Jul 14, 2015 02:16 PM          Msg. 1 of 5
Hi

I'm trying to understand the value to use in the iInterval field of a ReqHistoryIntervalTimeframe with iIntervalType =s
bstrSymbol = @ES#

I'm also using bstrBeginDateTime = 20150713 000000 (I've also tried 20150713 093000) and
bstrBeginFilterTime = 093000 and bstrEndFilterTime = 161500

When I use 60, I get back minute bars as expected.
When I use 1800 (30min) it works as expected,
However when I go to 3600 (1hr) I only get back bars ending with 11:00, 12:00, etc.
And when I use 24300 (the entire RTH session from 0930 to 1615) I get back a bar ending at 20:15:00, and I'm not sure where it's getting the HLOC from.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jul 14, 2015 02:37 PM          Msg. 2 of 5
Hello,

All of our intra-day bars are built from midnight, with a remained bar sent for the final bar of the day, if needed. So your 60 minute request generates the 11:00, 12:00, etc. bars you are seeing, and then your filter causes you to only see a subset of that data. To get intervals on the half hour, you would need to pull in 30 minute bars and build your 60 minute bars on the client end.

Tim

Ensotrader
-Interested User-
Posts: 6
Joined: May 4, 2015


Posted: Jul 14, 2015 03:16 PM          Msg. 3 of 5
OK, that fits with what I'm seeing.
Thanks.


Guess that means I can't get 1 bar that covers the RTH session, eh?

And since the session starts at the bottom of the hour, anything over 30mins we have to roll up from smaller bars?

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jul 14, 2015 03:18 PM          Msg. 4 of 5
Correct. I would recommend just using 1 minute bars if you have variable needs, that way the same function can work for any minute interval and the filtering mechanism will make the most sense that way as well.

Tim

Ensotrader
-Interested User-
Posts: 6
Joined: May 4, 2015


Posted: Jul 14, 2015 03:33 PM          Msg. 5 of 5
Thanks Tim.
 

 

Time: Mon May 6, 2024 10:04 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003