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)

"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"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'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"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.
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"You have an excellent feed. Very few spikes for Spot Forex." - 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 »IQFeed Developer »IQFeed Developer Support »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)

-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?

-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?

-Interested User-
Posts: 52
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]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:

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.

Gary Stephen
DTN IQFeed Implementation Support Specialist


Time: Wed April 8, 2020 11:09 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003