Discussing the article: "Market Simulation: Position View (XIV)"

 

Check out the new article: Market Simulation: Position View (XIV).

Now we will implement this solution, since MQL5 is based on the same principles as event-driven programmingю Developers often use this model when creating DLLs. I know that at first, the event-driven model will seem confusing and illogical. But in this article, I will explain the principles of event-driven programming in a way that is easier to understand, so that if you are just getting started, you will have a clear grasp of how it works. Understanding what I am about to explain in this article will help you throughout your work as a programmer.

Hello, everyone, and welcome to a new article in our series on how to create a replay/simulation system.

In my previous article “Market Simulation: Position View (XIII)”, I showed how to view the result of an open trade and check whether the position is generating a profit or a loss. However, we can expand and improve this same system to turn the position indicator into a practical and useful tool for everyday use. In this article, we will adapt it to various situations. That is why I invite you to follow along with this article, as these same techniques will prove useful in other projects developed using MQL5.


Author: Daniel Jose