TL SetBegin Dt
From MultiCharts
Modifies the starting point location of a trendline with the specified ID number; returns a value of 0 if the starting point location was successfully modified, and a value of -2 if the specified trendline ID number is invalid. Of the two end points of a trendline, the point with the earlier date and time is always considered to be the starting point; if the trendline is vertical, the point with the lower price value is considered to be the starting point. Instead of separate Date and Time values, a single DateTime value is used. It allows accessing millisecond time stamps of the bar.
Usage
TL_SetBegin_Dt (TL_ID, b_DateTime, b_Price) ;
Parameters
- TL_ID - a numerical expression specifying the trendline ID number
- b_DateTime - a numerical expression specifying the trendline starting point date and time; is indicated in the DateTime format. The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight.
- b_Price - a numerical expression specifying the trendline starting point price value (vertical position, corresponding to a value on the price scale of a chart)
Example
Set the beginning point of Trend Line with ID = value 1 to open price 100 bars back
tl_setbegin_dt(value1, datetime[100], open[100]);