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

 
Vladimir Perervenko:

So how do you tell the difference?

In this case - it's just a joke about this comrade's thread)

In the general case - what exactly is R being criticised for.

 
Реter Konow:
Yes, data analysis is a necessary thing. But deadlocked development differs from proper development in that the entity not only grows and becomes more complex, but also evolves in parallel, shrinking in size and simplifying. A tendency towards chaotic, uncontrolled and decentralised growth is always a dead end. To realise the dead-end nature of R it is enough to understand the nature of its development. Growth is decentralised, code is unreadable, and there are no qualitative leaps forward in simplifying usage. Consequently, sprawling content, like a swamp, will consume users' energy and welcome them to abandon it altogether and replace it with another analysis tool. A better one. Maybe it's Python, or something else.

I am not going to write more on this subject, as it is already a flood.
Shall we not clutter up the Python thread with extraneous arguments?
 
Dmitriy Skub:
Can we not clutter up the Python thread with extraneous arguments?
No, we're not. Just giving my opinion.
 
Реter Konow:
Oh, how offended we are :)

It's a psychological misconception, I'm just communicating.

 
Using Python comes down to being able to work with off-the-shelf statistical packages (machine learning packages)? Roughly speaking, all these packages can be written in MQL5 (there is a ported Alglib with a neural network, after all)?
 
Vladimir Karputov:
Using Python comes down to being able to work with off-the-shelf statistical packages (machine learning packages)? Roughly speaking, all these packages can be written in MQL5 as well (there is a ported Alglib with neural network)?

new research in statistics and machine learning is usually immediately available in Python. This is closer to a scientific activity. Writing/rewriting is of course possible. It's just a treasure trove of useful information.

 
Renat fatkhullin :

This stubborn kolkhoz must not be touched.

Bury it as a dead-end branch.

What do you mean?

 
Gentlemen, you should continue on the subject, it would be interesting to hear who did what, what results they achieved.
 
 

From which version is it possible to connect to the terminal from Python?

I've got the 2007 build and it won't connect. Exception: No IPC connection

This is when calling MT5WaitForTerminal()

Maybe I'm setting the path to the terminal wrong?

MT5Initialize('D:\Programs\Open Broker')

Code taken from documentation:

from datetime import datetime
from MetaTrader5 import *

# установим подключение к терминалу MetaTrader 5
#MT5Initialize()
MT5Initialize('D:\Programs\ОТКРЫТИЕ-Брокер')

# подождем пока MetaTrader 5 подключится к торговому серверу
MT5WaitForTerminal()

# выведем информацию о состоянии подключения, названии сервера и торговом счете
print(MT5TerminalInfo())

# выведем информацию о версии MetaTrader 5
print(MT5Version())

# завершим подключение к терминалу MetaTrader 5
MT5Shutdown()