Multiple Time Frames Expert Advisor

 

Is it possible to use multiple time frames within an EA and if so then could you link me to some documentation on it.

I want my EA to do this:

if 15 minute chart indicator x is giving a buy signal

then if 5 minute indicator z is giving a buy signal

then open order


I am new to expert advisors, any help will be beneficial, thanks.

 
forexhandle:

Is it possible to use multiple time frames within an EA and if so then could you link me to some documentation on it.

I want my EA to do this:

if 15 minute chart indicator x is giving a buy signal

then if 5 minute indicator z is giving a buy signal

then open order


I am new to expert advisors, any help will be beneficial, thanks.


I am in the middle of developing a multi-timeframe EA based on the ADX indicator. I load the EA to the 1Hr chart and look at the 1Hr, 30Min, 15Min,... for a strong trend/entry. How can I help you?
 

Try: https://www.mql5.com/en/forum/135924 & beside the docs, book for starters, search thru the articles, codebase section - you bound to find something that appeals to your needs.

 
Bare in mind if you strategy test such an EA, strategy tester will only give the correct values for the open price and the close price of other time frames. High, low etc are modelled aproximately.
Reason: