Calculates the Geometric Moving Average (GMA) for a given period for all possible data points (ie periods) for which there is sufficient historical data provided.
An array where the first term corresponds to the Moving Average on the last period and the previous value is the value of the Moving average on the previous period and so on.
If we are considering a traded asset and the periods considered are periods then by passing
an array containing the closing daily prices of a given asset, and by choosing to use the
5-period Geometric Moving Average (ie passing the length of the GMA of 5), then
this method will evaluate the Geometric Moving Average (GMA) for all periods for which the
closing price on that period and the four previous periods is known.
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if the historicalValue array is empty. |
MovingAverage Class | WebCab.COM.Finance.Trading.Indicators Namespace