Discussing the article: "From Basic to Intermediate: Subwindows (I)"

Check out the new article: From Basic to Intermediate: Subwindows (I).

In this article, we'll start exploring how to work with subwindows in MetaTrader 5 using MQL5. This is a broad topic with several practical aspects that may prove challenging, so we'll start with a brief introduction. And yet, dear reader, it’s important that you understand what we’re going to discuss here, because it could play an important role in your future.

In my previous article, From Basic to Intermediate: Technical Indicators (II), I showed how easy it is to add several moving averages to the same indicator with almost no changes to the source code. This approach to structuring code is very useful when you need to change its behavior quickly and without unnecessary complications.

However, while this method is useful and interesting, it represents only a small part of what we can do with indicators added to a chart.

There are situations that call for a more thoughtful approach and a more efficient use of MQL5 resources. When that isn't enough, we also need to have a good understanding of how MetaTrader 5 works, since MQL5 is primarily used to control the platform's behavior and achieve the results we want. Many people believe that MQL5 is a general-purpose language, like C or C++, but that is not the case. Therefore, we need to understand just how far we can go with MQL5 before resorting to more drastic measures.


Author: CODE X