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
등급
(403)
프로젝트
707
49%
중재
57
16% / 49%
기한 초과
130
18%
작업중
2
개발자 2
등급
(34)
프로젝트
60
23%
중재
11
73% / 9%
기한 초과
3
5%
무료
3
개발자 3
등급
(383)
프로젝트
411
69%
중재
3
100% / 0%
기한 초과
2
0%
바쁜
4
개발자 4
등급
(10)
프로젝트
17
24%
중재
3
67% / 33%
기한 초과
2
12%
무료
5
개발자 5
등급
(39)
프로젝트
50
18%
중재
5
40% / 40%
기한 초과
0
무료
6
개발자 6
등급
(3)
프로젝트
1
0%
중재
0
기한 초과
0
무료
7
개발자 7
등급
(111)
프로젝트
171
33%
중재
12
25% / 33%
기한 초과
0
작업중
8
개발자 8
등급
(63)
프로젝트
194
73%
중재
4
100% / 0%
기한 초과
1
1%
무료
9
개발자 9
등급
(116)
프로젝트
137
36%
중재
15
13% / 67%
기한 초과
9
7%
무료
10
개발자 10
등급
(555)
프로젝트
1343
59%
중재
28
82% / 0%
기한 초과
10
1%
무료
11
개발자 11
등급
(16)
프로젝트
20
0%
중재
9
0% / 78%
기한 초과
6
30%
무료
12
개발자 12
등급
(260)
프로젝트
317
37%
중재
6
50% / 17%
기한 초과
7
2%
무료
13
개발자 13
등급
(3)
프로젝트
3
0%
중재
0
기한 초과
1
33%
무료
14
개발자 14
등급
(564)
프로젝트
933
47%
중재
302
59% / 25%
기한 초과
125
13%
로드됨

프로젝트 정보

예산
30 - 50 USD
개발자에게
27 - 45 USD
기한
 3 일