Add functions to expert and Convert it from mql to mq5

MQL4 Experten Skripte

Spezifikation

Add 4 functions to expert.


the ea is copier, I want add  a function is reverse copier.


How to control?


My computer open two MT4.


Two MT4 is master and slave.


Slave copy master trading order.


part1:

the EA copy times is 2 second above, I want copy time is 1 second.


part2:

Add a usage deadline in the code, for example, the expiration date is 2022/12/31.


part3:

Because the prefix and suffix cannot be copied, for example, EURUSD.a cannot copy to EURUSDm.


part4:

MODE1 Just convert COPY SELL to BUY, without COPY SL and TP.

MODE2 Just swap SL and TP.

MODE3 Calculate the gap between SL and TP.

MODE4 Convert COPY buy stop/buy limit to sell. Convert COPY sell stop/buy limit to buy.



See EXAMPLE in detail below


for example 1:

Original transaction

buy

in 1.19456

sl 1.19450

tp 1.19965

Reverse trade mode1

sell buy reverses sell

in 1.19456 same as in of Original transaction

sl N/A Not need copy

tp N/A Not need copy

Reverse trade mode2

sell buy reverses sell

in 1.19456 same as in of Original transaction

sl 1.19965 copy from tp of Original transaction

tp 1.19450 copy from sl of Original transaction

Reverse trade mode3

sell buy reverses sell

in 1.19456 same as in of Original transaction

sl 1.19472 1.19456+x=1.19472 x=in of Original transaction - sl of Original 


transaction = 1.19456-1.19450=+0.00006

tp 1.18947 1.19456+y=1.18947 y=in of Original transaction - tp of Original 


transaction = 1.19456-1.19965=-0.00509

for example 2:

Original transaction

buystop

in 1.19456

sl 1.19450

tp 1.19965

Reverse trade mode1

selllimit buystop reverses selllimit

in 1.19456 same as in of Original transaction

sl N/A Not need copy

tp N/A Not need copy

Reverse trade mode2

selllimit buystop reverses selllimit

in 1.19456 same as in of Original transaction

sl 1.19965 copy from tp of Original transaction

tp 1.19450 copy from sl of Original transaction

Reverse trade mode3

selllimit buystop reverses selllimit

in 1.19456 same as in of Original transaction

sl 1.19472 1.19456+x=1.19472 x=in of Original transaction - sl of Original 


transaction = 1.19456-1.19450=+0.00006

tp 1.18947 1.19456+y=1.18947 y=in of Original transaction - tp of Original 


transaction = 1.19456-1.19965=-0.00509

for example 3:

Original transaction

sell

in 1.19456

sl 1.19466

tp 1.19065

Reverse trade mode1

buy sell reverses buy

in 1.19456 same as in of Original transaction

sl N/A Not need copy

tp N/A Not need copy

Reverse trade mode2

buy sell reverses buy

in 1.19456 same as in of Original transaction

sl 1.19065 copy from tp of Original transaction

tp 1.19466 copy from sl of Original transaction

Reverse trade mode3

buy sell reverses buy

in 1.19456 same as in of Original transaction

sl 1.19446 1.19456+x=1.19446 x=in of Original transaction - sl of Original 


transaction = 1.19456-1.19466=-0.00010

tp 1.19847 1.19456+y=1.19847 y=in of Original transaction - tp of Original 


transaction = 1.19456-1.19065=-0.00391

for example 4:

Original transaction

sellstop

in 1.19456

sl 1.19466

tp 1.19065

Reverse trade mode1

buylimit sellstop reverses buylimit

in 1.19456 same as in of Original transaction

sl N/A Not need copy

tp N/A Not need copy

Reverse trade mode2

buylimit sellstop reverses buylimit

in 1.19456 same as in of Original transaction

sl 1.19065 copy from tp of Original transaction

tp 1.19466 copy from sl of Original transaction

Reverse trade mode3

buylimit sellstop reverses buylimit

in 1.19456 same as in of Original transaction

sl 1.19446 1.19456+x=1.19446 x=in of Original transaction - sl of Original 


transaction = 1.19456-1.19466=-0.00010

tp 1.19847 1.19456+y=1.19847 y=in of Original transaction - tp of Original 


transaction = 1.19456-1.19065=-0.00391


Bewerbungen

1
Entwickler 1
Bewertung
(11)
Projekte
13
15%
Schlichtung
6
17% / 33%
Frist nicht eingehalten
1
8%
Frei
2
Entwickler 2
Bewertung
(75)
Projekte
124
44%
Schlichtung
14
29% / 50%
Frist nicht eingehalten
17
14%
Frei
3
Entwickler 3
Bewertung
(7)
Projekte
15
33%
Schlichtung
4
0% / 25%
Frist nicht eingehalten
3
20%
Frei
4
Entwickler 4
Bewertung
(390)
Projekte
416
30%
Schlichtung
74
19% / 72%
Frist nicht eingehalten
52
13%
Arbeitet
5
Entwickler 5
Bewertung
(132)
Projekte
178
39%
Schlichtung
4
25% / 50%
Frist nicht eingehalten
14
8%
Frei
6
Entwickler 6
Bewertung
(26)
Projekte
23
39%
Schlichtung
26
8% / 38%
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(21)
Projekte
35
54%
Schlichtung
8
63% / 38%
Frist nicht eingehalten
1
3%
Frei
8
Entwickler 8
Bewertung
(183)
Projekte
236
20%
Schlichtung
21
43% / 19%
Frist nicht eingehalten
0
Arbeitet

Projektdetails

Budget
30+ USD