RealCode API
MovingAverage Method (period)
RealCode APIWBI.CommonBlocksRealCodeIndicatorMovingAverage(Int32)
Simple Moving Average of the specified period for the current bar
Declaration Syntax
Visual Basic
Public Function MovingAverage ( _
	period As Integer _
) As RealCodeIndicatorCalculation
Parameters
period (Int32)
moving average period (in bars)
Return Value
Returns a RealCodeIndicatorCalculation. This allows you to call other functions like AVG,XAVG,STOC,RSI
Remarks
Examples
plot the 5 bar exponential average of the 30 bar moving average of price
CopyVB.NET
plot = price.MovingAverage(30).XAVG(5)
See Also
MovingAverage(Int32)
AVG(Int32)

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