NEED HELP! EA build for EMA and trade close

Hi, i am trying to make an EA on EA builder as i have no coding skills.

I know what i am trying to get however i dont think EA builder can do it, can anyone help build it for me?

Bellow is what i would like it to do:

Open Buy trade when :-

EMA 8 crosses above EMA 50
EMA 50 is above EMA 350

Open Sell trade when :-

EMA 8 crosses bellow EMA 50
EMA 50 is bellow EMA 350

I would like it to open the trades on the open of the candle after the cross over has happened, and only open one trade

To close the trade, S/L or T/P is reached, which i can modify in pips. if more than one trade is happening it only closes the trade that reached S/L or T/P

I would like the EA to Trade across all pairs if possible

IF ANYONE CAN HELP I WILL BE TRUELY GRATEFUL

so annoyed as i spent money to try to make this EA and it just doesnt work :sleepy:

Heyo! Here you go!

This will trade on whichever timeframe and whichever symbol it is placed on.

Also, don’t set the TP or SL to 0, will probably break it I imagine.

It won’t open another trade if an existing trade exists on the same symbol and magic number.

Remember to change the magic number per instance of the EA.

Fun!

EMAOpener.ex4 (8.6 KB)

So, what’s your planned strategy with this?

Currently still forming it, but im planning it to have the signal from this EA

sorry i forgot to metion that i need the code for MT5 as i cant open this

Ah right. Well, I’ve never coded anything in MQL5 before. I’ll have a look in a bit and see if I can rewrite this for MQL5.

1 Like

Okay thank you very much.
If its not a big ask, i also need help to make an indicator. would you be able to help?

Maybe, could give it a go. What are you after?

Engulfing indicator

If you can, please can the indicator have:

  • the open and close of candle fully engulfs previous candle
  • An alert is made (Ie.notification and sound)
  • candle is painted with a visual (Ie. Coloured Arrow)

the wicks of the candle doesnt matter for this indicator, however if there was a way to have the option to turn the indicator to work out engulfing candles with or without wick that would be even better

image bellow kinda shows what i mean. as open and close is above previos close and open, vis versa for bullish engulfing