dotnetCHARTING Send comments on this topic.
Momentum(SeriesCollection,Int32) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > Momentum Method : Momentum(SeriesCollection,Int32) Method


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.
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

Visual Basic (Declaration) 
Public Overloads Shared Function Momentum( _
   ByVal sc As SeriesCollection, _
   ByVal noOfDays As Integer _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim sc As SeriesCollection
Dim noOfDays As Integer
Dim value As SeriesCollection
 
value = FinancialEngine.Momentum(sc, noOfDays)
C# 
public static SeriesCollection Momentum( 
   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.

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

ExceptionDescription
ArgumentExceptionThrown if either parameter is strictly negative.

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).

See Also

© 2008 All Rights Reserved.