How can get object value by double value

 

I have this object on chart

 if(ObjectFind(0,"hh") < 0) {
   ObjectCreate(0,"hh"+IntegerToString(3),OBJ_ARROW,0,0,0,0,0);          // Create an arrow
   ObjectSetInteger(0,"hh"+IntegerToString(3),OBJPROP_ARROWCODE,238);    // Set the arrow code
   ObjectSetInteger(0,"hh"+IntegerToString(3),OBJPROP_COLOR,clrGreen);  
   }  
   ObjectSetInteger(0,"hh"+IntegerToString(3),OBJPROP_TIME,Time[ZigHCandel[3]]);        // Set time
   ObjectSetDouble(0,"hh"+IntegerToString(3),OBJPROP_PRICE,ZigZagHigh[3]+(10+(Period()/100))*pt);// Set price

this green arrow.

I want to get its value

I try as follow

 double preh = NormalizeDouble(ObjectGetValueByShift("hh", 0),Digits );

cannot get value, it return zero.

How can get its value'

Need help

 
LONNV: I try as follow
 double preh = NormalizeDouble(ObjectGetValueByShift("hh", 0),Digits );

cannot get value, it return zero.

Perhaps you should read the manual. ObjectGetTimeByValue - Object Functions - MQL4 Reference
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

Is an arrow listed in:

An object can have several values in one price coordinate, therefore it is necessary to specify the line number. This function applies only to the following objects:

  • Trendline (OBJ_TREND)
  • Trendline by angle (OBJ_TRENDBYANGLE)
  • Gann line (OBJ_GANNLINE)
  • Equidistant channel (OBJ_CHANNEL) - 2 lines
  • Linear regression channel (OBJ_REGRESSION) - 3 lines
  • Standard deviation channel (OBJ_STDDEVCHANNEL) - 3 lines

Try ObjectGet