İş Gereklilikleri
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); }
Yanıtlandı
1
Derecelendirme
Projeler
205
26%
Arabuluculuk
12
25%
/
58%
Süresi dolmuş
39
19%
Serbest
2
Derecelendirme
Projeler
16
0%
Arabuluculuk
0
Süresi dolmuş
2
13%
Serbest
3
Derecelendirme
Projeler
8
0%
Arabuluculuk
8
13%
/
88%
Süresi dolmuş
0
Serbest
4
Derecelendirme
Projeler
663
41%
Arabuluculuk
2
100%
/
0%
Süresi dolmuş
1
0%
Çalışıyor
Yayınlandı: 9 kod
5
Derecelendirme
Projeler
475
40%
Arabuluculuk
105
40%
/
24%
Süresi dolmuş
80
17%
Meşgul
Yayınlandı: 2 kod
6
Derecelendirme
Projeler
17
59%
Arabuluculuk
2
0%
/
100%
Süresi dolmuş
2
12%
Serbest
Benzer siparişler
We are looking for a highly qualified, skilled, and experienced MT5 developer (ideally with experience in the financial sector and financial markets) who is capable of creating and implementing a custom-built, professional integration and analysis framework. This framework should include order flow alerts, broker anomalies (including hunting indicators, etc.), the integration of external signals, an audio alert
solicito programador que tenha experiencia em outras linguagem, para criar transferencia de dados da janela de evolucao do tempo em tempo real para EXCEL . e fazer um indicador que plot linhas no grafico com base em celula do excel. exportar da aba do times e trades informacao da aba da evolucao do tempo > excel e fazer um indicador para o profit plotar linha no grafico com base em celulas do excel
Proje bilgisi
Bütçe
30 - 500 USD
Son teslim tarihi
from 1 to 10 gün