TL_SetBegin (Reserved Word)
This reserved word changes the start point of the specified trendline; the start point has an earlier date and time. If the trendline is vertical, the point with the lower price value is considered the starting point.
If the starting point of a trendline is changed (by EasyLanguage or by using the drawing tool) such that it has a later date than the ending point, the starting point then becomes the old ending point of the trendline.
Value1 = TL_SetBegin(Tl_ID, iDate, iTime, iVal)
Tl_ID is a numeric expression representing the identification number of the trendline, and iDate, iTime, and iVal are numeric expressions representing the trendline’s starting point date, time, and value respectively. Dates and times use YYMMDD / YYYMMDD and 24-hour format, HHMM, respectively.
Value1 is any numeric variable or array. You must assign the trendline reserved word to a numeric variable or array so that you can determine whether or not the reserved word performed its operation successfully.
Remarks
When the reserved word performs its operation successfully, a 0 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.
Example
The following sets the trendline referenced by Value99 to a value of 107.225 on February 21, 1999 at 10am.
Value1 = TL_SetBegin(Value99, 990221, 1015, 107.225);
Additional Example
The following statement sets the start point of the trendline referenced by Value99 to the high price 10 bars ago:
Value1 = TL_SetBegin(Value99, Date[10], Time[10], High[10]);