TL GetFirst

From MultiCharts
Jump to: navigation, search

Returns a numerical value, indicating the trendline ID number of the oldest (the first to be drawn on the current chart) trendline of the specified origin; returns a value of -2 if the specified trendline ID number is invalid.

Usage

TL_GetFirst (Origin)

Parameters

Origin - a numerical expression specifying the origin of the trendline:

1 - drawn by the current study

2 - drawn by a study other then the current study, or drawn manually by the user

3 - drawn by any study, or drawn manually by the user

4 - drawn by the current study, or drawn manually by the user

5 - drawn by a study other then the current study

6 - drawn by any study

7 - drawn manually by the user

Notes

If the oldest (the first to be drawn) trendline is deleted, the next oldest (the second to be drawn) trendline becomes the oldest (the first drawn) trendline.

Example

Assign a value, indicating the trendline ID number of the oldest trendline drawn on the chart by the current study, to Value1 variable:

Value1=TL_GetFirst(1);