dotnetCHARTING Send comments on this topic.
RateOfChange(SeriesCollection,Int32) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > RateOfChange Method : RateOfChange(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.
numberDays
The number of days before to which the closing price is compared.
Calculate the n-day rate of change (ROC) for all periods for which there is sufficient data.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function RateOfChange( _
   ByVal sc As SeriesCollection, _
   ByVal numberDays As Integer _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim sc As SeriesCollection
Dim numberDays As Integer
Dim value As SeriesCollection
 
value = FinancialEngine.RateOfChange(sc, numberDays)
C# 
public static SeriesCollection RateOfChange( 
   SeriesCollection sc,
   int numberDays
)

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.
numberDays
The number of days before to which the closing price is compared.

Return Value

A series where the first term is the rate of change for the most recent period, the second term is the rate of change for the previous period and so on.

Exceptions

ExceptionDescription
ArgumentExceptionThrown if either parameter is strictly negative.

Remarks

The (n-day) rate of change (ROC) is just the last closing price divided by the closing price n-days ago.

As with the case with the momentum indicator the rate of change (ROC) indicator on extended values and/or turning points indicates oversold or over brought conditions (respectively).

See Also

© 2018 All Rights Reserved.