Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function MomentumPercent( _ ByVal s As Series, _ ByVal noOfDays As Integer _ ) As Series |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- s
- An series of length equal or greater 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.
Exception | Description |
---|---|
ArgumentException | Thrown if the given series has strictly negative elements or if the noOfDays argument is greater then the length of prices array. |