Hedge EA with Martingale

MQL5 Experts

Termos de Referência

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.

Respondido

1
Desenvolvedor 1
Classificação
(16)
Projetos
23
26%
Arbitragem
1
0% / 0%
Expirado
2
9%
Livre
2
Desenvolvedor 2
Classificação
(2350)
Projetos
2956
63%
Arbitragem
125
44% / 26%
Expirado
429
15%
Trabalhando
3
Desenvolvedor 3
Classificação
(633)
Projetos
741
34%
Arbitragem
49
53% / 39%
Expirado
15
2%
Trabalhando
4
Desenvolvedor 4
Classificação
(298)
Projetos
478
40%
Arbitragem
105
40% / 24%
Expirado
82
17%
Carregado
Publicou: 2 códigos
5
Desenvolvedor 5
Classificação
(328)
Projetos
333
71%
Arbitragem
2
100% / 0%
Expirado
0
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
(2676)
Projetos
3420
68%
Arbitragem
77
48% / 14%
Expirado
343
10%
Trabalhando
Publicou: 1 código
7
Desenvolvedor 7
Classificação
(50)
Projetos
51
8%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(11)
Projetos
17
59%
Arbitragem
2
0% / 100%
Expirado
2
12%
Livre
10
Desenvolvedor 10
Classificação
(45)
Projetos
91
13%
Arbitragem
34
26% / 59%
Expirado
37
41%
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
para 1 dias