TL New bn
Jump to navigation
Jump to search
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
tl_new_bn(sBarNumber, sValue, eBarNumber, eValue);
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:
tl_new_bn(100, 1700, 200, 1750);