RealCode API
AVGC Method (period, barsAgo)
RealCode APIWBI.CommonBlocksRealCodeIndicatorAVGC(Int32, Int32)
Simple Moving Average of the specified period for the close value, offset by BarsAgo
Declaration Syntax
Visual Basic
Public Function AVGC ( _
	period As Integer, _
	barsAgo As Integer _
) As Single
period (Int32)
moving average period (in bars)
barsAgo (Int32)
number of bars ago to offset
Return Value
Returns the Moving Average of the close for the specified period
Plot the 20 bar average of the close for the current symbol
plot = Price.AVGC(20)

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