Hedge EA with Martingale

MQL5 Asesores Expertos

Tarea técnica

Let's develop an EA for MT5.


Indicators:

Bollinger Bands with customizable period and deviation.

Moving Average with customizable period.


Financial Manager:

Customizable initial lot size

Customizable Martingale multiplier (with decimals)

Customizable Take Profit (TP)

Customizable Stop Loss (SL)


Trading Logic:

if no open orders and the last trade hit TP:

Use the initial lot size.

If the moving average is above the middle band of the Bollinger Bands: open a buy order.

If the moving average is below the middle band of the Bollinger Bands: open a sell order.


if no open orders and the last trade hit SL:

Apply the Martingale multiplier to the last lot size.

Open a trade in the opposite direction of the last trade.


Please provide the complete MQL5 code for this EA.

Han respondido

1
Desarrollador 1
Evaluación
(16)
Proyectos
23
26%
Arbitraje
1
0% / 0%
Caducado
2
9%
Libre
2
Desarrollador 2
Evaluación
(2350)
Proyectos
2956
63%
Arbitraje
125
44% / 26%
Caducado
429
15%
Trabaja
3
Desarrollador 3
Evaluación
(634)
Proyectos
741
34%
Arbitraje
49
53% / 39%
Caducado
14
2%
Trabaja
4
Desarrollador 4
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
5
Desarrollador 5
Evaluación
(328)
Proyectos
333
71%
Arbitraje
2
100% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
6
Desarrollador 6
Evaluación
(2677)
Proyectos
3420
68%
Arbitraje
77
48% / 14%
Caducado
343
10%
Trabaja
Ha publicado: 1 ejemplo
7
Desarrollador 7
Evaluación
(50)
Proyectos
51
8%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(11)
Proyectos
17
59%
Arbitraje
2
0% / 100%
Caducado
2
12%
Libre
10
Desarrollador 10
Evaluación
(45)
Proyectos
91
13%
Arbitraje
34
26% / 59%
Caducado
37
41%
Libre
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre

Información sobre el proyecto

Presupuesto
30 - 50 USD
Plazo límite de ejecución
a 1 día(s)