- You are discussing 3rd party editors, and their functionality or configuration, have nothing to do with MetaTrader or MetaQuotes. Please consult with the editor's support services.
- Your code is a Python application which will run according to the Python interpreter's rules and not according to the editor's.
- An alternative to Python is to use MetaTrader's own programming language, namely MQL5, which has advantages:
- It is compiled instead of interpreted.
- It is faster than Python.
- It is event driven.
- It exposes much more of MetaTrader's functionality, than Python is able to access.
Improperly formatted code edited by moderator. Please use the CODE button (Alt-S) when inserting code.
Fernando Carreiro #:
- You are discussing 3rd party editors, and their functionality or configuration, have nothing to do with MetaTrader or MetaQuotes. Please consult with the editor's support services.
- Your code is a Python application which will run according to the Python interpreter's rules and not according to the editor's.
- An alternative to Python is to use MetaTrader's own programming language, namely MQL5, which has advantages:
- It is compiled instead of interpreted.
- It is faster than Python.
- It is event driven.
- It exposes much more of MetaTrader's functionality, than Python is able to access.
Ok thanks. I'll ask about it in other forum. Coz I saw questions about python codes just now so I just went with it. You can close or delete the thread now.
I will consider that , I'm still new anyway.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
My code works in Jupyter , but not in Visual Code Studio.
This is the code I want to run :
In Jupyter Lab it gave me the exact price 1973.035.
In VSCode it gave me this error : AttributeError: 'NoneType' object has no attribute 'ask'
How come the same exact code works differently using different editor. I also have checked using
from sysconfig import get_paths as gp; print(gp()['include']) and it refers to the same include folder.
What alternative to Python for Meta Trader 5 ?