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)




"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"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 feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"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
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 »Open, High, Low, Volume, Bid, BidSize, Ask, AskSize are all reset to zero outside trading hours
Author Topic: Open, High, Low, Volume, Bid, BidSize, Ask, AskSize are all reset to zero outside trading hours (5 messages, Page 1 of 1)

markzielinski
-Interested User-
Posts: 3
Joined: Apr 22, 2018


Posted: Apr 22, 2018 12:38 PM          Msg. 1 of 5
Hi,

It seems that outside of normal trading hours the open, high, low, bid, ask and volume are all typically reset to zero. Are you open to changing this behavior to keep the last values from the most recent trading day?

I check for this within my code by making sure the value is > 0 before updating it so I can continue to show what these last values were which will be the same values typically seen in most trading platforms. This works for me in most situations where the trading platform was live during the day and left up, but doesn't work when a user starts the trading platform on a non-trading day or outside normal trading hours.

If you really need to keep this behavior for some reason, how about adding a PreviousDayOpen, PreviousDayHigh, PreviousDayLow, PreviousDayVolume, PreviousBid, PreviousBidSize, PreviousAsk, PreviousAskSize which are all set when it resets so that these values can persist. Without these values it looks like a data problem with my trading platform when all these values are shown as zeros while other trading platforms show the most recent values from the most recent trading day.

Mark

bigjake
-Interested User-
Posts: 11
Joined: Jan 7, 2018

Life is all smiles


Posted: Apr 25, 2018 12:17 PM          Msg. 2 of 5
Isn't this information available with HDT/HDX lookup requests?

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


Posted: Apr 25, 2018 01:43 PM          Msg. 3 of 5
It is, and a good catch that he could retrieve the data in that way.

The problem with not clearing those fields is that if a last exists, uncleared, and it doesn't trade right away in the morning, someone can confuse yesterday's data with today's. We keep the last price in the close field of the level one data, but we don't have previous open, high, low, etc yet.

Bid and ask prices are cleared by the exchange usually, so we could not keep those I do not think.

Tim

markzielinski
-Interested User-
Posts: 3
Joined: Apr 22, 2018


Posted: Apr 25, 2018 05:25 PM          Msg. 4 of 5
That makes sense and I do retrieve historical data when displaying a chart of course. However I don't use historical data for market watch lists for example which is where I frequently see this happen on non-trading days and where it is probably the most visible with this situation. In this case I am just retrieving the current values taken from the most recent update/summary messages and updating those as new update/summary messages come in, which would be similar to streaming quotes. Having the ability to retrieve the previous trading day's open, high, low, close and so on would be ideal as I could simply reference those if the values for the current day haven't been set yet or if it's a non-trading day.

As part of the initialization of the watch list, I could retrieve the last trading day's historical data for each symbol in the watch list but I see several potential issues with this. For one, it would be really inefficient to retrieve a whole day's worth of data for each symbol that the user is watching to simply process all of that data to figure out what the open, high, low, close etc was for that day. Plus, the exchange sometimes picks a different open/close value and these won't always exactly match the first and last tick of the day with the data that we see. It's often close but not always the same, so being able to use the values directly provided by the exchange would be better here for sure.

markzielinski
-Interested User-
Posts: 3
Joined: Apr 22, 2018


Posted: Apr 25, 2018 05:55 PM          Msg. 5 of 5
I looked at HDT/HDX in more detail and saw these are providing the daily values back instead of ticks so this could actually work great for what I need since it should be fairly quick with multiple symbols. Thanks for the suggestion!
 

 

Time: Tue April 23, 2024 11:46 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003