946 bytes added,
13:25, 16 September 2013 Displays a trendline, with the specified starting and ending points, on the chart that the study is based on; returns a trendline-specific ID number, required to modify the trendline.
===Usage===
<syntaxhighlight>
tl_new_bn(sBarNumber, sValue, eBarNumber, eValue);
</syntaxhighlight>
===Parameters===
* sBarNumber - a numerical expression specifying the trendline starting bar number;
* sValue - a numerical expression specifying the trendline starting point price value (vertical position, corresponding to a value on the price scale of a chart);
* eBarNumber - a numerical expression specifying the trendline ending bar number;
* eValue - a numerical expression specifying the trendline ending point price value;
===Example===
Display a trendline that begins at the bar number 100, price = 1700 and ends at the bar number 200, price 1750:
<syntaxhighlight>
tl_new_bn(100, 1700, 200, 1750);
</syntaxhighlight>
[[Category: Trendline Drawing]]