WebCab Technical Analysis for COM v1.1

Filters.AveragePrice Method 

Evaluates the Average Price of an asset for a given trading period.

public double AveragePrice(
   double high,
   double low,
   double open,
   double close
);

Parameters

high
The traded high of the asset on the trading period under consideration.
low
The traded low of the asset on the trading period under consideration.
open
The traded open of the asset on the trading period under consideration.
close
The traded close of the asset on the trading period under consideration.

Return Value

Double value giving the average price for the period considered.

Remarks

The Average price is just the average of the traded high, low, open and close of the asset, where the period considered will generally a day.

Exceptions

Exception TypeCondition
ArgumentExceptionThrown if the high, low, open, close are strictly negative.

See Also

Filters Class | WebCab.COM.Finance.Trading.Indicators Namespace | AveragePriceOverPeriod - evaluates the Average price for a number of periods.