+1 888 340 6572

TL SetEnd bn

From MultiCharts
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Usage

TL_SetEnd_bn(tl_id, barNumber, value);

Parameters

  • TL_ID - a numerical expression specifying the trendline ID number.
  • barNumber – a numerical expression specifying number of the ending 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 ending point of the trendline with an ID number of 2 bar number 200 with a price value of 1400:

Value1 = TL_SetBegin_bn(2, 200, 1400);