Social Icons

Backtest


What is Backtesting ?


To simulate trading strategies. On the basis of past data Through events that can be selected during the test it. To assess the effectiveness of the EA that can be traded for real.

Backtest (EA) on MT4 (Version 4.00 Build 480)



Prepare data for backtest

Download History file for backrest from the internet
File type  .TXT ,.HST, .CSV 


Credit
4 Digit  : http://www.forextester.com/data/datasources

5Digit  : http://www.fxdd.com/us/en/forex-resources/forex-trading-tools/metatrader-1-minute-data/

http://www.histdata.com/download-free-forex-data/?/metastock/1-minute-bar-quotes

Open MT4 no connect to Broker (We will import type Offline)


(1).Select Menu, Tools and Options




(2).Change values Max bar in history and Max bar in chart  to 5,000,000  



(3).Select Menu, Tools and History Center




(4).Select Currency pairs and delete all time frames



(5).Press button Import for select history file, Then press button OK




Prepared data of time frame M1 




(6).Next step, we will convert data of time frame M1 into the time frame M5

Select menu New chart  and select currency pairs
  


(7).Open graphs and select time frame M1, click mouse at Script Period Converter and drag mouse into in graph time from the M1.




(8).Change Period multiplier factor of 5 for time frame 5 minutes and press button OK



If convert time frame completed, MT4 will be displayed message



Time frame 

M15  =        15 (15 minutes)
M30  =        30 (30 minutes)
H1     =        60 (1 hour)
H4     =      240 (4 hours)
D1     =    1440 (1 day)
W1    =  10080 (1 week)
M1    =  43200  (1 month)



(9).Select Menu, View and Strategy Tester




(10). Start Backtesting



1. Select EA name
2. Select Currency pairs
3. Select time frame
4. Select Range of period
5. Select Visual mode
6. Start for backtest 



 
Blogger Templates