×

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.

TL SetBegin bn - MultiCharts
+1 888 340 6572

TL SetBegin bn

From MultiCharts

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

TL_SetBegin_bn(tl_id, barNumber, value);

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:

Value1 = TL_SetBegin_bn(3, 100, 1365);