Hi all. Now it is possible to run a script in Python development environment and it will work in MT5.
Can you please tell me if it is possible to write a Python EA and run it in MT5 itself?
There are scripts, but they, as I understand, are for displaying information more, not for making trades under certain conditions. Couldn't find a thread on the subject...
Hi all. Now it is possible to run a script in Python development environment and it will work in MT5.
Can you please tell me if it is possible to write a Python EA and run it in MT5 itself?
There are scripts, but they, as I understand, are for displaying information more, not for making trades under certain conditions. Couldn't find a thread on the subject...
[in] Структура типа MqlTradeRequest, которая описывает требуемое торговое действие. Обязательный неименованный параметр. Пример заполнения запроса и состав перечислений смотрите ниже. Идентификатор эксперта. Позволяет организовать аналитическую обработку торговых ордеров. Каждый эксперт может выставлять свой собственный уникальный...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Maybe Metatrader has a setting that prohibits sending quotes to python?
Run the standard example: [data folder]\MQL5\Scripts\Python\copy_rates_from.py
Maybe Metatrader has a setting that prevents quotes from being sent to python?
Try this.
Try this.
I get this error:
MQL_ERROR (-1, 'Terminal: Call failed')
Process finished with exit code 0
Run the standard example: [data folder]\MQL5\Scripts\Python\copy_rates_from.py
Launch it, it gives me the output:
MetaTrader5 package author: MetaQuotes Software Corp.
MetaTrader5 package version: 5.0.33
Print obtained data as is
Traceback (most recent call last):
File "C:/Users/rale/PycharmProjects/probs/proba1.py", line 32, in <module>
For rates in rates:
TypeError: 'NoneType' object is not iterable
Process finished with exit code 1
The problem solved itself. Maybe someone could use it.
Uninstalled Metatrader 5 from Alpari, downloaded a new one from forexclub, connected to their account and everything worked.
One of two things, either the first MT5 was wrongly installed or there's a problem with the broker.
Either way, thanks to everyone who tried to help!
The problem solved itself. Maybe someone could use it.
Uninstalled Metatrader 5 from Alpari, downloaded a new one from forexclub, connected to their account and everything worked.
One of two things, either the first MT5 was wrongly installed or there's a problem with the broker.
In any case thanks to everybody who tried to help!
Maybe there is a limit on the number of bars, you need to remove this restriction in the terminal (Tools->Options->Max bars in chart).
Hi all.
Now it is possible to run a script in Python development environment and it will work in MT5.
Can you please tell me if it is possible to write a Python EA and run it in MT5 itself?
There are scripts, but they, as I understand, are for displaying information more, not for making trades under certain conditions.
Couldn't find a thread on the subject...
Hi all.
Now it is possible to run a script in Python development environment and it will work in MT5.
Can you please tell me if it is possible to write a Python EA and run it in MT5 itself?
There are scripts, but they, as I understand, are for displaying information more, not for making trades under certain conditions.
Couldn't find a thread on the subject...
https://www.mql5.com/ru/docs/integration/python_metatrader5/mt5ordersend_py