Switching Between 2 EAs
-
Hello experts.
Calling @l-andorrà @roar @trader-philipps .
I need to make an EA that controls 2 external EAs.
Means an EA that will switch between 2 other EA with condition.
If market trending, run EA1, when ranging, stop and close trades by EA1 and run EA2, vice versa.
Please help draw me the block diagram how to do it.
Thanks. -
@biztet Wow that's real programming for real programmers.
I'm afraid I cannot help you in this, sorry. Maybe miro or roar? -
Really?? Haha.. I thought it's just like linking an external indicator only in different block maybe with on/off block..

-
Why would you not combine the two EAs into a single EA, parts of which can be turned on or off as necessary?
-
Hi @CPBonzo. It's the only part which i am a free fxdreema user. Hahhaha.
Or would you mind helping me to combine it if it is tested profitable? -
@biztet the first problem in whole idea is how will you identify if the market is ranging or not ? some times market ranges in weird way....
the most simplest approach will be to save two templates , one with each EA , then create and EA in fxdreema and make that ea load the required template -
@zackry hi, i found this damiani volatmeter indi to avoid whipsawed market. Not so perfect but quite good actually. You can give it a try. Anyway, SnR seems a must and can be used as take profit level. Could you please share the best strategy for ranging market other than martingale?
-
Also thanks for the "load template" tips. I didn't know about that before. Could you please help me make an example for me to follow on how to load the template and change between the 2 EAs?
-
@biztet
I am Away from my computer at the moment , so wont be able to make a practical sample EA but i will try to explain the steps to the best of my abilitylet say your two EAs are "x" and "y" now attach the EA "x" to the chart and save the template with let say 1 , and now attach the EA "y" to the chart and then save the template with the different name let say 2 ,
now on fxdreema create a loader EA , set your condition for each EA as to when you wanna initiate which EA
once the conditions are set then add a block "apply template" at the end of both conditions (trending and ranging )
when the EA detects that your condition is true then it will apply the template with the ea attachedhowever there is a drawback to this approach which is once the ea apply a template then you wont be able to apply another template , cuz the loader EA will be removed from the chart
this can be resolved if you load it on one chart and then apply the template on the other chart of the same symbol , but you will need some programming knowledge for that -
Thanks @Zackry . I can see that now. I understand we can just put the loader condition at each ea and logically it will change between 2 EAs. I'll try it tomorrow. Same thing my laptop not with me right now. Thanks again.