How to Import Candle Charts from TradingView websites?

How to Import Candle Charts from TradingView websites?
Atom
5/1/2023


StockSharp_Trump trail -8.png


💥S#.Data provides functionality that supports automatic downloading of historical market data from many data sources. But sometimes websites do not provide an API to make the process automatically. Fortunately, in addition to downloading you can import market data from CSV files directly.

💥TradingView is a charting platform and social network used by many traders and investors worldwide to spot opportunities across global markets. The major feature of the website - various historical dataset - that you can download as a csv file for further usage (e.g. - backtesting, analyzing).



💥For the TradingView website, you need a premium subscription to be able to export candles. Let’s look at this process step-by-step to understand how we can import this market data into S#.Data.

No 1.png

👉Visit TradingView Website.

No 2.png

👉Select Search Market for example NFLX.
👉Click Launch Chart for view.

No 3.png
No 4.png

👉Select Time Flame Candle for example 1 hr.

No 5.png

👉Select Export Chart Data.

No 6.png

👉In the Time format box, select ISO time.

No 7.png

👉Click Export.

No 8.png

👉Open the downloaded Market data file. You can see that the top bar is date and time, open price, low price, close price, volume and volume MA.

👉S#.Data supports only the first 6 data, the last one volume MA we will not take.

No 9.png

👉Open up your Hydra Application.

👉Visit our instruction if you doesn't have Hydra application.

👉How I can get S#.Data

👉Go to Hydra application, click select import and Click candle.

No 10.png

👉Find the name of the file we just downloaded (btw, you can import by directories as well).

No 11.png

👉Click to select the file that we downloaded, click open.

No 18.png

👉Click to select the time frame to match the timeframe we selected in the file we downloaded initially in the data type field.

No 12.png

👉Setting S#.filed from the Security and Board fields.

👉By default put the Instruments Code that we downloaded. For example NFLX in the Security slot in the instrument board e.g. BATS by default.

👉Enter numbers 0-5 in the date box and so on. Remember - numeration started from 0, not from 1.

No 13.png

👉Skip lines Row 1 cause it contains data columns description.

No 14.png
No 15.png

👉Open the file that we downloaded again, select Copy, time, date that we started downloading Market Data.

No 17.png

👉Press Paste in the Date Format field.

No 16.png

👉Change Numbers to Code Letters By yyyy-MM-dd HH:mm:ss You can read more about format on Microsoft website

No 19.png

👉Once everything is entered correctly, click Preview to double check before importing.

👉When the screen shows this page, there is no problem.

No 30.png

👉But if you press Preview and the screen appears like this, check the details that you have entered again to see if there is any mistake, correct it and press Preview again.

No 20.png

👉Once it's verified and there are no problems, press Import.

No 21.png

👉When done, click Back to go to Common.

No 22.png

👉Click on our Security.

👉Click on Instrument Tab to view market Data.

No 23.png

👉Now let's see what data was imported. Click Candles.

No 24.png
No 25.png

👉Select Security, select the Instrument to view by double-clicking the Instrument Tab, move it to the right side and click OK.

No 26.png

👉Select date and time frame.

No 27.png

👉Click View Market data.

👉Click View Candle Chart to see our candles as a chart.

No 28.png
No 29.png

👉This is a Candle Chart comparison between the Chart that was in TradingView website before it was downloaded and the downloaded Chart rendered in S#.Data application.


💥💥Now you know how to import from a CSV file. To make this process you no need to use only limited websites like TradingView. S#.Data supports any format of CSV files that you can download from a variety of sources and websites.

💥Hope this blog is interesting for you. Please comment us what you interesting to know more about S#.Data. We will try to write our next posts.




Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy