Discussing the article: "From Basic to Intermediate: Like Bubbles"

 

Check out the new article: From Basic to Intermediate: Like Bubbles.

This article will explain a very simple and easy-to-understand mechanism whose purpose is to sort any array. In it, we will see that the result obtained does not always meet expectations, so the implementation itself will need to be adapted to achieve the desired results.

In the previous article, From Basic to Intermediate: Navigating the Sandbox, we looked at how to navigate within one of the sandboxes supported by MetaTrader 5. It was also shown that we can do this in two completely different ways and for different purposes. One way to navigate was to use a dialog box built into the operating system itself, which made it the most practical, simple, and convenient way to move around within the sandbox.

However, a second navigation method was also demonstrated. This method is implemented directly in the code of the application being developed., which makes it somewhat more complex. The fact is that the purpose of the navigation system in this case is not to provide quick and easy interaction with the application user, but to accomplish a completely different task: to determine what file types exist and how the directory structure is organized within the sandbox.

This second approach—or, rather, way of navigating within the sandbox—opens up some doors for us that we can explore a little right now. This happens because, even though everything may seem perfect during application testing, in practice things can often go wrong. Files and directories may be presented in a completely chaotic order, and, as is much more likely in this case, the names may be listed in the wrong order.


Author: CODE X