Mastering the id_digits_object Indicator for MetaTrader 5

Mike 2015.11.03 16:19 59 0 0
Attachments

Hey there, fellow traders! If you've ever clicked on a graphical object in MetaTrader 5 and thought to yourself, "What’s the story behind this?" then you're in for a treat with the id_digits_object indicator. This nifty tool provides some insightful details right in the Experts tab of your terminal.

  • Name and type of the clicked object;
  • Date and values of its anchor points;
  • The number of decimal places (digits in the fractional part) for those anchor point values.

This indicator works seamlessly with graphical objects in both the main window and its subwindows. It’s particularly useful for spotting non-normalized anchor point values by showing you how many decimal places are involved. You can even use the decimal calculation function separately in any program you like!

The id_digits_object is compatible with a variety of graphical objects, including:
Identifier:Description:
OBJ_HLINEHorizontal Line
OBJ_TRENDTrend Line
OBJ_TRENDBYANGLETrendline by Angle
OBJ_CYCLESCycle Lines
OBJ_ARROWED_LINEArrowed Line
OBJ_CHANNELEquidistant Channel
OBJ_PITCHFORKAndrews' Pitchfork
OBJ_GANNLINEGann Line
OBJ_GANNFANGann Fan
OBJ_GANNGRIDGann Grid
OBJ_FIBOFibonacci Retracement
OBJ_FIBOTIMESFibonacci Time Zones
OBJ_FIBOFANFibonacci Fan
OBJ_FIBOARCFibonacci Arcs
OBJ_FIBOCHANNELFibonacci Channel
OBJ_EXPANSIONFibonacci Expansion
OBJ_ELLIOTWAVE5Elliott Motive Wave
OBJ_ELLIOTWAVE3Elliott Correction Wave
OBJ_RECTANGLERectangle
OBJ_TRIANGLETriangle
OBJ_ELLIPSEEllipse
OBJ_ARROW_THUMB_UPThumb Up
OBJ_ARROW_THUMB_DOWNThumb Down
OBJ_ARROW_UPArrow Up
OBJ_ARROW_DOWNArrow Down
OBJ_ARROW_STOPStop Sign
OBJ_ARROW_CHECKCheck Sign
OBJ_ARROW_LEFT_PRICELeft Price Label
OBJ_ARROW_RIGHT_PRICERight Price Label
OBJ_ARROW_BUYBuy Sign
OBJ_ARROW_SELLSell Sign
OBJ_ARROWArrow Object
OBJ_TEXTText Object

Now, let’s talk about a common scenario: sometimes, indicators set in a chart's subwindows show values that differ from those in the main window by decimal places. This indicator comes in handy for checking the decimal place number of anchor points of your graphical objects, even those set in subwindows.


Fig. 1. CCIindicator's subwindow with two-digit values on a chart with five-digit quotes.


Fig. 2. MACD indicator subwindow with six-digit values.


Fig. 3. Elliott Motive Wave anchor point values in a chart's main window.

Now, you might run into some strange differences when using the id_digits_object indicator. For instance, in Fig. 4, a line with five digits appears clearly on a five-digit quotes chart, but the indicator displays eight digits:


Fig. 4. id_digits_object detects a non-normalized value at a horizontal line.

If that happens with a programmatically set object, check if the value normalization was applied when the objects were created. For manually set objects, you can adjust their values by:

  • Opening the object's properties dialog and clicking on its anchor point value (if it has multiple values, just click on the top one);
  • Closing the properties dialog by hitting the "Ok" button.

After that, click on the object again to ensure the values are normalized with the id_digits_object. Check out Fig. 5 and Fig. 6 for a visual guide on these steps:


Fig. 5. Normalization through the properties dialog box.


Fig. 6. The same horizontal line, but with a normalized value.

If you need to normalize the anchor point values of manually set objects programmatically, there’s a handy tool available. Check out this ID Rounding or deleting 3 for MT5 indicator, which not only helps normalize values but can also round them up to your desired decimal point if necessary.

List
Comments 0