Calculates the relative strength index from smoothed gains and losses, returning zero until the configured period is reached.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class RelativeStrengthIndexIndicator : MovingAverageCacheIndicator, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartSeries, IChartElementPresenter, IAxisProvider
Inheritance: objectDisposableObjectRadObjectUIChartElementChartSeriesCartesianSeriesCartesianPointSeriesLineSeriesBaseIndicatorBaseValuePeriodIndicatorBaseMovingAverageIndicatorMovingAverageCacheIndicatorRelativeStrengthIndexIndicator...
Implements:
Inherited Members
Constructors
public RelativeStrengthIndexIndicator()
Fields
Cache key for the smoothed average gains.
public const byte averageGains = 2
Cache key for the smoothed average losses.
public const byte averageLosses = 3
Methods
Averages cached values from the specified index back over at most the requested period.
public static double CalculateMomentumAverages(int startIndex, int period, IndicatorCacheCollection collection)
The index at which to end the averaging window.
periodintThe maximum number of positions to include.
collectionIndicatorCacheCollectionThe cache collection containing the values to average.
Returns:The sum of non-null values in the window divided by the number of available positions.
Calculates the RSI from the smoothed average gains and losses at the specified point.
Creates the caches used for gains, losses, and their averages.
public override void InitializeCache()
Overrides: