TL_GetBeginTime (Reserved Word)

image\trumpet2.gif Disclaimer

This reserved word returns the time of the starting point of the trendline. The start point 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_GetBeginTime(Tl_ID)

Tl_ID is a numeric expression representing the ID number of the trendline whose starting 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, it returns the time. 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 time returned by the reserved word, you need to assign the reserved word to a numeric variable. The starting point for the trendline referenced by Value99 is at 1:00pm. The following will return 1300.

Value1 = TL_GetBeginTime(Value99);

See Also

TL_Delete

TL_GetActive

TL_GetAlert

TL_GetBeginDate

TL_GetBeginVal

TL_GetColor

TL_GetEndDate

TL_GetEndTime

TL_GetEndVal

TL_GetFirst

TL_GetNext

TL_GetValue

TL_New

TL_SetBegin

TL_SetEnd

Trendline (class)