MQL5 EA based on MACD Strategy (from tradingview)

MQL5 Asesores Expertos

Tarea técnica

I need to convert the below Strategy from Trading view Pine Script to MQL5 EA which I can backtest and that can do algo trading. In the options I would like you to add:

1. Possibility to change Fastlenghth and slowlength, macdlength

2. Parameter: Trading direction: Both, Open only Longs or Open only Short, Lot size

3. Close the trade automatically (upon change of signals from long to short and vice versa)

4. I probably trade multiple symbols on one trading account and load them to separate instrument charts. (One EA per chart, generate random magic number)







ps: I want the MQL5 file.


MACD Strategy :
//@version=5
strategy("MACD Strategy", overlay=true)
fastLength = input(12)
slowlength = input(26)
MACDLength = input(9)
MACD = ta.ema(close, fastLength) - ta.ema(close, slowlength)
aMACD = ta.ema(MACD, MACDLength)
delta = MACD - aMACD
if (ta.crossover(delta, 0))
strategy.entry("MacdLE", strategy.long, comment="MacdLE")
if (ta.crossunder(delta, 0))
strategy.entry("MacdSE", strategy.short, comment="MacdSE")
//plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(510)
Proyectos
767
63%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
2
Desarrollador 2
Evaluación
(12)
Proyectos
15
40%
Arbitraje
2
50% / 50%
Caducado
0
Trabaja
3
Desarrollador 3
Evaluación
(4)
Proyectos
4
25%
Arbitraje
2
0% / 100%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(63)
Proyectos
84
26%
Arbitraje
23
22% / 48%
Caducado
23
27%
Libre
5
Desarrollador 5
Evaluación
(68)
Proyectos
77
8%
Arbitraje
33
9% / 55%
Caducado
6
8%
Trabajando
6
Desarrollador 6
Evaluación
(197)
Proyectos
201
27%
Arbitraje
0
Caducado
3
1%
Libre
7
Desarrollador 7
Evaluación
(45)
Proyectos
51
51%
Arbitraje
1
0% / 100%
Caducado
1
2%
Libre
8
Desarrollador 8
Evaluación
(293)
Proyectos
436
64%
Arbitraje
5
40% / 0%
Caducado
4
1%
Trabaja
9
Desarrollador 9
Evaluación
(24)
Proyectos
31
68%
Arbitraje
2
50% / 0%
Caducado
1
3%
Libre
Solicitudes similares
Hi, I would like to create an expert advisor to fully automatic trade in MT4 as below, it should be possible with gold or any currency pairs and need to possible with 2, 3, 4 or 5 after decimal quotes PAROL MA CROSSOVER 1. Magic Number : Customize 2. Take profit in points : Customize 3. Stop loss in points : Customize 4. Strat time in GMT : Customize 5. End time in GMT : Customize (It means no need to open a new
Hi. I will require a MT4 EA with 3 indcators for a specific time frame, certain parameters can be adjusted and should be able to automated trading. 1. RSI 2. EMA EA 3.Trading Volume . 4 & 5 digits can use 1.) 1 RSI . and 2 EMA ( cross over ) 1.1.) All different timeframe can use ( adjustable ). 1.2.) Entry pricing will need to meet at least 2 out of 3 indicators levels. 1.3.) Each indicators can be adjusted. 2.)
Need MT4 EA which will trade based on Round Number and Supertrend. Trading conditions: If buy supertrend is >= lower round number and <= the higher round number, EA will place a buy pending order at the higher round number. If sell supertrend is <= higher round number and >=lower round number, EA will place sell pending order at the lower round number. If the trade is exited because of SL/BE, EA will place another
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
I need a ea 50+ USD
I need an ea for my prop firm challenge 5000usd account. that can execute trade itself with 0.5R risk and at least 1:2 target.Not maximum drawdown 2-3% and can generate monthly return 10 to 20%
Hello Devs! I like to create a new EA based on the below conditions: (Please do not bid if you have no confidence of fulfilling the codes requirements. Thanks!) You can code MT4 or MT5 or both depending on your preference. 1. Different Magic numbers for BUY and SELL 2. Add on time filter for each day individually. Eg: Mon = 00:01-23:59, Tue = 01:00-23:30 etc. (Monday to Sunday) True/false to close all trades at end
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I need an EA which takes confluence of 4 ema on 3 different time frame before taking a trade. Ea should have risk to reward option, option to add xyz pips above stoploss criteria in order to avoid hitting sl due to spreads. Customizable RR to cl9se trade partially when desired RR is reached. Also require source code to get future changes done
I need MT4 and MT5 hedging locker expert advisors that hedge existing trades either with pending or market order hedging trades. With pending hedge trades the entry price may optionally be made to trail the existing open orders. There should be option for a breakeven and trailing of the hedge trade’s stop
Hey Mql Community, Our Company need help creating and design a well automated forex ea for mt4 platform, This EA should based on the logic of an existing EA and the ideas we have in mind as a new features in the EA. Understand that We already have an EA that is working properly, we want to add a few details to it. We don’t have the source code just the ex.4 file, and as an expert specialist in the field we are

Información sobre el proyecto

Presupuesto
30+ USD

Cliente

Encargos realizados2
Número de arbitrajes0