Difference between revisions of "TL GetAlert"
(Created page with "Returns the alert status for a trendline with the specified ID number; returns a value of -2 if the specified trendline ID number is invalid. ==== Usage ==== <syntaxhighlig...") |
(No difference)
|
Revision as of 14:52, 25 January 2012
Returns the alert status for a trendline with the specified ID number; returns a value of -2 if the specified trendline ID number is invalid.
Usage
TL_GetAlert(TL_ID)
Where: TL_ID - a numerical expression specifying the trendline ID number
Return
Alert status:
0 - Alert disabled
1 - Breakout intra-bar
An alert is triggered if the High crosses over the trendline or the Low crosses under the trendline. Alert triggering conditions are evaluated intra-bar.
2 - Breakout on close
An alert is triggered if the Close of the previous bar was below the trendline and the Close of the current bar is above the trendline, or if the Close of the previous bar was above the trendline and the Close of the current bar is below the trendline. Alert triggering conditions are evaluated at Close of a bar.
Notes
A trendline-specific ID number is returned by TL_New when the trendline is created.
Example
Assign a value, indicating the alert status for a trendline with the ID number of 3, to Value1 variable:
Value1=TL_GetAlert(3);