The solution is interesting, if we mean a simplified selection of financial instruments.
For real trading, the set of parameters for selection is insufficient (spread, ATR, time - this is not enough), as there is no the most important one:
- Analysing the price dynamics of each financial instrument (full-fledged analysis of activity, directionality),
- analysis of fundamental factors (for stock market instruments - to a greater extent).
Thank you to the author - a lot of work has been done, both for mql4 and mql5, which can become the basis for a complex analytical system.
And what are precompiler directives for ???
#ifdef __MQL5__ // Code for MQL5 #else // Code for MQL4 #endif
But anyway, you have to call it either .mq4 or .mq5.
Thanks, great article!
I have never used #include. Please correct me if I've got it wrong. Our CArrayString arrays will be saved to this file by default.
#include <Arrays\ArrayString.mqh>
But in the code I have not understood at what point this file is written to. I realise that this is a nub question, but I would be glad to have a link to clarify this fact. Thank you very much!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Developing the symbol selection and navigation utility in MQL5 and MQL4 has been published:
Experienced traders are well aware of the fact that most time-consuming things in trading are not opening and tracking positions but selecting symbols and looking for entry points. In this article, we will develop an EA simplifying the search for entry points on trading instruments provided by your broker.
Adding a response to button pressing
So far, the buttons added to the chart are just a decoration. Nothing happens when pressing them. Let's instruct them on how to respond to pressing.
Unfortunately, the standard OnChartEvent function is of no help to us here, since it reacts only to the events that happened on a chart the EA is launched on, while the buttons are added to a new chart.
Perhaps, there are some more convenient ways. I came up with only one way to respond to changes that occurred on another chart. It involves the OnTimer standard function. If the chart features the buttons, we will check if some of them is pressed. If yes, a necessary action is performed.Author: Roman Klymenko