RealCode API
XAVG Method (period, offset)
RealCode APIWBI.CommonBlocksRealCodeIndicatorXAVG(Int32, Int32)
Returns the Exponential Average of the close for the specified period for the specified offset.
Declaration Syntax
Visual Basic
Public Function XAVG ( _
	period As Integer, _
	offset As Integer _
) As Single
period (Int32)
The number of bars to perform the average
offset (Int32)
The number of bars to offset
Return Value
Returns a single data point
Not used during manual loop calculations
Example: Plot the 20 bar Exponential Average of the close, 1 bar ago
plot = price.XAVG(20,1)
See Also

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