Click here to Login





How to import trading data from CSV files

Updated on 2012-01-13 04:00:11

Share |

The ASCII Import tool allows you to import one or several text/CSV files into your quotes or custom databases.

Steps:

- Select "Data" then "ASCII Import"
- Add new files by clicking on "Pick files" then selecting one or several files (use CONTROL or SHIFT to select multiple files)

If each file is associated with a unique security symbol then verify that the symbol name is correct for each one of these files. Symbol names can be found in the list control next to "Files" list.
To update a symbol name, select a file, type a new symbol name (next to "Update Symbol name" button) then click on the "Update Symbol name" button.

- Click "Next" to open the settings view
- Separator, text qualifiers, date/time types... options are available under "Settings" panel
- To add new columns, click on "Add Column" button

Example:

Here is the content of a CSV file: c:\csv\goog.csv

16/12/2011;625.96;624.32;629.32;621.47;4459300;0
15/12/2011;619.54;622.52;624;618.69;2408600;0
14/12/2011;618.07;621.85;624.32;612.49;3903700;0

The format is as follow: Date;Close;Open;High;Low;Volume;OpenInterest

Settings:

- Add 7 columns with the following settings:
Quotes -> Date
Quotes -> Close
Quotes -> Open
Quotes -> High
Quotes -> Low
Quotes -> Volume
Quotes -> OpenInt

- Set the "Separator" to ";"
- Set the "Time-frame" to "Daily"
- Set the "Date Type" to "DMY" and the "Date Separator" to "/"
- Alternatively, you can set the "Date Type" to "Custom" and the format to "[D]/[M]/[Y]"
- Click on "Automatically add new symbols" if you want this tool to add new symbols to your database
- Click on "Next" twice and verify that the data was properly parsed
- Click again on "Next" to parse the data and insert it into your historical end-of-day database

Note:

When you add that CSV file (in the first screen), the content is automatically associated with "goog" symbol. For that reason, we do not have to specify a symbol column in this example.











no reviews (Log in)







Other how-to articles




How to export trading data to a CSV file





How to import trading items from other accounts





How to generate buy/sell signals from a trading system





How to download a trading item from the Sharing Server





How to hide stock data outside of regular trading hours





How to hide a trading indicator from a particular time frame





How to create trading rules based on Put and Call volume data





How to get trading orders from a portfolio programmatically





How to download and use U.S. stocks earnings data







QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.