EA that logs in and sends orders

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
Desenvolvedor 1
Classificação
(186)
Projetos
205
26%
Arbitragem
12
25% / 58%
Expirado
39
19%
Livre
2
Desenvolvedor 2
Classificação
(12)
Projetos
16
0%
Arbitragem
0
Expirado
2
13%
Livre
3
Desenvolvedor 3
Classificação
(4)
Projetos
6
0%
Arbitragem
4
25% / 75%
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
(355)
Projetos
417
34%
Arbitragem
2
100% / 0%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(260)
Projetos
422
38%
Arbitragem
86
44% / 19%
Expirado
70
17%
Ocupado
6
Desenvolvedor 6
Classificação
(11)
Projetos
17
59%
Arbitragem
2
0% / 100%
Expirado
2
12%
Livre
Pedidos semelhantes
Esse robo tem 5 mil linhas mas sao codigos bem basico. Eu sou desenvolvedor mas nao consigo agora converte pois estou em viaje. Preciso de alguem serio para converte esse simples robo mql4 para mql5 num preço bom
Hello I need a developer to add a news filter to my code, and also convert this code to MT5 (MQ5). The code is simple. Attached a example of a simple news filter
olá! Tenho um robo bem acertivo no profit e nao tenho mais o fonte dele... era programado para ter ativação todo mes. era muito usado no mini-indice b3. Preciso recuperar e melhorar o programa, seria possivel fazer um desassembly
Preciso de um EA baseado em estratégia pessoal, cruzamento de alligator com media movel usará RSI e Estocatico apenas para ter consciencia dos niveis de sobre compra e sobre venda, nesses sentido um dos gatilhos sera o cruzamento de uma media movel linear e uma media na nuvem de ichimoku
Eu tenho um Instagram referência no mercado de automação pra trading e busco desenvolvedores com possível parceria em sociedade. Já tenho alguns robôs para forex e quero entrar no mercado de futuros na B3 A empresa no seu auge já faturou 217 mil no ano. Preciso de alguem que tenha uma ferramenta pronta e otimizada, para eu poder divulgar

Informações sobre o projeto

Orçamento
30 - 500 USD
Desenvolvedor
27 - 450 USD
Prazo
de 1 para 10 dias