Tradery Forum Index Tradery
Trading tools and community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How Tradery Database handle Yahoo data errors?

 
Post new topic   Reply to topic    Tradery Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
vovay45



Joined: 09 Jan 2008
Posts: 356
Location: San Francisco

PostPosted: Sat Jun 26, 2010 6:15 pm    Post subject: How Tradery Database handle Yahoo data errors? Reply with quote

How Tradery Database handles Yahoo data errors?
Like this:
BBBY
Quote:
May 7, 2010 43.04 44.12 26.50 42.91 6,904,400 42.91


VY
Back to top
View user's profile Send private message
koolaidluke



Joined: 25 May 2009
Posts: 54

PostPosted: Mon Jul 12, 2010 6:00 pm    Post subject: Reply with quote

Hi VY - At first I thought this must be the flash crash, but that was May 6. I checked QuoteMedia and Google. They both had the same numbers as Yahoo.

I've noticed that some trading algorithms are very much affected by the flash crash, which is ironic because, trading algorithms seem to be what caused the flash crash in the first place. (It might be a good idea to write an API object thingie that disallows trading on May 6, 2010, since that day was such an outlier.)

Anyway, I didn't check MSN, but if Yahoo, Google and QM all say the same thing I'd tend to think it probably wasn't a mistake.

Here's an example: VSH has 3 bars of data!

But to answer your question of how Tradery handles Yahoo mistakes, I'd say it doesn't. At least not until Yahoo fixes them itself and the Tradery database is refreshed. I know Adrian will say that there are 70,000 tickers that have to updated for this site, so error checking is not so easy a thing.
Back to top
View user's profile Send private message
vovay45



Joined: 09 Jan 2008
Posts: 356
Location: San Francisco

PostPosted: Tue Jul 13, 2010 10:48 am    Post subject: Reply with quote

Do you think this type of data provider error acceptable for Tadery and should not be filtered in database ?



VY
Back to top
View user's profile Send private message
koolaidluke



Joined: 25 May 2009
Posts: 54

PostPosted: Tue Jul 13, 2010 3:22 pm    Post subject: Reply with quote

Hi VY - I'm not disagreeing with you. I'm not saying that database error correction wouldn't be a good thing or that Yahoo doesn't make mistakes. I'm just saying that for the particular case you've chosen, I can find no independent corroboration that a mistake actually occurred. It looks screwy, I'll grant you that. But that doesn't prove it's actually wrong. Here's the same chart from StockCharts.com. StockCharts usually does a good job at checking their data and you can see their chart has the same characteristic.

But there are other examples (like VSH) where an error has undeniably occurred. If you just fix the simple ones, like missing bars, zero volume or volume that is misadjusted for a split, that would be a huge improvement. But I'm sure even that wouldn't be so easy to do.

Back to top
View user's profile Send private message
vovay45



Joined: 09 Jan 2008
Posts: 356
Location: San Francisco

PostPosted: Wed Jul 14, 2010 10:44 pm    Post subject: Reply with quote

If we will not fix data errors than systems designed to catch such data errors will be the leaders in backtesting.
Look at 1 min bar chart I posted before.
Was this trades possible in real or virtual trading?


VY
Back to top
View user's profile Send private message
koolaidluke



Joined: 25 May 2009
Posts: 54

PostPosted: Fri Jul 16, 2010 12:58 pm    Post subject: Reply with quote

Hi VY - This is the sorta thing I do when I don't like the data:

Code:

void run() {

   Series x = 1*lowSeries();
   if (getSymbol()=="BBBY") {
      Date d(2010,5,7);
      Index n = size();
      for (j=0;j<n;j++)
         if (date(j)==d) {
            x[j] = 42.50;      /* or whatever */
            break;
         }

   }
   .
   .
   .

From what I can tell, when you use the a statement like "x = closeSeries()", a pointer is assigned to x, but when you say "x = 1*closeSeries()", a new series is created with its own space in memory that you can edit at will. x is now your "corrected" array and you would use that in place of the array you'd use normally.

Yeah, I know. It's a hassle.

BTW, the code is not error-checked.
Back to top
View user's profile Send private message
koolaidluke



Joined: 25 May 2009
Posts: 54

PostPosted: Tue Jul 20, 2010 12:16 am    Post subject: Reply with quote

As luck would have it, just as I was defending the Tradery database, somehow, tonight it's became corrupted. Many symbol histories have been severely truncated, leaving just a few weeks of data. This is the type of error that I can't compensate for with cute little programming tricks. I hope this is only temporary.
Back to top
View user's profile Send private message
adrian
Site Admin


Joined: 13 Jul 2004
Posts: 965

PostPosted: Sun Jul 25, 2010 6:32 pm    Post subject: Reply with quote

All data should now be available. Let me know if you see any other problems.

Thanks,

Adrian
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Tradery Forum Index -> Miscellaneous All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group