Create and Test Forex Strategies
Forex Strategy Builder uses local data to perform historical back test.
The data is stored in text files.1) The program uses this type of files in order to allow users to easily edit or amend the trade rates.
This article explains how the files are named, where they are placed in the directory of the program and how they are formatted.
The forex rates files are not automatically updated.
Each instrument and forex rate data is in a separate file. These files must be named in a specific way in order to be correctly recognized and loaded by the program.
The file names consist of three parts:
1 Min – 1 5 Min – 5 15 Min – 15 30 Min – 30 1 Hour – 60 4 Hour – 240 1 Day – 1440 1 Week – 10080
Examples:
EURUSD1440.csv - Eur vs. Usd, period - 1 Day USDJPY60.csv - Usd vs. Jpy, period - 1 Hour GBPCHF15.csv - Gbp vs. Chf, period - 15 Min
The data in the text files is stored in rows and columns:
2008-05-19 19:00 1.5445 1.5456 1.5445 1.5451 43 2008-05-19 19:15 1.5452 1.5458 1.5451 1.5454 43 2008-05-19 19:30 1.5453 1.5457 1.5452 1.5455 47 2008-05-19 19:45 1.5456 1.5465 1.5455 1.5463 56 2008-05-19 20:00 1.5464 1.5465 1.5459 1.5460 39 2008-05-19 20:15 1.5459 1.5468 1.5454 1.5454 39
The columns are as follows:
The columns are separated by interval, tabulation, comma or semicolon.
Each row contains data for one bar only.
The oldest bar is at the beginning of the file.
The newest bar is in the last row of the file.
For programmers, the full data format is as follows:
SpacePattern = @"[\t ;,]"; DatePattern = @"\d{1,4}[\./-]\d{1,4}[\./-]\d{1,4}"; TimePattern = @"\d{1,2}(:\d{1,2}){1,2}"; PricePattern = @"\d+([\.,]\d+)?"; VolumePattern = @"\d{1,10}";
You can find more information and links in Historical Forex Rates page. It is also accessible from Market → Download Data menu of Forex Strategy Builder.
For further information on alternative data sources check the related topic in the Forex Forum.
You can add to or edit the forex rates files using any text or tabular editor.