TL_Exist (Function)

image\trumpet2.gif Disclaimer

The TL_Exist function returns true if a trendline exists.

Syntax

TL_Exist(TrendLineID)

Returns (Boolean)

True if the specified trendline (using TrendLineID) exists in the current chart. False if not.

Parameters

Name

Type

Description

TrendLineID

Numeric

Sets the identification number of the trendline.

Example

If you want to place a buy order to buy at the trendline number 1, only if the trendline exits, you can write:

If TL_Exist(1) Then
 Buy Next Bar at TL_GetValue(1, Date, Time) Stop;