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

 
What is the reason for running error: errer 4014?
 
chenjianzhe:
What is the reason for running error: errer 4014~?

Hi, sockets don't work in tester at this time. Also, you mus add localhost to allowed webrequests in mt5 settings


 

I'm segnaling an error.


Functions:

-MT5CopyRatesFrom

-Mt5CopyRatesFromPos

-MT5CopyRatesRange


Return tuple of MT5Rate object, MT5Rate object has low attribute that is actually the high and high attribute that is low.

You can clearly see this error on the documentation page, the print statements at the end of the page it's the exact same problem i get with MetaTrader5 5.0.6.

 

http://localhost

doesn't work in my terminal.

127.0.0.1

arbeiten

 
dmipec:

http://localhost

doesn't work in my terminal

127.0.0.1

arbeiten

just try localhost, what does HTTP have to do with it?

 
Maxim Dmitrievsky:

just try localhost, what does HTTP have to do with it?

Yes. It happens.

 

Im getting the next error when i try to install the metatrader repository with pip:

In file included from src/MetaTrader.cpp:6:

src/stdafx.h:16:10: fatal error: 'sdkddkver.h' file not found

#include <sdkddkver.h>

          ^~~~~~~~~~~~~

 
Hi, how to get all data about a currency pair, like : price and volume stack, min and max candlestick state ?
 
Maxim Dmitrievsky:

ahh, right. Sockets still not work in strategy tester, maybe later developers fix this 

"Unfortunately, the current implementation of the socket client in MetaTrader 5 is not suitable for running in the Strategy Tester, so no full testing and measurement of the solution performance were performed. Let us wait for further updates of the socket functionality" from the bottom of the article
hi maxim

i'm trying to install EA and Python client by your instruction but i'm getting a 4014 error . like andres kull comment ,SocketCreate ends with error when i execute it on strategy tester.

can you guide me to fix this problem? and this problem has been fixed by developers from  2019.05.04 (the Date of this post ) ? 

i'll really appreciate you . 



 
jalal ahmadi:
hi maxim

i'm trying to install EA and Python client by your instruction but i'm getting a 4014 error . like andres kull comment ,SocketCreate ends with error when i execute it on strategy tester.

can you guide me to fix this problem? and this problem has been fixed by developers from  2019.05.04 (the Date of this post ) ? 

i'll really appreciate you . 



Hi, sockets still not work in tester by default (limited by meqtaquotes in sense of security). Maybe later they will add such a possibility.