Easy Hedge system modification in existing exponential ea

MQL4 Experts Integração

Termos de Referência

Hello,

 

I am looking for somebody who could Program a easy hedge system in an existing code that I have. This ea buys/sells multiple orders in an exponential growth.

If the market keeps moving against the orders it will open few more trades and it will be multiplied by 2 and TP will be adjusted. This ea works well in a ranging market, a major problem is that if the market is strongly trending then it will keep opening trades in the losing direction, this can drive to a large drawdown.

Example orders: 

Lot exponential: 2.0

Lots: 0.01

1# 0.01 lot Sell

2# (0.01*2.0) =   0.02 lot Sell 

3# (0.02*2.0) =   0.04 lot Sell

4#(0.4*2.0) =     0.08 lot Sell

5# (0.08*2.0) =  0.16 lot Sell

 

etc.

 

This exponential growth can be setup as a maximum, by the external parameter MaxTrades.

 

The add-on

If the Maxtrade has a maximum of 5 trades, than the hedge system has to reverse one trade (with a changeable parameter in lots) so the 6th trade has to be the opposite trade.  This reversal trade has to have a higher lot  then the previous trades, this could be setup in the external parameter.

 The reversal trade parameters (Example):

 

Extern bool RecoveryTrade = TRUE/FALSE

Extern RecoveryLots = ( 0.6 )

Extern RecTrailingstop = 30       //only in profit (not with stoploss)

Extern TrailingStart  = 20           //after profit reached, start after break even

Extern Stoploss = 40

 

Example order

 

1# 0.01 lot Sell

2# (0.01*2.0) =         0.02 lot Sell

3# (0.02*2.0) = 0.04 lot Sell

4#(0.4*2.0) = 0.08 lot Sell

5# (0.08*2.0) = 0.16 lot Sell

6# (extern para.) = 0.3 lots Buy

 

If you are interested, or you have a question, please send me a message. I will send you the mq4 file with the additional information.

 

Thank you 

Respondido

1
Desenvolvedor 1
Classificação
(137)
Projetos
220
52%
Arbitragem
21
24% / 52%
Expirado
64
29%
Trabalhando
Publicou: 3 códigos
2
Desenvolvedor 2
Classificação
(365)
Projetos
507
40%
Arbitragem
147
18% / 72%
Expirado
99
20%
Carregado
3
Desenvolvedor 3
Classificação
(89)
Projetos
139
24%
Arbitragem
34
32% / 44%
Expirado
59
42%
Trabalhando
4
Desenvolvedor 4
Classificação
(49)
Projetos
134
27%
Arbitragem
62
13% / 53%
Expirado
58
43%
Livre
Publicou: 225 artigos, 1 código
5
Desenvolvedor 5
Classificação
(71)
Projetos
156
44%
Arbitragem
22
41% / 14%
Expirado
16
10%
Livre
Publicou: 10 códigos
6
Desenvolvedor 6
Classificação
(195)
Projetos
395
28%
Arbitragem
155
20% / 52%
Expirado
112
28%
Livre
7
Desenvolvedor 7
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(25)
Projetos
54
37%
Arbitragem
4
0% / 50%
Expirado
22
41%
Livre
9
Desenvolvedor 9
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
(270)
Projetos
550
49%
Arbitragem
56
39% / 36%
Expirado
227
41%
Trabalhando
11
Desenvolvedor 11
Classificação
(64)
Projetos
144
46%
Arbitragem
19
42% / 16%
Expirado
32
22%
Livre

Informações sobre o projeto

Orçamento
10 - 50 USD
IVA (21%): 2.1 - 10.5 USD
Total: 12.1 - 60.5 USD
Desenvolvedor
9 - 45 USD
Prazo
de 1 para 5 dias