+1 888 340 6572

TL GetNext

From MultiCharts

Returns an ID number of the first existing trendline drawn subsequent to a trendline with the specified ID number, with both trendlines of a specified origin; returns a value of -2 if the specified object ID number is invalid.

Usage

TL_GetNext (TL_ID,Origin)

Parameters

TL_ID - a numerical expression specifying the trendline ID number

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

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

Example

Assign a value to Value1 variable, indicating the ID number of the first existing trendline drawn subsequent to a trendline with the ID number of 3, with both trendlines drawn by the current study:

Value1=TL_GetNext(3,1);