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

MQL4 Experts Scripts

Spécifications

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.

Répondu

1
Développeur 1
Évaluation
(458)
Projets
796
49%
Arbitrage
73
16% / 52%
En retard
139
17%
Chargé
2
Développeur 2
Évaluation
(34)
Projets
60
23%
Arbitrage
11
73% / 9%
En retard
3
5%
Gratuit
3
Développeur 3
Évaluation
(452)
Projets
478
69%
Arbitrage
6
67% / 0%
En retard
2
0%
Gratuit
4
Développeur 4
Évaluation
(11)
Projets
18
28%
Arbitrage
4
50% / 50%
En retard
1
6%
Gratuit
5
Développeur 5
Évaluation
(39)
Projets
50
18%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
6
Développeur 6
Évaluation
(3)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(153)
Projets
238
33%
Arbitrage
20
45% / 30%
En retard
2
1%
Gratuit
8
Développeur 8
Évaluation
(77)
Projets
243
74%
Arbitrage
7
100% / 0%
En retard
1
0%
Gratuit
Publié : 1 article
9
Développeur 9
Évaluation
(116)
Projets
137
36%
Arbitrage
16
13% / 69%
En retard
9
7%
Gratuit
10
Développeur 10
Évaluation
(618)
Projets
1428
59%
Arbitrage
31
81% / 0%
En retard
10
1%
Gratuit
11
Développeur 11
Évaluation
(16)
Projets
20
0%
Arbitrage
10
0% / 80%
En retard
6
30%
Gratuit
12
Développeur 12
Évaluation
(279)
Projets
341
37%
Arbitrage
6
50% / 17%
En retard
7
2%
Gratuit
Publié : 5 codes
13
Développeur 13
Évaluation
(3)
Projets
3
0%
Arbitrage
0
En retard
1
33%
Gratuit
14
Développeur 14
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit

Informations sur le projet

Budget
30 - 50 USD
Délais
à 3 jour(s)