Click here to Login

                                                   How to export intraday data


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];

System.IO.File.WriteAllText(path + "\\" + sym.Name + ".txt", builder.ToString());

And the result is empty document
thanks for the help

2015-01-21 01:22:31



You are getting "1 second" intraday data.
For one-minute data, you should use:
IntradayQuotes quotes = Quotes.GetIntradayQuotes(sym.Name, 60);

Sie Ching Han
2015-01-21 13:30:17


Thanks its work now, but then I found out the time is not in 24 hour format
so there is 1pm and 1am become 1:00
how to make it 24 hour clock whats the syntax?

Thanks so much

2015-01-22 02:06:03


You need to change the data format in the script.

MMM/dd/yyyy/ HH:mm instead of MMM/dd/yyyy/ hh:mm

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Export Indicators Data - Custom Time Frame
Export Indicators Data with Filtering and Column Labels Support
Export Indicators Data
5-Minute Historical Intraday Data for Forex, Indices and Futures/...
Intraday Data for US Stocks

How-to Lessons
How to export trading data to a CSV file
How to speed up watchlist and screener plug-ins when working with...
How to download and use U.S. stocks earnings data
How to hide stock data outside of regular trading hours
How to download Portfolio123 data into QuantShare

Related Forum Threads
how to download Intraday data for NSE Nifty - S&P CNX Nifty
How to export historical data for a list of symbols
How to export to metastock ascii, 10 or 11 Format
Intraday data
Intraday data for Indices (^DJI, ^DJT, ^OEX etc...)

Blog Posts
6 ways to download free intraday and tick data for the U.S. stock...
6 places to download historical intraday Forex quotes data for fr...
How to Backtest an Intraday Stock Trading System with EOD Ranking
6 New Ways to Download Free Intraday Data for the U.S. Stock Mark...
Day Trading: A trading system that combines intraday and EOD data

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2020
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.