×

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 GetFirst - MultiCharts
Open main menu

TL GetFirst

Revision as of 12:39, 13 February 2012 by Admin (talk | contribs) (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Contents

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);