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 GetValue bn - MultiCharts
+1 888 340 6572

TL GetValue bn

From MultiCharts

Returns a price value, at the specified bar number, of a trendline with the specified ID number; returns a value of -2 if the specified trendline ID number is invalid. If the trendline does not extend to the specified bar, a price value along the same slope as the trendline will be returned.


TL_GetValue_bn(TL_ID, barnumber);


  • TL_ID - a numerical expression specifying the trendline ID number;
  • Barnumber – a numerical expression specifying a number of a bar;


Assign the price value at bar number 100 of a trendline with the ID number of 3 to Value1 variable: