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

MQL4 专家 脚本

指定

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.

反馈

1
开发者 1
等级
(452)
项目
788
48%
仲裁
70
17% / 53%
逾期
139
18%
工作中
2
开发者 2
等级
(34)
项目
60
23%
仲裁
11
73% / 9%
逾期
3
5%
空闲
3
开发者 3
等级
(449)
项目
475
69%
仲裁
6
67% / 0%
逾期
2
0%
工作中
4
开发者 4
等级
(11)
项目
18
28%
仲裁
4
50% / 50%
逾期
1
6%
空闲
5
开发者 5
等级
(39)
项目
50
18%
仲裁
6
33% / 50%
逾期
0
空闲
6
开发者 6
等级
(3)
项目
1
0%
仲裁
0
逾期
0
空闲
7
开发者 7
等级
(151)
项目
232
32%
仲裁
18
39% / 33%
逾期
1
0%
工作中
8
开发者 8
等级
(77)
项目
241
73%
仲裁
7
100% / 0%
逾期
1
0%
空闲
9
开发者 9
等级
(116)
项目
137
36%
仲裁
16
13% / 69%
逾期
9
7%
空闲
10
开发者 10
等级
(617)
项目
1427
59%
仲裁
31
81% / 0%
逾期
10
1%
空闲
11
开发者 11
等级
(16)
项目
20
0%
仲裁
10
0% / 80%
逾期
6
30%
空闲
12
开发者 12
等级
(278)
项目
340
37%
仲裁
6
50% / 17%
逾期
7
2%
空闲
发布者: 5 代码
13
开发者 13
等级
(3)
项目
3
0%
仲裁
0
逾期
1
33%
空闲
14
开发者 14
等级
(574)
项目
945
47%
仲裁
309
58% / 27%
逾期
125
13%
空闲

项目信息

预算
30 - 50 USD
截止日期
 3 天