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)




"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
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"You have an excellent product !!!!!!" - Comment from Arely
"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 have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
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 »Minute data period volume slightly off?
Author Topic: Minute data period volume slightly off? (4 messages, Page 1 of 1)

ropester
-Interested User-
Posts: 10
Joined: Feb 24, 2008


Posted: Mar 30, 2008 01:40 PM          Msg. 1 of 4
Hi, i'm just running through the minute trades on a few options - virtually all the data is coming through fine but the data seems to be slightly off..
For example, RIMM 115 April Calls ( RUL DU ) shows 8202 as the total volume for friday..

If i run through every minute in the data and add up the period volume i end up with 7869

Am i missing something?

thanks
Si

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


Posted: Mar 31, 2008 10:24 AM          Msg. 2 of 4
You will almost never be able to add up the incremental volumes on minute data (nor tick data) and have it equal to the cumulative volume throughout the day. This is because the exchange occasionally will send a volume correction message that adjusts cumulative volume but does translate to a trade and as such, it does not show up in historical data.

mootsie
-Interested User-
Posts: 1
Joined: Apr 2, 2008


Posted: Apr 2, 2008 04:12 AM          Msg. 3 of 4
With this in mind, what is the most accurate way to calculate metrics such as VWAP which depend on price and volume? Based on the incremental volume for which we have an actual price, or by attempting to extrapolate an estimated price for the missing cumulative volume?

It seems that method 1 underestimates volume and method 2 has inaccurate price, but both methods are less than perfect. I wonder what is the "normal" way?

I have observed Ninja Trader, for instance, attempts to account for the missing volume by assigning the current tick price to the difference in cumulative volumes. This seems to be method 2 but with a poor estimation algorithm.

Is there a better methodology?

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


Posted: Apr 2, 2008 10:23 AM          Msg. 4 of 4
This is basicly going to be a "personal preference" decision.

I can tell you that IQFeed currently calculates VWAP "on-the-fly" using the following calculation:

new VWAP = ((previous VWAP * PrevTotal Volume) + (Last Price * Incremental Volume)) / new Total Volume
 

 

Time: Sat May 18, 2024 12:08 AM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003