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

MQL4 Experts Conversão

Trabalho concluído

Tempo de execução 5 dias
Comentário do cliente
Very professional and skilled.

Termos de Referência

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.

Respondido

1
Desenvolvedor 1
Classificação
(390)
Projetos
416
30%
Arbitragem
74
19% / 72%
Expirado
52
13%
Trabalhando
2
Desenvolvedor 2
Classificação
(59)
Projetos
90
39%
Arbitragem
26
4% / 77%
Expirado
40
44%
Livre
3
Desenvolvedor 3
Classificação
(58)
Projetos
76
33%
Arbitragem
9
78% / 11%
Expirado
7
9%
Livre
Publicou: 2 códigos
4
Desenvolvedor 4
Classificação
(361)
Projetos
644
26%
Arbitragem
92
72% / 14%
Expirado
12
2%
Trabalhando
Publicou: 1 código
5
Desenvolvedor 5
Classificação
(1235)
Projetos
2820
80%
Arbitragem
156
22% / 43%
Expirado
487
17%
Livre
6
Desenvolvedor 6
Classificação
(8)
Projetos
10
40%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(64)
Projetos
144
46%
Arbitragem
19
42% / 16%
Expirado
32
22%
Livre

Informações sobre o projeto

Orçamento
100+ USD