Termos de Referência
I've been studying the possibility of developing an EA that connects to other mt5 accounts and "sends" orders from the master account using the login details of the slave accounts, I wrote the code below but I can't compile it and I don't know if it makes sense.
I'm looking for someone to adjust this code and compile this EA
//+------------------------------------------------------------------+ //| Global variables declaration | //+------------------------------------------------------------------+ input string otherAccountLogin = ""; // Login of the other account input string otherAccountPassword = ""; // Password of the other account input string otherAccountServer = ""; // Server of the other account int otherAccount = 0; // Account number of the other account //+------------------------------------------------------------------+ //| Expert Advisor initialization function | //+------------------------------------------------------------------+ int OnInit() { // Connect to the other account using the provided login, password and server otherAccount = AccountOpen(otherAccountLogin, otherAccountPassword, otherAccountServer); if(otherAccount == 0) { Print("Failed to connect to the other account"); return INIT_FAILED; } return INIT_SUCCEEDED; } //+------------------------------------------------------------------+ //| Expert Advisor tick function | //+------------------------------------------------------------------+ void OnTick() { // Get the latest trade from the current account MqlTradeRequest request; MqlTradeResult result; if(!AccountTradeLast(request, result)) { Print("Failed to get the latest trade from the current account"); return; } // Execute the trade in the other account if(!OrderSend(otherAccount, request, result)) { Print("Failed to execute the trade in the other account"); return; } Print("Trade replicated in the other account: ", request.symbol, " ", request.action, " ", request.volume); }
Respondido
1
Classificação
Projetos
205
26%
Arbitragem
12
25%
/
58%
Expirado
39
19%
Livre
2
Classificação
Projetos
16
0%
Arbitragem
0
Expirado
2
13%
Livre
3
Classificação
Projetos
8
0%
Arbitragem
8
13%
/
88%
Expirado
0
Livre
4
Classificação
Projetos
676
41%
Arbitragem
2
100%
/
0%
Expirado
1
0%
Livre
Publicou: 9 códigos
5
Classificação
Projetos
477
40%
Arbitragem
105
40%
/
24%
Expirado
81
17%
Carregado
Publicou: 2 códigos
6
Classificação
Projetos
17
59%
Arbitragem
2
0%
/
100%
Expirado
2
12%
Livre
Pedidos semelhantes
(Please read carefully to fully understand the job) I am looking for a developer who has real knowledge in HFT strategies and the ability to create an EA that can run on a real account and be profitable. I already have an EA that performs well on a demo account, but not on a real account. This EA can be used as an example to build a new strategy. I repeat: it should only be used as a reference, not to modify or
Project Description: I am looking for a Senior MQL5 Developer to build a high-precision Expert Advisor (EA) for the US30 (Dow Jones) index, based on Smart Money Concepts (SMC) and ICT methodologies. The EA must handle multi-timeframe analysis and execute trades with mechanical precision. 1. Multi-Timeframe Analysis & Structural Logic • D1 (Confluence): Automatic plotting of Daily Fair Value Gaps (FVG) and Order
Informações sobre o projeto
Orçamento
30 - 500 USD
Prazo
de 1 para 10 dias