A Trade Copier to Convert Hedge Trades to Non-Hedge Trades

MQL4 Experts Convertir

Tâche terminée

Temps d'exécution 5 jours
Commentaires du client
Very professional and skilled.

Spécifications

I need a trade copier to copy trades from one account with hedged trades, to another account with no hedge capability. The lot sizes are ignored, and only the number of BUY or SELL trades are considered. Only EURUSD is traded.


Examples:


Master Slave

0 trades 0 trades
Open BUY 1 BUY 1 BUY
Open SELL 1 BUY, 1 SELL 0 trades
Close BUY 1 SELL 1 SELL
Close SELL 0 trades 0 trades



Open BUY 1 BUY 1 BUY
 Open SELL  1 BUY, 1 SELL  0 trades
 Open SELL  1 BUY, 2 SELL  1 SELL
Close SELL 1 BUY, 1 SELL 0 trades
 Close SELL  1 BUY  1 BUY
 Close BUY  0 trades  0 trades


From the table above, there are situations when closing a BUY in the master will result in opening a SELL in the slave. Conversely, opening a BUY could result in closing a SELL. BUY can be treated as +, and SELL as -. As long as they balance out, it is correct.

The relative lot size between the master and slave is irrelevant, since I use the same fixed lots for master and slave.


Additional settings I need:

- Filter only master trades with a specific lot size to be copied.

Répondu

1
Développeur 1
Évaluation
(390)
Projets
416
30%
Arbitrage
74
19% / 72%
En retard
52
13%
Travail
2
Développeur 2
Évaluation
(59)
Projets
90
39%
Arbitrage
26
4% / 77%
En retard
40
44%
Gratuit
3
Développeur 3
Évaluation
(58)
Projets
76
33%
Arbitrage
9
78% / 11%
En retard
7
9%
Gratuit
Publié : 2 codes
4
Développeur 4
Évaluation
(361)
Projets
644
26%
Arbitrage
92
72% / 14%
En retard
12
2%
Travail
Publié : 1 code
5
Développeur 5
Évaluation
(1235)
Projets
2820
80%
Arbitrage
156
22% / 43%
En retard
487
17%
Gratuit
6
Développeur 6
Évaluation
(8)
Projets
10
40%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(64)
Projets
144
46%
Arbitrage
19
42% / 16%
En retard
32
22%
Gratuit

Informations sur le projet

Budget
100+ USD