Discussão do artigo "Integração da MetaTrader 5 e Python: recebendo e enviando dados" - página 5

 
RuntimeError: Sem conexão IPC
 
del
[Excluído]  
Boris Egorov:
O que significa: Sem conexão IPC?

sem conexão com o terminal

Você deve ter chamado MT5Shutdown() e está tentando obter cotações.

 
Maxim Dmitrievsky:

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.

 
Oi, existe algum site que hospede esse aplicativo pyton na internet de graça? você pode indicar algum? Testei seu script e ele funciona bem!
 
Ótimo artigo! Eu preciso enviar uma string para o servidor, aí fiquei meio perdido. É possível?
 
Problema ao rodar, erro 4014 ao criar o socket no mql5, diz que não posso usar socket com expert. Alguma ideia?
 
Também estou com o erro 4014 ao criar o socket no mql5
 
Alguém conseguiu resolver a situação do erro 4014 ?
[Excluído]  

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

Documentation on MQL5: Network Functions / SocketConnect
Documentation on MQL5: Network Functions / SocketConnect
  • www.mql5.com
//|                                                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...