Open Camilo-Mora opened 1 year ago
This problem appears to be in MT5 when having more than two accounts set. I presume there is only one channel of communication between R and MT5. What worked in my case was :
This is an amazing package, but there is very little information on how to deal with different scenarios (like how to use when more than two accounts are active in MT5).
Boa noite, Estou tendo um problema, será que poderia me ajudar. Consigo conectar mas logo desconecta e aparece essa msg: Error in if (server_resp == "") return(NULL) : argument is of length zero.
I have had this issue before, and cannot recall how to fix so it will be good to leave a trial for the future. Basically, I have not been able to create a socket connection. I get this error in R, after the function Ping MT5.Ping() Error in base::socketConnection(host = "localhost", port = iPort, blocking = TRUE, : cannot open the connection In addition: Warning message: In base::socketConnection(host = "localhost", port = iPort, blocking = TRUE, : localhost:23456 cannot be opened [1] FALSE
Do you know how to fix it?