RealCode API
RelativeStrengthIndex Method (period, avgPeriod)
RealCode APIWBI.CommonBlocksRealCodeIndicatorRelativeStrengthIndex(Int32, Int32)
Returns the Relative Strength Index Calculation.
Declaration Syntax
Visual Basic
Public Function RelativeStrengthIndex ( _
	period As Integer, _
	avgPeriod As Integer _
) As RealCodeIndicatorCalculation
Parameters
period (Int32)
The number of bars to perform the average
avgPeriod (Int32)
The averagePeriod for the Relative Strength
Return Value
Returns a RealCodeIndicatorCalculation. Can be used to chain more function calls
Remarks
Not used during manual loop calculations
Examples
Example: Plot the 5 bar moving average of the 17,3 RelativeStrengthIndex
CopyVB.NET
plot = price.RelativeStrengthIndex(13,3).AVG(5)
See Also

Assembly: WBI.CommonBlocks (Module: WBI.CommonBlocks) Version: 1.0.25.0 (1.0.0.0)