.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > FinancialEngine Class > MomentumPercent Method : MomentumPercent(Series,Int32) Method
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.
The number of days before to which the closing price is compared.
MomentumPercent(Series,Int32) Method
We calculate the momentum pergentage over a given period.
Syntax
'Declaration
 
Public Overloads Shared Function MomentumPercent( _
   ByVal s As Series, _
   ByVal noOfDays As Integer _
) As Series
'Usage
 
Dim s As Series
Dim noOfDays As Integer
Dim value As Series
 
value = FinancialEngine.MomentumPercent(s, noOfDays)
public static Series MomentumPercent( 
   Series s,
   int noOfDays
)

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.
Exceptions
ExceptionDescription
Thrown if the given series has strictly negative elements or if the noOfDays argument is greater then the length of prices array.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also