|
Sie Ching Han
2015-01-20 11:57:01
|
|
I have intraday 1 minutes data and try to export it out into TXT format
however, i fail to do that
here is what I try from the forum discussion
string path = "c:\\database intraday";
Symbol[] symbols = Symbols.GetSymbols();
for(int i=0;i < symbols.Length;i++)
{
Symbol sym = symbols[i];
IntradayQuotes quotes = Quotes.GetIntradayQuotes(sym.Name, 1);
System.Text.StringBuilder builder = new System.Text.StringBuilder("");
for(int j=0;j < quotes.Close.Length;j++)
{
string line = quotes.Date[j].ToString("MMM/dd/yyyy/ hh:mm") + "," + quotes.Open[j] + "," + quotes.High[j] + "," + quotes.Low[j] + "," + quotes.Close[j] + "," + quotes.Volume[j];
builder.AppendLine(line);
}
System.IO.File.WriteAllText(path + "\\" + sym.Name + ".txt", builder.ToString());
}
And the result is empty document
thanks for the help
|
|