Standardize (Function)

image\trumpet2.gif Disclaimer

The Standardize function returns a  normalized value from a distribution characterized by the mean based on the Price for Length bars, and standard deviation.

Syntax

Standardize(Price, Length, NumDevs)

Parameters

Name

Type

Description

Price

Numeric

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

Length

Numeric

Set the number of bars to be considered.

NumDevs

Numeric

Sets the number of standard deviations to consider in the standardization.

Returns (Double)

A numeric value containing the normalized value from a distribution characterized by the mean based on the Price for Length bars, and standard deviation (NumDevs).

Remarks

The normalized value is based on a distribution with a mean of 0 and a standard deviation of 1.

Example

Assigns to Value1 the standardization of the Close over the last 14 bars, using 2 standard deviations.

Value1 = Standardize(Close, 14, 2);

Assigns to Value2 the standardization of the High over the last 10 bars, using 1.5 standard deviations:

Value2 = Standardize(High, 10, 1.5);