We calculate the momentum percentage over a given period.
A double array where the first term is the momentum percentage for the most recent trading period, the second term is the momentum percentage for the previous trading period and so on.
This is a generalization of the momnetumPct method. Instead of taking into account only one value of the closing price we calculate the momentum percentage over a entire period.
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if prices array has strictly negative elements or if the noOfPeriods argument is greater then the length of prices array. |
Momentum Class | WebCab.COM.Finance.Trading.Indicators Namespace