Discussing the article: "Developing a Replay System (Part 30): Expert Advisor project — C_Mouse class (IV)"

 

Check out the new article: Developing a Replay System (Part 30): Expert Advisor project — C_Mouse class (IV).

Today we will learn a technique that can help us a lot in different stages of our professional life as a programmer. Often it is not the platform itself that is limited, but the knowledge of the person who talks about the limitations. This article will tell you that with common sense and creativity you can make the MetaTrader 5 platform much more interesting and versatile without resorting to creating crazy programs or anything like that, and create simple yet safe and reliable code. We will use our creativity to modify existing code without deleting or adding a single line to the source code.

To demonstrate this, we will create a modification of the C_Mouse class, but without using inheritance and polymorphism. We will get a completely different analytical model, different from the original system that is present in the C_Mouse class. To do this, we'll create a new class that may (or may not) inherit from the C_Studies class that we looked at in the previous article. Whether or not to inherit the C_Studys class is more a personal question than a practical one. In fact, one way or another, one project will have nothing to do with the other, since they can work in parallel. Despite this, any code that belongs to the main system will inherit the C_Mouse class until the code that extends this class is considered stable and interesting enough for us to use it in the final project.

Before moving on to programming, it is important to know that the system can progress in two different ways. The path we choose depends on what we want to do and how far we want to go. Since we have two paths and the difference between them is very small, let's look at both. In the attached code, you will have access to one of two paths. But if you want, you can make the necessary changes to take a different path.

Author: Daniel Jose

 
Very accurate and concrete
Reason: