Discussion of article "MetaTrader 5 and Python integration: receiving and sending data" - page 5

 
RuntimeError: No IPC connection
 
del
[Deleted]  
Boris Egorov:
What does it mean: No IPC connection?

no terminal connection

you must have called MT5Shutdown() and are trying to get quotes.

 
Maxim Dmitrievsky:

no connection to the terminal

Probably you have called MT5Shutdown() and are trying to get quotes

No, I just called the symbol wrong.

 
Oi, there is some place website to host this pyton application on internet for free? can you indicate some? I tested your script and  it works nice!
 
Great article! I need to send a string to the server, so I got a bit lost. Is it possible?
 
Problem when running, error 4014 when creating socket in mql5, says I can't use socket with expert. Any ideas?
 
I'm also getting error 4014 when creating the socket in mql5
 
Has anyone managed to resolve the 4014 error situation?
[Deleted]  

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...