TL_GetEndVal (Reserved Word)

image\trumpet2.gif Disclaimer

This reserved word returns a numeric expression corresponding to the price value used as the ending point of the trendline. The ending point of the trendline is the one with the later date; if the trendline is vertical, the higher of the two points is considered to be the ending point.

Value1 = TL_GetEndVal(Tl_ID)

Tl_ID is a numeric expression representing the ID number of the trendline whose ending price value you want to obtain.

Value1 is any numeric variable or array, and holds the price value of the ending point of the trendline.

Remarks

When the reserved word performs its operation successfully, the price value 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

To obtain the price value returned by the reserved word, you need to assign the reserved word to a numeric variable. The trendline referenced by Value99 ends at a price of 41.543. The following returns a value of 41.543.

Value1 = TL_GetEndVal(Value99);

See Also

TL_Delete

TL_GetActive

TL_GetAlert

TL_GetBeginDate

TL_GetBeginTime

TL_GetBeginVal

TL_GetColor

TL_GetEndDate

TL_GetEndTime

TL_GetFirst

TL_GetNext

TL_GetValue

TL_New

TL_SetBegin

TL_SetEnd

Trendline (class)