Discussing the article: "Market Simulation (Part 17): Sockets (XI)"

 

Check out the new article: Market Simulation (Part 17): Sockets (XI).

The implementation of the part of the code that will run in MetaTrader 5 does not present any difficulty. However, there are several points that need to be taken into account. This is necessary so that you can make the system work. Remember one important thing: not just one program will be running. In reality, we will have to run three programs simultaneously. It is important to implement and structure each of them in such a way that they can interact and communicate with one another, and that each of them understands what the others are trying or intending to do.

In the two previous articles, we explained how to prepare Excel to interact with MetaTrader 5. In particular, in the previous article, Market Modeling (Part 16): Sockets (X), we explained how to write code in VBA. This is necessary for correct interaction between Excel and the server written in Python, even if it may seem to you that such interaction would not cause any problems.

In that short section where we explained what sockets are, we showed that problems can arise when Excel is used incorrectly. This occurs when using a server in Python. However, as already demonstrated in the two previous articles, writing VBA code correctly solves any issues of interaction between Excel and Python and ensures their perfectly coordinated operation. But one more necessary step remains to fully complete the implementation. This must be carried out in the section dedicated to MetaTrader 5, where we will need to make several decisions.


Author: Daniel Jose

 
Excellent work my friend!

Is there any way we can pull data from the book and/or times and trades into Excel or even Python?

Thanks for your attention!