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

指定

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 codes
13
開発者 13
評価
(3)
プロジェクト
3
0%
仲裁
0
期限切れ
1
33%
14
開発者 14
評価
(574)
プロジェクト
945
47%
仲裁
309
58% / 27%
期限切れ
125
13%

プロジェクト情報

予算
30 - 50 USD
締め切り
最高 3 日