You are on page 1of 9

DataFeed from Metatrader written by Ramil Khalikoff, Robert Rundle, Chang Zhi Dai, Alon Awramson, Sergey Lesovikov

Timing Solution software is able to work with many different data formats. One of popular data sources is client's terminal MetaTrader4; it provides real-time data stream. FOREX traders are especially interested in Currency Loader advisor written for MT4. This advisor has just one purpose: to download quotes from MT4 in real-time format. It can be used by different software programs, including Timing Solution (TS).
There are two possible ways to download quotes from MetaTrader. Variant #1: If you do not need real me streaming and work with daily or hourly chart, you can save the MT4 price chart as *.csv file. In order to do that in MetaTrader, follow menu "File"->"Save As":

and type any file name there:

Timing Solution allows to read this file. Variant #2: We recommend another approach if you would like to have real time streaming from MetaTrader. A special MetaTrader script allows to download quotes and store them in the file, while Timing Solution reads this file and updates the price history in real time. See below the explanation regarding this subject. General block diagram of MetaTrader + Timing Solution real time streaming

converted by Web2PDFConvert.com

These files are updated in real time. 5 & 60 minute. If the parameter is set as True.com .000.ex4 file) into \experts folder. there will be no downloading data if the data file contains less than 100 bars). the data downloading is allowed. these commands are useful: AllowInfo . There is no point in crea ng data files ( meframes) that you will not use in your live research.) These parameters allow/forbid data downloading. BarsMin parameter shows the minimum amount of price bars available on the diagram before any update is possible.000 price bar history and your computer is rather old. And because . (Comment by Robert Rundle I only build data files in the meframes that will be use in TS. By default it is 100 (i. as a parameter FrequencyUpdate (by default. LoadM15 = false. no downloading. make RIGHT mouse click on MetaTrader shortcut. choose the Properties item there: converted by Web2PDFConvert. if you need the minute data for some instrument that has 800. LoadW1 = True.I can delete it before I start TS so that data is fresh and seamless just in case there are gaps or overlaps of data.e. Fault of ‘currency converter’. LoadM5 = false. This configura on can then be saved by name.the information re Advisor. MaxBarsInFile. i. its value is 60. LoadM30 = false. It downloads the data into "*. For example. Remember this number. You can change the settings any time.csv" files. InIn order to find where \experts directory is located on your computer. If it is set as False.e. Here I use 1. LoadH1 = True. & Daily only for TS. your computer might be frozen. LoadMN = True.recording of the information into log-file. and later these parameters can be applied to a different currency. The \experts folder is a place on your computer where MetaTrader software stores the experts files. the data are updated every minute). you will have to change it depending on available history data and properties of your computer.Settings МТ4 advisor "Currency Loader" provides historical data for any chosen financial instruments. AllowLogFile . The default value is 20. It defines the maximum amount of price bars that can be loaded into the file.3. Default settings: LoadM1 = false. There is another parameter there. LoadD1 = True. the frequency of the updates is defined in seconds. LoadH4 = True. How to work with Currency Loader for МТ4 1) Unpack Currency_Loader file (Currency_Loader V2. Also.

Otherwise you may face a problem of converted by Web2PDFConvert. this way: Make a RIGHT mouse click on MetaTrader shortcut and highlight the item "Run as administrator".y You will get the information box like this: You see in my computer the MetaTrader program is installed in c:\Program Files (x86)\GCI MT4\ accordingly the folder for experts is c:\Program Files (x86)\GCI MT4\experts\ This is an example of another directory: C c:\Programs (x 86) \ MetaTrader – Finexo\experts\ This path depends on the version of MetaTrader that is installed on your computer.com . Troubleshooting #1 We recommend to run MetaTrader as Administrator.

. 3) Drag Loader to the main MetaTrader screen. Press F2 (from Tools at the top menu. the Currency_Loader should be there. It is better to check this directory manually. my version of MetaTrader is installed in c:\Program Files (x86)\GCI MT4\ directory. . Troubleshooting #2 Different versions of Currency Loader can store the files in different directories.e..com . Please make sure that Expert Advisors at the top menu has a green spot as below rather than a red spot to make sure Currency_Loader at the right_up corner comes with a smiling face . 4) The program starts downloading the price history and stores these files into \experts\files\Export_History\ folder. It also can be \experts\files\Export_History\EURUSD\ folder (a special folder for each financial instrument) or . RR) You can also store the price history into any folder. The delay is related to the connection between the terminal and the server and the necessity to update all already opened diagrams.\experts\files\history_center\ folder. run currency loader and check the folders in \experts\files\. In order to do that: a. In other words. i. YOUR TERMINAL MIGHT BE FROZEN. Double click on 30 Minutes (M30) folder AUSUSD (as example).. (Comment by Robert Rundle I do a shortcut from desktop to this folder so I can delete it before I start TS so that data is fresh and seamless just in case. Click Export button to save the file with the price history: converted by Web2PDFConvert.. Troubleshooting #3 It starts working very soon. In our example this folder is used: \experts\files\Export_History\ folder. folder. you should wait only about a minute after the download.updating the price history in teal time. and the files with updated price history will be located in: c:\Program Files (x86)\GCI MT4\experts\files\Export_History\ folder. 2) Open program MetaTrader. then History Centre): b. and the Currency_loader will appear at the right top corner. IF YOU USE THE LOADER FOR TOO MANY INSTRUMENTS AT THE SAME TIME.

download the existing price history and open Data Feed module clicking button: 7) Highlight "From File" item there and click "Data Feed File" button: 8) Choose data feed file from \experts\files\Export_History\ folder. To do that: 6) Run Timing Solution software. in our example it will be c:\Program Files (x86)\GCI MT4\experts\files\Export_History\ folder. 9) Set the speed of update: ( Comment by Robert Rundle SET INTERVAL EVERY 60 SECONDS. AS TS GETS A LITTLE FREEZY FOR A FEW SECONDS) converted by Web2PDFConvert.com .You can download this file in Timing Solution in a regular way: Real Time Streaming" Timing Solution + Currency Loader You can use the Currency Loader as the source of real time streaming for Timing Solution.

Look at this example. This file should contain information about latest updated price history.something is wrong there. click or double-click on this symbol.com . Troubleshooting #5 You should also check the format of this file. converted by Web2PDFConvert.9) To run real-time regime streaming. it must be green: Troubleshooting #4 To control the real time streaming we recommend to click this button: The program shows the content of real time streaming file. If this file does not contain this information please check MetaTrader Currency Loader .

In order to fix this problem click and select this file there. button How to increase the amount of downloaded price history For data acquisition on currencies I use МТ4 and I will describe detailed algorithm on example EURUSD60min.mm.dd hh:mm while the program expects yymmdd format.To format of this datafeed file is yyyy. Also we recommend to save your work into worksheet to save these changes. First it is necessary to specify the max amount of lines (as an example 1-2 000 000): converted by Web2PDFConvert.com .

com . After closing "Option" click right mouse click and highlight "Refresh": Alternative variant of updating of data: converted by Web2PDFConvert.Here EURUSD 60min chart with maximum 80 000 bars is downloaded.

Websites where you can download MataTrader so ware and open account: (h p://www.com/Pla orm/Forex-Trading-Pla orm a free demo account and a live trading account for pc or smart phones) converted by Web2PDFConvert.ibfx. not all currency steams have good history (without holes).com .At base updating it is necessary to achieve absence of admissions. Unfortunately.