How to import your own data from a CSV file
Updated
You can chart your own history: a CSV or Excel export from a broker, a data vendor or your own tools. The file becomes a symbol in your watchlist, and Pine scripts, indicators and the strategy tester work on it like any other market.
Try it in Zeal TerminalSteps
- Watchlist. Open the watchlist from the rail. The import icon (an arrow into a tray) is in the header of the watchlist, beside the magnifier.
- Watchlist search. Click the import icon beside the magnifier, choose a file and confirm. It appears in this list under its file name.
- Symbol search. Click the new row to chart it. Scripts and the strategy tester then work on your file.
What the file needs
- A
.csv,.tsv,.xlsor.xlsxfile, up to 100 MB. - A date column and at least a close price.
- Open, high, low and volume are used when they are there.
If the columns are not recognised
Column names are matched automatically. When that fails, or picks the wrong column, open the column mapping in the import dialog and say which column is which. The preview table updates as you choose. The dialog reports an error if the file cannot be read.
Where your data goes
The file is read on your machine and kept in this browser. It is not a live market: there are no new ticks, it is history only.
Frequently asked questions
Can I backtest on my own data? Yes. Add a strategy to the chart and open the strategy tester as usual.
What if my file has no volume column? That is fine. Only the date and close price are required.
Related guides
This guide is replayed by an automated test on every release, so the steps here match the app as it is today.