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...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
What does it mean: No IPC connection?
no terminal connection
you must have called MT5Shutdown() and are trying to get quotes.
no connection to the terminal
Probably you have called MT5Shutdown() and are trying to get quotes
No, I just called the symbol wrong.
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