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 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
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"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.
"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
"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
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"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
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
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 »Tick trade side
Author Topic: Tick trade side (7 messages, Page 1 of 1)

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Apr 26, 2016 02:09 AM          Msg. 1 of 7
Hello, is there any possibility to get the tick trade side - I mean how to know it was buy or sell?
Because Multicharts could detect this side pretty well when it's used with iqfeed, how is it possible?

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


Posted: Apr 26, 2016 08:14 AM          Msg. 2 of 7
We do not provide a flag for this. Each trade message does come through with the bid and ask size immediately preceding the trade. You can then discern this flag, if the trade was at 100.00 and the bid was 100.00, while the ask was at 100.25, the ask clearly had to move for the trade to have occurred.

In short, if last price == bid price, the trade occurred on the bid, else it occurred on the ask.

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Apr 27, 2016 03:14 AM          Msg. 3 of 7
What protocol version should I use to obtain previous trade size and how did you call the names of fields for that?

Is it still possible to deal with trades which comes exactly at the middle between ask/bid?
For example, lets say SPY bid = 202.51 and ask=202.52 and there are many trades with price = 202.515.

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


Posted: Apr 27, 2016 08:11 AM          Msg. 4 of 7
Every protocol has this data. The fields are the Bid, Ask, and whichever Last price you are looking at. I

Choosing your fieldsets is a process detailed here. http://www.iqfeed.net/dev/api/docs/DynamicFieldsets.cfm

On futures markets, I don't believe this should happen. On equities, no I do not have a way to guarantee in that circumstance.

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Apr 27, 2016 02:56 PM          Msg. 5 of 7
I know about bid and ask PRICE, but you told about bid and ask SIZE and that confused me because it's different things.
So, on just shares like nyse/nasdaq there is no way to know the true trade side?
That way you descrbed not working for SPY and others because SPY, for example, do have 30% of trades in the middle (prices like 202.515 like in example I told earlier).
But then how did Multicharts could know the trade side with such precision?

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


Posted: Apr 27, 2016 03:06 PM          Msg. 6 of 7
Sorry for the confusion, there are probably using some algorithim to deal with those scenarios, but what it is I do not know, you would need to ask them to be sure.

Tim

Ryan
-Interested User-
Posts: 14
Joined: May 17, 2012


Posted: Aug 10, 2016 03:00 PM          Msg. 7 of 7
If you really want to re-construct buyers v sellers at the tick level, start here:

https://www.acsu.buffalo.edu/~keechung/MGF743/Readings/Inferring%20trade%20direction%20from%20intraday%20data.pdf

and then search for "Lee and Ready (1991) Algorithm" for more recent follow-up studies.
 

 

Time: Thu May 2, 2024 10:06 AM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003