You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: From Basic to Intermediate: Subwindows (I).
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