Machine learning in trading: theory, models, practice and algo-trading - page 1207

 
Maxim Dmitrievsky:

I started reading, because I don't know much about networking protocols.

I want to make a TCP\IP connection to python.

Too complicated for this task.

Import socket, and all the love.

 
Yuriy Asaulenko:

Too complicated for this task.

Import socket, and all the love.

or so

 
Igor Makanu:

wrong place... I told you, Sharpe (Visual Studio) has everything for Python, but not higher than 2.7

I like Sharp and it connects to MT5 in 2 clicks - I'm hooked on Sharp, I haven't used normal compilers for a long time, it's cool! I am still reading, but Windows form with buttons and all its accessories was brought to dll without problems and connected with MT5 - MT5 has 100% Sharp support, you don't need to describe anything, just use dll, like a miracle ))))


Python for C#https://msdn.microsoft.com/ru-ru/dn314784.aspx

what sharp, what dlls, why?

can you give me an example how to connect python to mt5 via charp?

there's python support for VS, i know that... what does sharp have to do with it?

I wanted to focus on VS, not on this all

 
Igor Makanu:

Sharp is C# !

make a test case of item 10https://www.mql5.com/ru/forum/285631

here to the point wrote how to do the complex, but there is a 5 min job, literallyhttps://www.mql5.com/ru/forum/293630/page57#comment_9851502

ZS: remember you saw the new alglib on the alglib site? Now download the project from the algib site and build it into a .dll - using my manual you get a dll, which you don't even need to connect to MT5 (one line #import does not count!)

Well, that's true... but I don't want an alglib, I want python))

i understand that sharp is ssharp, i don't understand what does the connection between mt5 and python have to do with it

but this is a good example, it will come in handy... there's also a lib there, what's the difference? it's faster on the pluses

By the way, in p. 10 the list of functions will be visible in the editor, or you should recall them yourself or look through the reference book on the site?

It's all very interesting, but not very relevant... and terribly slow to use, problems with matrices, you can't explore anything... That's what I'm thinking, why would I need it :)
 
Igor Makanu:

I don't even know how to explain it, I'm a lousy teacher, but it's like:

- you make a project in C#.

- you add to the project what you need, let it be Python - I haven't tried it, but it will work 99% sure

- you can see all the things in C# in MT5, and you can see all the things in C# that you have added to the project.

- the task is simple, to make calls from MT5 in C# and get and set in Python

i'm still finishing reading the C# manual, it is nothing new, but i need to read everything, the memory handling is different from the cic model, or rather i want to check the details, i can write everything in c++

python works through an interpreter, what does it need a layer in the form of sycharp?

this is the most ingenious language that doesn't need anything but the order dispenser
 
Maxim Dmitrievsky:

Python works through an interpreter, so why does it need a layer in the form of sycharp?

it's the most ingenious language that doesn't need anything but order dispatch

The server is in Python. But the socket client for MT anyway will have to be either in C++ or C#.

 
Yuriy Asaulenko:

The server is in Python. But the socket client for MT will either have to be made in C++ or C#.

zeroMQ or https://www.mql5.com/en/blogs/post/706665

or just winapi, no? it takes about half an hour
Socket library for MT4 and MT5
Socket library for MT4 and MT5
  • 2017.09.06
  • www.mql5.com
For anyone not used to socket programming: the model is that you create a server socket; you accept connections on it; and each acceptance creates a new socket for communicating with that client. No data is sent or received through the server socket itself. You create a server socket using an instance of ServerSocket(), telling the constructor...
 
FxTrader562:

I guess the library server is already there for python and TCP:

https://wiki.python.org/moin/TcpCommunication

yes, like dva palza obossat (pissing on two fingers)

 
FxTrader562:

That was a simple code to start with pyhton TCP .... I need more time to learn python first :))

Now, I am just working on the 100% automation of your current "Monte carlo RL" EA

that's fine, good luck, maybe I provide 3-d part soon with some performance improvement

 
Maxim Dmitrievsky:

zeroMQ or https://www.mql5.com/en/blogs/post/706665

or just winapi, no? it takes half an hour

I use NET Sockets in C++ to do this. It's a high-level lib, unlike winapi. It's easy to roll it into C# for MT.

Reason: