FastHighestBar (Function)

image\trumpet2.gif Disclaimer

The FastHighestBar function uses a fast calculation method to return the highest value found when applying the input Price over a period of time defined by the input Length.

Function

FastHighestBar(Price, Length)

Parameters

Name

Type

Description

Price

Numeric

Specifies which price of the asset of interest is to be used.

Length

Numeric

The number of trailing bars to consider.

Returns

A numeric value containing the number of bars ago that the highest value found occurred.

Usage

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).

The input Length, can be hard coded replaced with a numeric simple type input.

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