FastLowestBar (Function)

image\trumpet2.gif Disclaimer

The FastLowestBar function uses a fast calculation method to return the number of bars ago the lowest price occurred.  There may be times when two or more bars have exactly the same lowest value; when this happens the function identifies the most recent occurrence.

Syntax

FastLowestBar(Price, Length)

Returns (Integer)

A numeric value containing the number of bars ago that the lowest value occurred during the specified range of bars.

Parameters

Name

Type

Description

Price

Numeric

Specifies which bar value (price, function, or formula) to compare for highest and lowest extremes.

Length

Numeric

Sets the number of  bars to consider.

Remarks

The input Price can be hard coded with a bar attribute such as Close, Open, High, Low, and Volume or a numeric series type input. It can also be replaced with a valid EasyLanguage expression. For example: Close + Open, or Average(RSI(Close,14),14).

  This function uses a fast calculation method that uses more memory than the traditional method.

Example

The following assigns the number of bars ago the lowest value of the last 14 bars occurred to Value1:

Value1 = FastLowestBar(Low, 14);