TL_GetBeginVal (Reserved Word)

image\trumpet2.gif Disclaimer

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

Value1 = TL_GetBeginVal(Tl_ID)

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

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

Remarks

When the reserved word performs its operation successfully, it returns the price value. 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 begins at a price of 41.543. The following will return 41.543.

Value1 = TL_GetBeginVal(Value99);

See Also

TL_Delete

TL_GetActive

TL_GetAlert

TL_GetBeginTime

TL_GetBeginDate

TL_GetColor

TL_GetEndDate

TL_GetEndTime

TL_GetEndVal

TL_GetFirst

TL_GetNext

TL_GetValue

TL_New

TL_SetBegin

TL_SetEnd

Trendline (class)