Add functions to expert and Convert it from mql to mq5

MQL4 Experts Scripts

Spécifications

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


Répondu

1
Développeur 1
Évaluation
(11)
Projets
13
15%
Arbitrage
6
17% / 33%
En retard
1
8%
Gratuit
2
Développeur 2
Évaluation
(75)
Projets
124
44%
Arbitrage
14
29% / 50%
En retard
17
14%
Gratuit
3
Développeur 3
Évaluation
(7)
Projets
15
33%
Arbitrage
4
0% / 25%
En retard
3
20%
Gratuit
4
Développeur 4
Évaluation
(390)
Projets
416
30%
Arbitrage
74
19% / 72%
En retard
52
13%
Travail
5
Développeur 5
Évaluation
(132)
Projets
178
39%
Arbitrage
4
25% / 50%
En retard
14
8%
Gratuit
6
Développeur 6
Évaluation
(26)
Projets
23
39%
Arbitrage
26
8% / 38%
En retard
0
Gratuit
7
Développeur 7
Évaluation
(21)
Projets
35
54%
Arbitrage
8
63% / 38%
En retard
1
3%
Gratuit
8
Développeur 8
Évaluation
(194)
Projets
250
20%
Arbitrage
22
50% / 18%
En retard
0
Occupé

Informations sur le projet

Budget
30+ USD