Download MetaTrader 5

How to backtest muti timeframe EA in MT4?

To add comments, please log in or register
Kwok Fung Chan
1548
Kwok Fung Chan  
I have an EA that use H4 and D1 timeframe.

I have already downloaded tick data for both timeframe.

But when I backtest the ea in H4, it doesn't seems to compair D1 data.

So how do I backtest the EA using two timeframe?
Marco vd Heijden
Moderator
5303
Marco vd Heijden  
Isn't that kinda logical.
Siti Latifah
10943
Siti Latifah  
Sunny Chan:
I have an EA that use H4 and D1 timeframe.

I have already downloaded tick data for both timeframe.

But when I backtest the ea in H4, it doesn't seems to compair D1 data.

So how do I backtest the EA using two timeframe?



do backtest on higher timeframe.

if your signal use H4 and D1, so try btest on D1

Stanislav Korotky
21039
Stanislav Korotky  
Siti Latifah:

do backtest on higher timeframe.

if your signal use H4 and D1, so try btest on D1

Just the contrary: using H4 it's possible to reconstruct D1 in the expert code and process it appropriately in addition to H4, but using D1 there is no way to drill down to H4.

Sunny Chan:
I have an EA that use H4 and D1 timeframe.

Do you have the source codes?

How does the EA "use" 2 timeframes? If it processes them independently, you can run 2 backtests and then merge their results. If the algorithm analyses both timeframes simultaneously, the only solution is to adjust the code (if is's available).

Siti Latifah
10943
Siti Latifah  
Stanislav Korotky:

Just the contrary: using H4 it's possible to reconstruct D1 in the expert code and process it appropriately in addition to H4, but using D1 there is no way to drill down to H4.



I mean.. if use signal h4 and D1, so backtest on D1

example:

     EMA_H4=iMA(Symbol(),240,.................

     EMA_D1=iMA(Symbol(),1440,.................

     if ( EMA_H4 == blabla  && EMA_D1==blabla ) execute...

Stanislav Korotky
21039
Stanislav Korotky  
Siti Latifah:


I mean.. if use signal h4 and D1, so backtest on D1

example:

     EMA_H4=iMA(Symbol(),240,.................

     EMA_D1=iMA(Symbol(),1440,.................

     if ( EMA_H4 == blabla  && EMA_D1==blabla ) execute...

You can also run it on H4 as well - in both cases you get iMA values. Anyway, it's important to know this EA logic.
To add comments, please log in or register