RealCode API
AVG Method (period)
RealCode APIWBI.CommonBlocksRealCodeIndicatorAVG(Int32)
Simple Moving Average of the specified period for the current bar
Declaration Syntax
Visual Basic
Public Function AVG ( _
	period As Integer _
) As Single
Parameters
period (Int32)
moving average period (in bars)
Return Value
Returns the moving average value for the current bar.
Remarks
Examples
plot the 30 bar moving average of price
CopyVB.NET
plot = price.AVG(30)
See Also

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