maybe it is better this, just need to know the name of the object.
double ObjectGet( string object_name, // object name int index // object property );
string t_lineav = TimeToString(ObjectGet("Vline_giu1", OBJPROP_TIME1),TIME_DATE|TIME_MINUTES);
done in this way and it works, thanks anyways.
florenceale: If i want to check the position of the last i have found this function
Perhaps you should read the manual. ObjectGetTimeByValue - Object Functions - MQL4 Reference explicitly states:ObjectGetTimeByValue
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
Like wise:
ObjectGetValueByTime - Object Functions - MQL4 Reference
ObjectGetShiftByValue - Object Functions - MQL4 Reference
ObjectGetValueByShift - Object Functions - MQL4 Reference
Your vertical line has just one value (Time1.) Just get it.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
my graph draws a series of vertical lines following specific indicators.
If i want to check the position of the last i have found this function
but i dont have any price for vertical lines...wich function is better to use and what do i write there if this one is right?