On future posts, please use the CODE button when you insert code.
![MQL5.community - User Memo MQL5.community - User Memo](https://c.mql5.com/36/63/mql5-community-user-memo__3.jpg)
- www.mql5.com
Hello everyone,
I have a working code, having tried it on other computers than mine. Just on my computer, despite using the same api in the same version, price calls don't work. Exemple:
> show good information But:
Yes I did, and as I said my code is working. By installing the same dependencies between my computer and that of a friend, my code works for him and not for me.
Just, on my computer all price calls return "none".
Sorry I had misread about your issue.
a print(mt5.__version__) returns 5.0.44 by the way
I have 5.0.45, try firstly to upgrade MT5 package.
If the problem persists, use last_error() to get more information :
print("symbol_info_tick() failed, error code =",mt5.last_error())
Sorry I had misread about your issue.
I have 5.0.45, try firstly to upgrade MT5 package.
If the problem persists, use last_error() to get more information :
However, there is no real error by using the api, like as i said, the api just return a NoneType object. So the problem it's difficult to resolve without any error.
The problem is that even with the same version of api on computer friend, the code don't work, but when i come back home i'll try to update my api version.
However, there is no real error by using the api, like as i said, the api just return a NoneType object. So the problem it's difficult to resolve without any error.
So we are back to the documentation :
Return Value
Return info in the form of a tuple. Return None in case of an error. The info on the error can be obtained using last_error().
There is an error, it will help to know why symbol_info_tick returns 'None'.
![Documentation on MQL5: Python Integration / symbol_info_tick Documentation on MQL5: Python Integration / symbol_info_tick](https://c.mql5.com/36/64/documentation-on-mql5-python-integration.png)
- www.mql5.com
So we are back to the documentation :
There is an error, it will help to know why symbol_info_tick returns 'None'.
the error code are "error code = (-4, 'Terminal: Not found')", but it's strange because when i start my code the terminal MT5 open
RES_E_NOT_FOUND | -4 | no history |
![Documentation on MQL5: Python Integration / last_error Documentation on MQL5: Python Integration / last_error](https://c.mql5.com/36/68/documentation-on-mql5-python-integration.png)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a working code, having tried it on other computers than mine. Just on my computer, despite using the same api in the same version, price calls don't work. Exemple:
> show good information But: