Simple Hedge EA for buy and sell operations with values i want needed.

MQL4 Experts Scripts

Termos de Referência

Hello Dear Community of MQL5,


I would like to create an EA that opens and closes positions depending on the current trend with the manuel pip values we can enter. I will explain the work-flow down so please bear with me.

1. EA has detected the trend ( let's say it is going up ) and made a buy with the lot and pip values that i entered.

1.1. if up trend continues it will close the position and sell at the value that i enter manually

1.2. if the trend goes the other way around, the EA should do the opposite operation ( which is a sell in this current situation ) with the value of lot*2 at the pip value i want.

1.3. if the trend goes the other way around again, EA should keep doing the opposite operation with the one before, with the value of the same lot*2 ( it is same value with 1.2. ) 

2. after this point it goes into a loop until it catches the pip profit which i have entered beforehand.

Also I would like to have a manuel number of positions that i enter. I dont want it to start too many positions in the same, to test it out i would like to start with 1 position series.


Looking forward for your answers

Best wishes,

Behnan OR.

Respondido

1
Desenvolvedor 1
Classificação
(456)
Projetos
794
49%
Arbitragem
71
17% / 54%
Expirado
139
18%
Trabalhando
2
Desenvolvedor 2
Classificação
(34)
Projetos
60
23%
Arbitragem
11
73% / 9%
Expirado
3
5%
Livre
3
Desenvolvedor 3
Classificação
(450)
Projetos
477
69%
Arbitragem
6
67% / 0%
Expirado
2
0%
Livre
4
Desenvolvedor 4
Classificação
(11)
Projetos
18
28%
Arbitragem
4
50% / 50%
Expirado
1
6%
Livre
5
Desenvolvedor 5
Classificação
(39)
Projetos
50
18%
Arbitragem
6
33% / 50%
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(3)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(153)
Projetos
236
33%
Arbitragem
20
45% / 30%
Expirado
1
0%
Trabalhando
8
Desenvolvedor 8
Classificação
(77)
Projetos
243
74%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
Publicou: 1 artigo
9
Desenvolvedor 9
Classificação
(116)
Projetos
137
36%
Arbitragem
16
13% / 69%
Expirado
9
7%
Livre
10
Desenvolvedor 10
Classificação
(618)
Projetos
1428
59%
Arbitragem
31
81% / 0%
Expirado
10
1%
Livre
11
Desenvolvedor 11
Classificação
(16)
Projetos
20
0%
Arbitragem
10
0% / 80%
Expirado
6
30%
Livre
12
Desenvolvedor 12
Classificação
(278)
Projetos
340
37%
Arbitragem
6
50% / 17%
Expirado
7
2%
Livre
Publicou: 5 códigos
13
Desenvolvedor 13
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
1
33%
Livre
14
Desenvolvedor 14
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
para 3 dias