Experts: Get M1 OHLC data for MetaTrader 4 backtesting

To add comments, please log in or register
Automated-Trading
129858
Automated-Trading  

Get M1 OHLC data for MetaTrader 4 backtesting:

Usually most brokers do not provide M1 data over 3 months in MetaTrader 4, but they provide M1 data over 3 years in MetaTrader 5. So we can use this tool to obtain the M1 data in MetaTrader 5 tester and save the data into .hst file for MetaTrader 4 backtesting.


How to use it?

  • Test EA in MetaTrader 5, select M1 time frame and 1 minute OHLC.
  • After testing finish, the .hst file is saved in tester folder, copy it to your MetaTrader 4 history folder.
  • Use period converter script to convert M1 .hst to other timeframes. https://www.mql5.com/en/code/19839.

EA Setting

Author: Ziheng Zhuang

Ziheng Zhuang
16577
Ziheng Zhuang  
Aimak:

I tried this EA but I cannot find the resulted HST. Not in tester folder nor in MQL5\Files

Also, searching for files with "hst" returns no results.


After testing finish, click "Journal" tag (see the above screenshot), right click, open tester folder:

The  "EURGBP1.hst" file is in  Yourdatafolder\Tester\Agent-127.0.0.1-3000\MQL5\Files

Ziheng Zhuang
16577
Ziheng Zhuang  
Aimak:

Thanks for your reply.

I'm a bit confused. In my Tester folder I can only see Cache and Log folders.

By the way. I do not have installed the MT5 Agent service. Does this matter?


Sorry, I am not sure, but I think it has nothing with MT5 Agent service.

why you do not have the Agent-127.0.0.1-3000 folder, you may ask desk service for help.

Neal_Van
386
Neal_Van  
I don't see these options. I have it installed as an EA and it is on the chart but these options shown in the picture are not shown on my end. Any advice on using this?
Ziheng Zhuang
16577
Ziheng Zhuang  
Neal_Van:
I don't see these options. I have it installed as an EA and it is on the chart but these options shown in the picture are not shown on my end. Any advice on using this?


Ctrl+R to popup the tester.

To add comments, please log in or register