Clicking on any graphical object makes this indicator display these kinds of information in the Experts tab of the terminal:
It works with graphical objects in the main window and its subwindows.
It can help identify non-normalized anchor point values by displaying the number of decimal places in them. The function for calculation of decimal place number can be used separately for any other purpose in any other programs.
This indicator works with graphical objects listed below:
||Trendline by angle
||Fibonacci Time Zones
||Elliott Motive Wave
||Elliott Correction Wave
||Left Price Label
||Right Price Label
Often indicators set in a chart's subwindows have values that differ from the chart's main window by the number of decimal places. This auxiliary program makes it possible to verify the decimal place number of values of the anchor points of the graphical objects (set in the subwindows of the indicators). Regardless of the decimal place number set in the main window:
Fig. 1. CCI indicator's subwindow with two-digit values on a chart with five-digit quotes. The trend line in the CCI subwindow with two-digit values
Fig. 2. MACD indicator subwindow with six-digit values on a chart with five-digit quotes. The trend line in MACD subwindow with six-digit values
Fig. 3. Elliott Motive Wave anchor point values in a chart's main window.
Seemingly strange differences can be encountered during the application of the id_digits_objects indicator. For example, in the fig. 4 below a line with five digits is clearly visible on a five-digit quotes chart, the properties of this line also show five digits, but the indicator "boldly" displays eight:
Fig. 4. id_digits_object has found a non-normalized value at a horizontal line
If this happens on a click on a programmatically set graphical object, then, if necessary, check the usage of the value normalizaton at the time the objects are set in the code of the program, which created the object. If the object was set on the chart manually, then, if necessary, its values can be edited manually in the following way:
After that click on the object again to make sure the values are normalized with the help of id_digits_object. Figures 5 and 6 demonstrate visual oreder of the described steps:
Fig. 5. Normalization of a manually set object via its properties dialog box
Fig. 6. The same horizontal line, but with a normalized value
However, if necessary, to normalize the anchor point values of the manually set objects programmatic ways can be used. For example, there is a ready-made indicator for trend lines, horizontal lines and Fibonacci levels: ID Rounding or deleting 3 for MT5, which not only helps normalize graphical object values, but also round them up to the required decimal point if needed.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/13935
The TEMA_CUSTOM indicator implemented as a sequence of candlesticks.TEMA_CUSTOM_HTF
The TEMA_CUSTOM indicator with the timeframe selection option available in the input parameters.