i can not used this function (ObjectGetValueByTime)

To add comments, please log in or register
mehdi khoshbakhtvash
3320
mehdi khoshbakhtvash  

ObjectGetValueByTime()

All time retrun 0.0

double LastUpRedrawValue =ObjectGetValueByTime(0,"Toptahlil_UpperTrendLine_"+GetPeriod(Period()),Time[iUp],OBJ_TREND);
William Roeder
19849
William Roeder  
Perhaps you should read the manual. What is the last parameter of the function, what value are you passing to it?
mehdi khoshbakhtvash
3320
mehdi khoshbakhtvash  
whroeder1:
Perhaps you should read the manual. What is the last parameter of the function, what value are you passing to it?

i want read the trend line value in every candles but all read result 0.0

mehdi khoshbakhtvash
3320
mehdi khoshbakhtvash  
mehdi khoshbakhtvash:

i want read the trend line value in every candles but all read result 0.0

double LastUpRedrawValue =ObjectGetValueByTime(0,"Toptahlil_UpperTrendLine_"+GetPeriod(Period()),Time[iUp],0);
i used this code but return value no change my result is 0.0 and my last error is 0 after call this function
Marco vd Heijden
Moderator
12470
Marco vd Heijden  
double  ObjectGetValueByTime(
   long       chart_id,      // chart ID
   string     object_name,   // object name
   datetime   time,          // time
   int        line_id=0      // line ID
   );
mehdi khoshbakhtvash
3320
mehdi khoshbakhtvash  
Marco vd Heijden:
i used this code but return 0.0 value
Marco vd Heijden
Moderator
12470
Marco vd Heijden  

Are you trying to say that the function is faulty?

Maybe you want to check your code again.

William Roeder
19849
William Roeder  
mehdi khoshbakhtvash: i used this code but return 0.0 value
mehdi khoshbakhtvash: i want read the trend line value in every candles but all read result 0.0
mehdi khoshbakhtvash: i used this code but return value no change my result is 0.0 and my last error is 0 after call this function
  1. You keep saying the same thing as your original post. That isn't helpful, stop repeating what you've already stated.
  2. whroeder1: Perhaps you should read the manual. What is the last parameter of the function, what value are you passing to it?
    Answer the question and you will find out why.
To add comments, please log in or register