TLValueEasy (Function)

image\trumpet2.gif Disclaimer

The TLValueEasy function returns the value of a trendline.

Syntax

TLValueEasy(Price, StartBar, EndBar, TgtBar)

Returns (Double)

A numeric value containing the specified 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.

TgtBar

Numeric

Set the number of bars to extend trendline (positive number = backwards in time & negative number = forward in time).

Remarks

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

The inputs StartBar and EndBar refer to the bar numbers of the starting and ending points of the trendline. These inputs must be replaced by valid numbers or replaced with numeric simple type inputs.

 The input TgtBar must be replaced by either a positive or negative number that represents the number of bars back in the past or out in the future that the trendline is to be extended. Negative values of TgtBar project the trendline into the future, while; positive values of TgtBar project the trendline back into the past

The inputs EndBar and StartBar refer to the number of bars ago (from the current bar) of the starting and ending points of the trendline. These inputs can be replaced by whole numbers or with numeric simple type inputs that return positive whole numbers when using their default values.

The formula used to calculate the slope is a simple rise over run calculation.

Example

Plot1(TLValueEasy(High,1,9,1));

See Also

TLValueEasy