×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

TL SetEnd Dt

1,223 bytes added, 15:17, 5 June 2013
Created page with "Modifies the ending point location of a trendline with the specified ID number; returns a value of 0 if the ending point location was successfully modified, and a value of -2 ..."
Modifies the ending point location of a trendline with the specified ID number; returns a value of 0 if the ending 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 later date and time is always considered to be the ending point; if the trendline is vertical, the point with the higher price value is considered to be the ending point.
Instead of separate Date and Time values, a single DateTime value is used. It allows accessing millisecond time stamps of the bar.

'''Usage'''
<syntaxhighlight>
TL_SetEnd_Dt (TL_ID, e_DateTime, e_Price) ;
</syntaxhighlight>

'''Parameters'''

* ''TL_ID'' - a numerical expression specifying the trendline ID number
* ''e_DateTime'' - a numerical expression specifying the trendline ending point date and time; the date and time are indicated in the DateTime format.
* ''e_Price'' - a numerical expression specifying the trendline ending point price value

'''Example'''
Set the ending point of Trend Line with ID = value 1 to close price of the current bar
<syntaxhighlight>
tl_setend_dt(value1, datetime, close);
</syntaxhighlight>

[[Category:Trendline Drawing]]