TL GetFirst: Difference between revisions
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
|||
Line 1: | Line 1: | ||
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. | 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 ==== | |||
<syntaxhighlight>TL_GetFirst (Origin)</syntaxhighlight> | |||
==== 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 ==== | ==== 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. | 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. |
Latest revision as of 12:39, 13 February 2012
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);