We evaluate the n-day momentum which is simply the difference between today's closing
price and the close price n days ago, for all days for which sufficient historical data is
given.
Syntax
Parameters
- s
- An series of length greate or 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.
- noOfDays
- The number of days before to which the closing price is compared.
Return Value
A series 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.
Exceptions
Exception | Description |
ArgumentException | Thrown if either parameter is strictly negative.
|
Remarks
See Also