TLAngleEasy (Function)

image\trumpet2.gif Disclaimer

The TLAngleEasy function returns the angle of a trendline with one price input.

Syntax

TLAngleEasy(Price, StartBar, EndBar)

Returns (Double)

A numeric value containing the angle of a trendline.

Parameters

Name

Type

Description

Price

Numeric

Specifies which bar value (price, function, or formula) to use.

StartBar

Numeric

Sets the bar number (bars ago) of the trendline start point.

EndBar 

Numeric

Sets the bar number (bars ago) of the trendline end point.

Remarks

This function is similar to TLAngle, except that you cannot specify different prices for the start and end points. This function uses the same price on the start and end bars.

The formula used is a simple rise over run calculation to obtain the slope; the formula then takes the cotangent of that slope. In fact, you can obtain the same value as the TLAngleEasy function by taking the ArcTangent of the TLSlope function.

Example

Plot1(TLAngleEasy(High,1,9);

See Also

TLAngle