MetaTrader 5 Python User Group - how to use Python in Metatrader - page 78

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
Renat, is there any update on ONNX support?
No.
There is no demand and no prepared audience yet.
A lot of changes have been made over the past year, old scripts are no longer working.
There is a terminal MT5 build 2361, 32bit on Windows 7. The terminal itself works, but connection of python scripts has stopped working (although it was working at the beginning of the year).
Obviously due to terminal updates, nothing else has changed. For the test run a simple script
Question what version of MetaTrader5 python module should I install to make it work again ? (Or how to rollback the terminal updates ?)
I tried different versions of module - all of them have errors. Those that are newer give out -10003, 'IPC initialize failed, MetaTrader 5 x64 not found',
some of them initialize and run terminal, but they return RuntimeError: IPC recv failed in 'py_test.py'.
The oldest 5.0.10 has other commands, but they don't work either.
Terminal can't update to newer versions, there was some working version of python module, but I can't find it now.
64-bit version of the terminal requires OS updates and a lot of other updates, plus 64-bit OS eats many times more memory and disk space, bad choice. In general, the policy of auto-updating anything is bad. If it works, do not touch it.
In general, you should have a table in the documentation which versions are compatible with which, if you do not support compatibility with older versions and updates are forced.
Support for the 32-bit operating system was disabled many builds ago. The terminal has changed a lot since then. Hence the likely solution to your problem: you MUST use 64-bit Windows 10.
But there WAS a compatible build of the terminal and module, you can just install them, without any new features.
And requiring Windows 10 64 bit is too much for a program like the terminal. It is too heavy, greedy, unreliable to run anything that requires long-term operation. There are also problems with automatic updates. It's a pity that MT is tied to this system.
You NEED to use 64-bit Windows 10.
What's wrong with Windows 7 x64? Did I miss another update???
What's wrong with Windows 7 x64? Did I miss another news???
Seems to me 7 is better than 10. no orientation on mobile systems.
For me 7 is better than 10. no orientation to mobile systems.
I agree, worked on 10 for almost a year and was happy with 7 when I came home!
No.
As long as there is no demand and no prepared audience.
I run it both as a script in MetaEditor and in jupyter notebook.
I can't print the first five lines of the DataFrame object.
I take the script from the 'data folder'\Scripts\Python\copy_rates_from.py' and add the lines:
and the method doesn't output anything:
Why the 'head()' method didn't work, but this maneuver:
Forum on trading, automated trading systems and strategy testing
New version of MetaTrader 5 build 2650: Background Loading of Charts and Improvements in MQL5 Profiler
Rashid Umarov, 2020.11.10 14:03
Try it
Result
worked?
Why didn't the 'head()' method work, but this manoeuvre:
worked?
Because the head() method(https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.head.html) returns an object, not output to the log. To see the content, you need to explicitly send the object to print()
This anaconda for convenience outputs the objects as if print() had been called.