Calculates the relative momentum index from up and down changes over the momentum shift and averaging period.
For a nonzero index less than MomentumPeriod, the calculation reads the source-value cache at the current index before adding that entry. If the entry is not already cached, processing fails; do not assume all early-history points can be calculated successfully.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class RelativeMomentumIndexIndicator : MovingAverageCacheIndicator, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartSeries, IChartElementPresenter, IAxisProvider
Inheritance: objectDisposableObjectRadObjectUIChartElementChartSeriesCartesianSeriesCartesianPointSeriesLineSeriesBaseIndicatorBaseValuePeriodIndicatorBaseMovingAverageIndicatorMovingAverageCacheIndicatorRelativeMomentumIndexIndicator...
Implements:
Inherited Members
Constructors
public RelativeMomentumIndexIndicator()
Fields
Cache key for downward momentum values.
public const byte downMomentumValues = 2
Identifies the property that controls the number of points between compared values.
public static readonly RadProperty MomentumPeriodProperty
Cache key for upward momentum values.
public const byte upMomentumValues = 1
Properties
Gets or sets the shift. This is the momentum period.
public int MomentumPeriod { get; set; }
Methods
Calculates upward momentum as a percentage of total upward and downward momentum.
Creates caches for source values and upward and downward momentum.
public override void InitializeCache()
Overrides: