Value of Trend line Object at last close

To add comments, please log in or register
gouki1001
183
gouki1001  

 Im trying to find the value of a Trend line Object at last close. Can anyone help? 

double ExtMapBuffer4 =  ObjectGetValueByTime(0,OBJ_TREND,TimeCurrent(),0);

Keith Watford
Moderator
15807
Keith Watford  
gouki1001:

 Im trying to find the value of a Trend line Object at last close. Can anyone help? 

double ExtMapBuffer4 =  ObjectGetValueByTime(0,OBJ_TREND,TimeCurrent(),0);

Use the name of the trendline

gouki1001
183
gouki1001  
Keith Watford:

Use the name of the trendline

 ExtMapBuffer4[y] =  ObjectGetValueByTime("LL_"+Step,OBJ_TREND,TimeCurrent(),0); This is what Im using but something is wrong somewhere. 

Keith Watford
Moderator
15807
Keith Watford  
gouki1001:

 ExtMapBuffer4[y] =  ObjectGetValueByTime("LL_"+Step,OBJ_TREND,TimeCurrent(),0); This is what Im using but something is wrong somewhere. 

Where is the chart ID?

To add comments, please log in or register