SuperTrend with Macd Divergence and Semafor EA
-
Hello,
I need some guidance on how to create EA for the following (Buy Example):
1- Super Trend changes colors from Red to Green.
2- EA should check if there is Macd Bullish divergence in the past xNumber of candles.
3- EA should check if there is Semafor (3) visible in the past xNumber of candles.I dont know which blocks to use and in what sequence.
Appreciate your help
-
hi,
as beginer you should start with simplier EAs and understand how fxdreema is working ...
start with examples and maybe few tutorials in forum (which are not the best
) and go and look for many replies here in forum ...
but for your strategy:
1- Super Trend is indicator? if so, you must download it into your indicator folder, than add it to fxdreema "my Indicators" and after that you can use it in conditions (you can trace it with Trace block to be sure, that buffers are working)
2- divergences for MACD are in fxdreema blocks, it is easy to use
3- semafor is alto indicator? than do the same as in first step ...use mostly condition blocks ...
-
Thanks Miro
I did some examples such as MA and Trendlines to get an idea how FxDreema works.
I dont know which condition applies if i want to say color change or in better words signals change from sell to buy.
And second for checking previous candles in there is signal from other indicators, which condition will apply in here. -
it depends on indicator itself ... when colors are in buffers, than red color is one buffer and green color is another buffer ... you can use condition block where you compare this buffer with EMPTY_VALUE ... like:
red buffer != EMPTY_VALUE
and this means that red signal is active ...
try it first as separate conditions (plot arrows on the chart, or vertical lines to be sure, that condition is working) ... and at the end connect all conditions togetheryou can also use another block for there indicators with colors ... like Indicator Appear block ...
I had in forum example with this block and it is no more here
... -
One Step is done.
I was able to configure SuperTrend.
Now how do i set the MACD Divergence in a way that SuperTrend Buy needs to occur only if there is MACD Divergence in the past xNumber of Candles? -
Step Two also done.
I used a custom MACD Divergence instead of the built in one.No am at my last step. hopefully I'll nail it.
-
you see, how good it can be done
it just need your effort 
-
All done. EA is ready. thanks for your help Miro
-
I have two more enquires if you can help me bro.
Now the ea is ready is there any function to add multi pair scanner so i dont have to open all the charts seperatly.
And also any way to put trade copier to my other accounts in different broker?
-
... ... ...
-
The block "Set "Current Market" for next blocks" would probably do the same... wouldn't it?
It loops through all pairs input in parameters (in the order you typed in) and sets every next block to the different symbols
-
really, I completely forgot that this block exists .... so you can use this block for multipair

-
Wow man..!! It works
Thanks alot
I was thinking of another condition in which the EA should Not trade even if the rest of the conditions are met.
I couldn't find any search results in the forum.
Any ideas bro?
-
Iยดm trying to develop a similar strategy, using MACD divergences of a custom indicator to close trades and I am not able to do it so far. Can you plz post that group of conditions that u have used?
-
You can use the controlling blocks called "Turn On Blocks" and "Turn Off Blocks" under the conditions that will block/allow trades.... if it should reset everyday, put a "Turn On (or Off) block" under "Once a day" block.... just be careful with the block numbers, as always
-
how is macd divergence created