RealCode API
XAVG Method (period, barStyle)
RealCode APIWBI.CommonBlocksRealCodeIndicatorXAVG(Int32, RealCodeIndicator..::.BarValue)
Returns the Exponential Average Calculation for the specified period. Uses the BarValue data point
Declaration Syntax
Visual Basic
Public Function XAVG ( _
	period As Integer, _
	barStyle As RealCodeIndicator..::.BarValue _
) As RealCodeIndicatorCalculation
Parameters
period (Int32)
The number of bars to perform the average
barStyle (RealCodeIndicator..::.BarValue)
The Bar point to use for the calculation:Open,High,Low or Close
Return Value
Returns a RealCodeIndicatorCalculation. Can be used to chain more function calls
Remarks
Not used during manual loop calculations
Examples
Example: Plot the 5 bar simple moving average of the Exponential Average of the high for 20 bars
CopyVB.NET
plot = price.ExponentialAverage(20,RealCodeIndicator.BarValue.High).AVG(5)
See Also

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