| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shared Function MomentumPercent( _ ByVal sc As SeriesCollection, _ ByVal noOfDays As Integer _ ) As SeriesCollection | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public static SeriesCollection MomentumPercent( SeriesCollection sc, int noOfDays ) | |
Parameters
- sc
- A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
- 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. |