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 일