Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

id_digits_object - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

id_digits_object - indicator for MetaTrader 5

id_digits_object - indicator for MetaTrader 5

id_digits_object - indicator for MetaTrader 5

id_digits_object - indicator for MetaTrader 5

id_digits_object - indicator for MetaTrader 5

id_digits_object - indicator for MetaTrader 5

id_digits_object - indicator for MetaTrader 5

Clicking on any graphical object causes the indicator to display the following types of information in the "Expert" tab of the terminal:

It works with graphics objects in the main window and its subwindows.

It can help identify non-normalized anchor values ​​by showing the number of decimal places in them. The function used to calculate the number of decimal places can be used alone in any other program for any other purpose.

This indicator is available for the following graphical objects:

Often, the values ​​of indicators set in the chart subwindow differ from the number of decimal places in the main chart window. This helper can verify the number of decimal places of the anchor point value of the graphical object (set in the indicator's subwindow). Regardless of the number of decimal places set in the main window:

id_digits_object - indicator for MetaTrader 5

Figure 1. Subwindow of the CCI indicator showing two-digit values ​​on a chart with five-digit quotes. Trendline in CCI subwindow with two digit values

id_digits_object - indicator for MetaTrader 5

Figure 2. Indicator subwindow with six-digit values ​​on the Moving Average Convergence and Divergence chart with five-digit quotes. Trendline in the Moving Average Convergence and Divergence subwindow with a six-digit value

id_digits_object - indicator for MetaTrader 5

Figure 3. Elliott Motivational Wave anchor values ​​in the main chart window.

You may encounter seemingly strange differences in id_number_object indicators during application. For example, in Fig. 4 Below there is a five-digit line clearly visible on the five-digit quote chart, the properties of this line also show five digits, but the indicator "bold" shows eight digits:

id_digits_object - indicator for MetaTrader 5

Figure 4. id_number_object found non-normalized values ​​on horizontal lines

If this happens when you click a graphics object that is set programmatically, then if necessary, check the use of value normalization when setting the object in the program code that created it. If you manually set an object on the chart, if necessary, you can manually edit its value via:

After that click on the object again to ensure that the values ​​are normalized with the help of id_number_object . Figures 5 and 6 illustrate the visual sequence of the steps described:

id_digits_object - indicator for MetaTrader 5

Figure 5. Normalizing manually set objects via the properties dialog box

id_digits_object - indicator for MetaTrader 5

Figure 6. Same horizontal line, but with normalized values

However, if necessary, you can manually set the object's anchor value using programmatic normalization. For example, there is a ready-made indicator for trend lines, horizontal lines and Fibonacci levels: ID Round or Remove 3 for MT5 , which not only helps to standardize the graphical object values, but also rounds them to the desired decimal point if desired.


Attachment download

📎 id_digits_object.mq5 (21.78 KB)

Source: MQL5 #13935

Verification code Refresh