AvgPrice (Function)

image\trumpet2.gif Disclaimer

The AvgPrice function calculates the average price of a bar, by averaging the four bar points: High, Low, Open, and Close.

Syntax

AvgPrice

Returns (Double)

A positive numeric value for the current bar.

Parameters

None

Remarks

The AvgPrice function is provided as a convenient way to integrate the average bar price into your analysis.

AvgPrice offers a smoothing effect of extreme price points on a bar.

AvgPrice = (Open + High + Low + Close)/4, or (High + Low + Close)/3, (if Open is not applicable).

Examples

Assigns the average price on a bar to Value1, then plots Value1:

Value1 = AvgPrice;

Plot1(Value1, "AvgPrc");

Assigns the 10 bar average of the average price on a bar to Value1, then plots Value1:

Value1 = Average( AvgPrice, 10);

Plot1(Value1, "AvgAvgPrc");