Backtesting with Multiple Timeframes - Oscillators?
-
Hi everyone, so I'm trying to find a way to backtest EA's in MT4 which use multiple timeframes. As far as I can see there is no standard way to do this in MT4.
For moving averages there is a pretty simple work around, you can just multiply the periods (e.g. if your EA is looking at 20 and 100 period averages on 5 min and you want to look at same moving average on 15 min you can just add another condition block which looks at 60 and 300 period). This isn't perfect but matches the higher timeframe moving average pretty closely.
Problem I'm running into is how to do the same thing with oscillators. Just multiplying the periods doesn't work, the values are way off. Does anyone have any ideas? Is there a particular oscillator which represents the higher timeframe values more closely? Or maybe some kind of custom indicator anyone has come across which could do this?
Thanks.
-
@tomli You can simply select differejnt timeframes for you oscillator in the project. Once you backtest it you will see the results in the backtested timeframe, but all calculations will have been done with the hugher timeframes normally.
-
good evening I have a personalized arrow indicator that I render robot I would like to know is it possible to create an Ea which uses the signal of the indicator on two timeframes, I wait for signal on M15 and I enter in m5 I wait for the same signal for the robot to take position
-
fxDreema can do that, but before trying you need to be completely sure the platform can correctly identify the indicator's buffers AND checking if the indicator doesn't repaint. If any of those conditions fails, the indicator will not work on fxDreema.
-
he indicator has no problem I have already used it to create an ea it worked well, I tried to build the Ea by specifying the timframe in each block the problem is in the higher timeframe ID of the candle must specify it how? then the upper timeframe the ea does not take a position it just takes into account the signal
-
@Kiku This is the place to specify the candle ID:

You can do it separately on every condition block.
-
I see my question was to know in relation to the strategy in higher time frame the Ea takes into account the signal without taking the position so I would put ID of the candle at how much?
-
since in lower timeframe this is where I take a position during the same signal so I would set ID of the candle to 1 in lower timeframe
-
Did you understand my concern please?
-
@Kiku I'm afraid I don't fully understand the issue. Could you please upload some screenshots on both timeframes showing when a trade is supposed to be open?