The standard delivery of MetaTrader5 terminal includes 44 types of various graphical objects for installation on a chart: top menu => Insert => Objects.
Of these, 33 types have anchor points: time + price.
For these 33 types of graphical objects, this indicator can display in the "Experts" tab: the name of the selected object + its type + time of its anchor points + price marks of anchor points + number of decimal places in price anchor points.
In this case, regardless of the fact that the graphical object is in the main chart window or sub-windows of indicators, where the number of decimal places may differ from those in the main window.
To get information about any object in the chart from the indicator, it is enough to click on this object with the mouse.
For the other 11 types of objects (which do not have price anchor points): when clicking on them, this indicator displays only the names of these objects and their type in the "Experts" tab of the journal. With the accompanying comment that it does not work with this type of objects.
The MetaTrader 5 terminal and the MQL5 programming language have a very large selection of different things for us (users). The capabilities of the terminal and the language continue to grow over time. The additions, of course, differ in their "scale of significance" for someone or at all. Besides "bright" and "prominent", naturally, "modest", "small", "unnoticeable", but nevertheless useful, are added.
For example, recently, one of the "modest" conveniences added to the terminal, but not the only one, for me, was the possibility to remove the columns from the "Experts" tab: Time and Source /* both or any of them, by calling the menu there by right-clicking the mouse and selecting the required menu line: Columns*/. It seems to be a "small thing", but without it "something would be missing". This has made it more convenient, for example, to visualise the information displayed in the tab and/or copy information messages from it for something, various other things. Officially, this feature (as a part of various others) appeared since the 1485th build of the terminal. Together with its addition, the order of data display in the "Experts" tab has changed.
And since earlier the "id_digits_object" indicator displayed data in the "Experts" tab taking into account the previous display order, I updated this indicator taking into account the current display order. At the same time I made other updates in the code. Among other things, I have read, checked and applied convenient features of the ArrayResize() function. A copy from the official release for the 1485th build of the terminal about the goodies added to this function:
... When passing the value -1 as the reserve_size parameter, the function frees unused (reserved) memory if the array size is not increased. Changing the array size to 0 with reserve_size=-1 is equivalent to calling ArrayFree. The new behaviour allows you to optimize memory usage in MQL5 programs.
And although in the updated code of the indicator you will also find the use of ArrayFree(), but this is because in those places I found it more convenient to choose and write ArrayFree than to name and pass parameters to my function, which includes ArrayResize in the indicator. There in my long-worded with ArrayResize is a combination of application: ArrayResize + ArraySetAsSeris. /*<= Let me tell you right away that ArraySetAsSeris works only if the size to be set is greater than 1. So that it would not be activated after ArrayResize if the size to be set = 0 or 1.
You can read about other changes in the indicator on its page at the end of the main description. The updated version (1.11) is already available for download.
Another update is available for download.
What's new:
Updated the code of the function for determining the number of decimal places in the indicator (its basic principle of operation remained the same, but I made the code a little more compact).
At the same time I updated the code of the indicator as a whole.
Time goes by, a lot of things change.
I will add the following clarifications to my post of 2016.12.12:
1. Above I gave a link to the official release for the 1485 build of the terminal. That link leads to the forum topic, which is now inactive.
You can see what is new in MetaTrader 5 here: https://www.metatrader5.com/ru/releasenotes. There you can find descriptions of what is new in the new build and the previous history of updates of desktop, mobile and web platforms. It's really more convenient than searching for a topic on the forum.
About three months ago I found a convenient way to go to this page directly from the terminal. Just in case, for those who don't know it yet, here is the way: Terminal top menu - Help - What's new

2 On the above site, I found out that the types of objects in MetaTrader 5 are not 44, as I wrote above, but 46: https: //www.metatrader5.com/ru/terminal/help/charts_analysis/objects.
But I don 't need to replace the code of the indicator I'm discussing because of this.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
id_digits_object:
Displays the number of decimal places (the number of digits in the fractional part), time and values of graphic object anchor points.
Author: Dina Paches