![]() |
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
I've been working with NinjaTrader for the past few months and it's worked well. Today I tried to update the split data for NVDA, and nothing was downloaded. I know this is incorrect because this stock split 3:2 on 9/11/2007. I tried a different stock (SNHY) and it downloaded the correct splits. I'm using the Yahoo feed for split and dividend data. Is there something I'm missing? Thanks, Bill |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
We will look into it and post back by tomorrow.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Unfortunately YAHOO's data is inconsistent regrading NVDA: no splits nor dividends reported as request
http://finance.yahoo.com/q/hp?s=NVDA...f=2008&g=v&y=0 ... is issued. No problem on SNHY though http://finance.yahoo.com/q/hp?s=SNHY...f=2008&g=v&y=0 Sorry, there is nothing we can do about.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#4 | |
|
Junior Member
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
After seeing your query, I realized this is the same problem I ran into doing custom data grabs. I used the same query you are using, and I would not get any split data for stocks without dividends (i.e. I would get neither dividend nor split data, as is the case here). I was able to fix it by using a "monthly price" instead of "dividend only" yahoo query: http://finance.yahoo.com/q/hp?s=NVDA...f=2008&g=m&y=0 This gets all dividends and splits, but also includes monthly price data which I ignore. Is there any possibility of using this this query in NinjaTrader so I can download the data? Thanks again, Bill |
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Is there any possibility of using this this query in NinjaTrader so I can download the data?
Unfortunately not. We'll look into to see what we could get done with one of the next beta/releases.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
NinjaTrader Development
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
|
Hi wd2trade !
With the link you mention, i get only the splits, but no dividends for NVDA ? Though I get the dividends for SNHY. Kind regards, Christian
Christian
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
I believe this is the core problem with the original query. If you select "Dividends only", and the stock pays no dividends, then it returns nothing (not even splits) Thanks for looking at this, Bill |
|
|
|
|
|
|
#8 |
|
NinjaTrader Development
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
|
Ok, I understand.
We will discuss, and see, what we can do here. Thanks for bringing this up ! Kind regards, Christian
Christian
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Thanks for your suggestion. We'll add it to the list of future considerations.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Any word on this? This is a major flaw in the backtesting.
|
|
|
|
|
|
#11 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Sorry, what flaw? Split data is available, just not for NVDA since there is a problem with YAHOO's data.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#12 | ||
|
Junior Member
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
Quote:
Thanks, Bill |
||
|
|
|
|
|
#13 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Unfortunately the alternative query does not work, since there have been other limitations which rendered it unusable (don't recall which ones though).
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Uh, the flaw that everyone on this thread is talking about. This is not a trivial problem. There are many equities with this problem (NIHD is another one). You can't run a backtest on a basket of stocks without weeding these out first else the missing split info will corrupt your results dramatically.
This is not a problem with Yahoo, it's a misassumption in the query Ninjatrader uses. Yahoo does provide the split data. The problem is that right now, the user (ie me) is completely helpless as far as I can see. There's no way I can remedy this problem myself. There's no workaround. Opentick provides it also. Why not allow split data from Opentick? I can't even add the splits manually. You can get the splits from here: http://finance.yahoo.com/q/bc?t=3m&l...=&a=&c=&s=NVDA And here is the code in C++ to parse the splits from the HTML. I did my best to preserve the code formatting: Code:
struct Split
{
time_t time;
unsigned int from;
unsigned int to;
};
vector<Split> *DataManager_Yahoo::parseSplitDataFromHTML( string filepath )
{
static vector<Split> data;
data.clear();
FileBuf f;
if( !f.load(filepath) )
{
return NULL;
}
//looking for this:
//<center>Splits:none</center>
//or this:
//<center>Splits:<nobr>02-Sep-97 [3:2]</nobr>, <nobr>03-Aug-98 [2:1]</nobr>, <nobr>08-Feb-99 [2:1]</nobr>, <nobr>14-Feb-00 [2:1]</nobr>, <nobr>12-May-04 [2:1]</nobr></center>
string s(f.buf, f.size);
size_t start = s.find("<center>Splits:");
s = s.substr(start + 15);
size_t end = s.find("</center>");
s = s.substr(0, end+1);
if( s.find("none") != s.npos )
{
return &data;
}
while( s.find("<nobr>") != s.npos )
{
s.replace(s.find("<nobr>"), 6, "");
}
while( s.find("</nobr>") != s.npos )
{
s.replace(s.find("</nobr>"), 7, "");
}
while( s.find(",") != s.npos )
{
s.replace(s.find(","), 1, "");
}
while( s.find("-") != s.npos )
{
s.replace(s.find("-"), 1, " ");
}
while( s.find("[") != s.npos )
{
s.replace(s.find("["), 1, "");
}
while( s.find(":") != s.npos )
{
s.replace(s.find(":"), 1, " ");
}
//do a string.find and divide the result by 3 to get the month number.
string months = "000JanFebMarAprMayJunJulAugSepOctNovDec";
while( s.find(']') != s.npos )
{
SYSTEMTIME t;
memset(&t, 0, sizeof(SYSTEMTIME));
string month;
Split split;
strstream stream((char*)s.c_str(), s.size(), ios_base::out);
stream >> t.wDay >> month >> t.wYear >> split.to >> split.from;
if( t.wYear > 50 ) t.wYear += 1900;
else t.wYear += 2000;
t.wMonth = months.find(month) / 3;
split.time = systemTimeToTime_t(t);
split.time -= 8 * 60 * 60;
data.push_back(split);
size_t n = s.find(']');
s = s.substr(n+2);
}
return &data;
}
time_t systemTimeToTime_t(SYSTEMTIME st)
{
tm t;
memset(&t, 0, sizeof(tm));
t.tm_mon = st.wMonth-1;
t.tm_mday = st.wDay;
t.tm_year = st.wYear - 1900;
time_t ret = mktime(&t);
return ret;
}
|
|
|
|
|
|
#15 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Thanks for your suggestion. We'll add it to the list of future considerations.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is Yahoo data split adjusted? | bmaltz | Charting | 14 | 08-31-2010 12:30 PM |
| Displaying daily and weekly data from yahoo? | mazachan | Historical NinjaTrader 6.5 Beta Threads | 2 | 11-30-2007 12:51 PM |
| Minute historical data not split adjusted? | Pete S | Historical NinjaTrader 6.5 Beta Threads | 7 | 11-12-2007 04:15 PM |
| Backfill data in Daily chart (July/August data missing) | RK_trader | Charting | 4 | 09-09-2007 10:52 PM |
| edit yahoo data to fix a bad quote | bmaltz | Charting | 1 | 04-28-2007 02:47 AM |