AB_AveragePrice (Function)

image\trumpet2.gif Disclaimer

The AB_AveragePrice function calculates the average price of ActivityBar cells.

Syntax

AB_AveragePrice(Side)

Returns (Double)

The average price of the ActivityBar cells on a particular side or over the entire bar.

Parameters

Name Type Description
Side Numeric Sets the side of the ActivityBar that will be averaged; options are LeftSide, RightSide and 2 for both sides.

Remarks

The value returned by the function can be calculated over the entire ActivityBar, or it can be restricted to either side with the Side input. The Average is based on price and number of cells in each row.

Examples

Assigns to Value1 the average price for the cells on both sides of the ActivityBar:

Value1 = AB_AveragePrice(2);

Assigns to Value2 the average price for the cells on the right side of the ActivityBar:

Value2 = AB_AveragePrice(RightSide);

See Also

AB_AverageCells