ZProb (Function)

image\trumpet2.gif Disclaimer

The ZProb function returns the two-tailed P-value of a Z-Test for the specified bar.

Syntax

ZProb(Price, Length)

Returns (Double)

A numeric value containing the two-tailed P-value of a Z-Test for the specified bar.

Parameters

Name

Type

Description

Price

Numeric

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

Length

Numeric

Sets the number of bars to consider.

Remarks

The z-test generates a standard score for x with respect to the data set (Price), array, and returns the two-tailed probability for the normal distribution.

The function can be used to assess the likelihood that a particular observation is drawn from a particular population.

Example

Assigns to Value1 the Z-Test value based on the closing prices of the data stream:

Value1 = ZProb(Close, 14);

Assigns to Value2 the Z-Test value based on the TrueRange of the data stream:

Value2 = ZProb(TrueRange, 5);