How to import trading data from CSV files
Updated on 2012-01-13 04:00:11
|
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.

|