Discussing the article: "From Basic to Intermediate: Events (II)"

 

Check out the new article: From Basic to Intermediate: Events (II).

In this article, we will see that not everything always needs to be implemented in a certain specific way. There are alternative approaches to problem-solving. To properly understand this article, it is necessary to grasp the concepts described in the previous articles. The materials presented here are for educational purposes only. They should not be considered as a final application, the goal of which is not to study the concepts presented here.

When we run code 03, we see something similar to the animation shown below:


Animation 01

Please note that at some point we changed the chart's timeframe and, in doing so, generated the same sequence of events that we discussed in the previous topic. This can be inferred from the information printed to the terminal. But that's not all that's happening here. Notice that, unlike the previous code 03, we are not using a file for temporary information storage (in this case, the counter value), but instead we are asking MetaTrader 5 to store this information in a very specific way. 

Author: CODE X