TL GetValue bn

From MultiCharts
Jump to navigation Jump to search

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: