Connection address should be added to the list of allowed ones on the client terminal side (Tools \ Options \ Expert Advisors).
If connection fails, error 5272 (ERR_NETSOCKET_CANNOT_CONNECT) is written to _LastError.
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError()returns the error 4014 – "Function is not allowed for call".
//| SocketExample.mq5 | //| Copyright 2018, MetaQuotes Software Corp. | //| https://www.mql5.com | "Add Address to the list of allowed ones in the terminal settings to let the example work...
Para login e uso do site MQL5.com, você deve ativar o uso de cookies.
Ative esta opção no seu navegador, caso contrário você não poderá fazer login.
Você entrou na conta. A autenticação de dois fatores foi desativada. Configure-a novamente e escaneie um novo código QR ou continue com a autenticação de dois fatores desativada.
O que significa: Sem conexão IPC?
sem conexão com o terminal
Você deve ter chamado MT5Shutdown() e está tentando obter cotações.
nenhuma conexão com o terminal
você deve ter chamado MT5Shutdown() e está tentando obter cotações
Não, eu apenas chamei o símbolo errado.
Hi all
Note
Connection address should be added to the list of allowed ones on the client terminal side (Tools \ Options \ Expert Advisors).
If connection fails, error 5272 (ERR_NETSOCKET_CANNOT_CONNECT) is written to _LastError.
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError() returns the error 4014 – "Function is not allowed for call".
https://www.mql5.com/en/docs/network/socketconnect