TL_GetEndTime (Reserved Word)
This reserved word returns the time of the ending point of the trendline. The ending point of the trendline is the one with the later time; if the trendline is vertical, the higher of the two points is considered to be the ending point.
Value1 = TL_GetEndTime(Tl_ID)
Tl_ID is a numeric expression representing the ID number of the trendline whose ending time you want to obtain.
Value1 is any numeric variable or array, and holds the time of the starting point.
Remarks
When the reserved word performs its operation successfully, the time is returned. When a reserved word cannot perform its operation, it returns an error code. For a list of error codes, see EasyLanguage Drawing Object Error Codes.
It is important to remember that if an invalid ID number is used, the reserved word will return a value of -2 and no additional operations will be performed on any trendlines by the trading strategy, analysis technique, or function that generated the error.
Example
The following statement assigns the EasyLanguage time of the bar used as the end point for the trendline referenced by Value99 to the variable Value1:
Value1 = TL_GetEndTime(Value99);