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

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