×

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 SetBegin bn

1,115 bytes added, 13:30, 16 September 2013
Created page with "Modifies the starting point bar number of a trendline with the specified ID number. TL_SetBegin returns a value of 0 if the starting point bar number was successfully modified..."
Modifies the starting point bar number of a trendline with the specified ID number.
TL_SetBegin returns a value of 0 if the starting point bar number was successfully modified, and a value of -2 if the specified trendline ID number is invalid.
Of the two end bars of a trendline, the bar 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.

===Usage===
<syntaxhighlight>
TL_SetBegin_bn(tl_id, barNumber, value);
</syntaxhighlight>

===Parameters===
* TL_ID - a numerical expression specifying the trendline ID number.
* barNumber – a numerical expression specifying number of the starting bar
* value - a numerical expression specifying the new starting point price value (vertical position, corresponding to a value on the price scale of a chart).

===Example===
Move the starting point of the trendline with an ID number of 3 bar number 100 with a price value of 1365:
<syntaxhighlight>
Value1 = TL_SetBegin_bn(3, 100, 1365);
</syntaxhighlight>

[[Category: Trendline Drawing]]