Articles

Market Simulation (Part 07): Sockets (I) for MetaTrader 5

Sockets. Do you know what they are for or how to use them in MetaTrader 5? If the answer is no, let's start by studying them. In today's article, we'll cover the basics. Since there are several ways to do the same thing, and we are always interested in the result, I want to show that there is indeed

Market Simulation (Part 06): Transferring Information from MetaTrader 5 to Excel for MetaTrader 5

Many people, especially non=programmers, find it very difficult to transfer information between MetaTrader 5 and other programs. One such program is Excel. Many use Excel as a way to manage and maintain their risk control. It is an excellent program and easy to learn, even for those who are not VBA

Market Simulation (Part 05): Creating the C_Orders Class (II) for MetaTrader 5

In this article, I will explain how Chart Trade, together with the Expert Advisor, will process a request to close all of the users' open positions. This may sound simple, but there are a few complications that you need to know how to manage

Market Simulation (Part 04): Creating the C_Orders Class (I) for MetaTrader 5

In this article, we will start creating the C_Orders class to be able to send orders to the trading server. We'll do this little by little, as our goal is to explain in detail how this will happen through the messaging system

Market Simulation (Part 03): A Matter of Performance for MetaTrader 5

Often we have to take a step back and then move forward. In this article, we will show all the changes necessary to ensure that the Mouse and Chart Trade indicators do not break. As a bonus, we'll also cover other changes that have occurred in other header files that will be widely used in the

Market Simulation (Part 02): Cross Orders (II) for MetaTrader 5

Unlike what was done in the previous article, here we will test the selection option using an Expert Advisor. Although this is not a final solution yet, it will be enough for now. With the help of this article, you will be able to understand how to implement one of the possible solutions

Market Simulation (Part 01): Cross Orders (I) for MetaTrader 5

Today we will begin the second stage, where we will look at the market replay/simulation system. First, we will show a possible solution for cross orders. I will show you the solution, but it is not final yet. It will be a possible solution to a problem that we will need to solve in the near future

Developing a Replay System (Part 78): New Chart Trade (V) for MetaTrader 5

In this article, we will look at how to implement part of the receiver code. Here we will implement an Expert Advisor to test and learn how the protocol interaction works. The content presented here is intended solely for educational purposes. Under no circumstances should the application be viewed

Developing a Replay System (Part 77): New Chart Trade (IV) for MetaTrader 5

In this article, we will cover some of the measures and precautions to consider when creating a communication protocol. These are pretty simple and straightforward things, so we won't go into too much detail in this article. But to understand what will happen, you need to understand the content of

Developing a Replay System (Part 76): New Chart Trade (III) for MetaTrader 5

In this article, we'll look at how the code of DispatchMessage, missing from the previous article, works. We will laso introduce the topic of the next article. For this reason, it is important to understand how this code works before moving on to the next topic. The content presented here is