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)




"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"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
"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
"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
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
"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
"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
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
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 »NEW IQFEED FORUMS »Data Questions »Noob question regarding tick level bid and ask statistics
Author Topic: Noob question regarding tick level bid and ask statistics (3 messages, Page 1 of 1)

Hoopster
-Interested User-
Posts: 2
Joined: Oct 4, 2019


Posted: Oct 5, 2019 08:51 AM          Msg. 1 of 3
Hi everyone, I'm new to this forum though a long term IQFeed customer.

I collect historical tick data from IQFeed via QCollector Expert For DTN. I want to determine and analyze the mix of at-bid vs at-ask trades. I determine a midpoint, ie ((ask-bid)/2)+bid, then any assign the trade as at-ask if the trade price is above the midpoint, and vice versa.

Even if I collect only a vigorous up-trend with minimal pull-backs, I get a higher number of at-bids than at-asks.

Should I not see more asks than bids during an up-trend, and vice versa?

Hoopster
-Interested User-
Posts: 2
Joined: Oct 4, 2019


Posted: Oct 5, 2019 03:33 PM          Msg. 2 of 3
I spotted "Trade Aggressor" (?!?) in my reading and found out it is exactly what I was trying to determine by comparing tick price to the reported bid and ask in the trade.

Great to know, but I have about 5 yrs of accumulated tick data for back-testing.

Can anyone tell me why comparing the price to the bid and ask in a tick record does not seem to work?

DTN_Gary_Stephen
-DTN Guru-
Posts: 394
Joined: Jul 3, 2019


Posted: Oct 14, 2019 10:07 AM          Msg. 3 of 3
I can give you a little information about the Trade Aggressor field. As of Protocol 6.1, which was released about a month ago, the Trade Aggressor is explicitly reported. The field is available in both watch and historical requests, but the watch command has to be customized to do so via a http://www.iqfeed.net/dev/api/docs/DynamicFieldsets.cfm]Dynamic Fieldset. This will be available for the ICE and CME exchanges going forward; there is relatively little historical data as the exchanges only recently started reporting this.

To your other question:

Quote: Can anyone tell me why comparing the price to the bid and ask in a tick record does not seem to work?


There have been entire academic studies devoted to that question, such as:

https://pdfs.semanticscholar.org/b9b9/257d161bb6fee796dd9a1b9bb725abf3b7b3.pdf

https://quant.stackexchange.com/questions/14512/algorithm-to-detect-the-aggressor-side-of-a-trade

I can't really advise you on how to design an algorithm, so I hope the above links are helpful. I can answer any questions you may have about the data the API returns.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Wed April 24, 2024 1:23 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003