Good afternoon,
I am porting some Ea's to MT5 which have to be backtested in every tick mode. However, the results are wildy different from the Metatrader4 backtests.
Since tick generation is the same (https://www.mql5.com/en/articles/75) I guess I am missing the historic data, but I can't find the history center.
Could you please enlighten me?
Thanks!
There is no history center with MT5. You have to use data from your broker.
Thanks for your reply. Could you please expand? (ie how do you backtest tick by tick, let's say, 4 years to the past)
I don't seem to have any broker data! LOL
If you use Metaquotes demo-server, you have enough data for most symbols. Otherwise you have to find a broker who provides enough data. Data are automatically downloaded when you run the Strategy Tester.
Please see this topic for information about the Strategy Tester.
If you use Metaquotes demo-server, you have enough data for most symbols. Otherwise you have to find a broker who provides enough data. Data are automatically downloaded when you run the Strategy Tester.
Please see this topic for information about the Strategy Tester.
Thanks I will try it right away and download Mt5 from mql5.com. So, theoretically, the tick-data generated is the same in Mt4 and Mt5?
I think it's similar but not the same, however I don't know very well MT4 algorithm. MT4 ticks are generated on base of candle of the chosen timeframe, and MT5 ticks are always generated from M1 data.
I see. So let me see if I get this right =P I just open an M1 chart and scroll to the past until no more data comes in?
You don't have to use an M1 chart, you can use a Monthly chart. In MT5 all charts are built from M1 data.
Oh, great! Now it worked, only after I downloaded the MT5 platform from mql5.com. The tick data history is rich enough.
Results are not exactly the same, but I can work with this.
Thanks a lot for your help.
I think it's similar but not the same, however I don't know very well MT4 algorithm. MT4 ticks are generated on base of candle of the chosen timeframe, and MT5 ticks are always generated from M1 data.
So does this mean that every single "tick" generated in the Strategy Tester is actually just a M1 bar?
EDIT: I just checked and found that they are indeed individual ticks and not M1 bars (assuming you use the "Every Tick" option) .
I read on this article that price data is stored as M1 data in hcc format.
https://www.mql5.com/en/docs/series/timeseries_access
How are individual ticks generated from these M1 bars if all that is known about each M1 bar is the OHLC and volume?

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good afternoon,
I am porting some Ea's to MT5 which have to be backtested in every tick mode. However, the results are wildy different from the Metatrader4 backtests.
Since tick generation is the same (https://www.mql5.com/en/articles/75) I guess I am missing the historic data, but I can't find the history center.
I am under the impression, after some dumping of variables, that I don't have the history data in my Mt5. Ticks are very separated in time.
Could you please enlighten me?
Thanks!