WebCab Technical Analysis for COM v1.1

Momentum.MomentumPeriod Method 

We evaluate the n-period momentum which is simply the difference between today's closing price and the close price n periods ago, for all periods for which sufficient historical data is given.

public double[] MomentumPeriod(
   double[] close,
   int noOfPeriods
);

Parameters

close
An array of length equal to the number of periods considered in the indicator evaluation where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.
noOfPeriods
The number of periods before to which the closing price is compared.

Return Value

A double array where the first term is the momentum for the most recent trading period, the second term is the momentum for the previous trading period and so on.

Remarks

The momentum indicator as the name suggests is the velocity with which the price is rising or falling, and hence will reflect how aggressively the asset is being purchased or sold.

Remark: Extended values and/or turning points of the momentum are good indicators of oversold or over brought conditions (respectively).

Exceptions

Exception TypeCondition
ArgumentExceptionThrown if either parameter is strictly negative.

See Also

Momentum Class | WebCab.COM.Finance.Trading.Indicators Namespace