MetaTrader 5 Python User Group - how to use Python in Metatrader - page 42
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
Have the constants also changed?
On output:
yes the constants have the MT5_ prefix removed, here is an example of use:
more complex example - Expert Advisor with trading on two moving averages without using history:
Yes, the constants have the MT5_ prefix removed, here is an example of use:
A more complex example is an EA with trading on two moving averages without using history:
Thank you.
The evolution of the lib is good. Question to developers - where is the roadmap for the pinova lib?
What innovations can we still expect, what not to expect?
In the test server (MetaQuotes-Beta server, address 78.140.180.203:443) a beta version of terminal 2323 with new features is available. Public beta will be released tomorrow.
We have also released new MetaTrader 5.0.20 version for Python (pip install --upgrade metatrader5) with new syntax for account switching:
It is now possible to specify authorisation directly in the initialisation, in both full and short form.
The wait function is abolished and now the full initialization cycle with waiting is performed directly in initialize, where you can specify the waiting time in milliseconds.
The Python library is now guaranteed to find the latest active copy of the terminal even if it has been installed in portable mode (/portable key).
Python programs are already shown directly in the navigator:
This Friday's release will allow to run them as usual MQL5 scripts and they will be bound to charts.
Later we will add access to all (including custom) indicators in read mode to the Python library. This will make the work in python more productive. But this is not a priority yet, we will do it much later.
Also released a new version of MetaTrader 5.0.20 for Python (pip install --upgrade metatrader5) with new syntax for switching accounts
There are more features than MQL5.
In parallel, we are expanding the editor's capabilities and in the next release (not coming this Friday) it will be fully possible to use Clang/LLVM and Microsoft Visual Studio to compile C++ programs:
Perhaps we'll include C# too.
Extensive work to fully use SQLite databases: SQLite: native work with SQL databases in MQL5
This allows you to easily operate and exchange large amounts of data between different systems and within the terminal.
More features than MQL5.
Are we getting there?
In parallel, we are expanding the editor's capabilities and in the next release (not coming this Friday)
will be fully capable of using Clang/LLVM and Microsoft Visual Studio to compile C++ programs:
A linker will be added for linking .lib files in
projects?
For linking .lib files in projects
will a linker be added?
Multiple target variants can be specified within projects:
DLL/EXE files have custom defines, libraries and additional parameters for the compiler:
The linker is automatically used from Clang or Visual Studio. It does not need to be explicitly specified.
There are more features than MQL5.
It is as a result that the MetaTrader 5 platform has more features.
By itself, any language is useless without an information and trading platform (a platform is not a terminal, but an entire complex of servers with an infrastructure and ecosystem) that feeds it with data and provides trade execution.
Our goal is to present a seamless platform with a broad set of tools for algotrading, covering different consumer segments.
Python is a clear winner in ML and a very effective language for doing research. Even though you can't get it into a tester, it's also good in direct integration mode.
By the way, unlike other Python libraries (often written head-on and poorly optimized), we have strongly optimized the payoff of massive charted data. This means that you can get deep history efficiently in memory and quickly.