RealCode API
ExponentialAverage Method (period, barStyle)
RealCode APIWBI.CommonBlocksRealCodeIndicatorExponentialAverage(Int32, RealCodeIndicator..::.BarValue)
Returns the Exponential Average Calculation for the specified period. Uses the BarValue data point
Declaration Syntax
Visual Basic
Public Function ExponentialAverage ( _
	period As Integer, _
	barStyle As RealCodeIndicator..::.BarValue _
) As RealCodeIndicatorCalculation
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
Not used during manual loop calculations
Example: Plot the Exponential Average of the high for 20 bars
plot = price.ExponentialAverage(20,RealCodeIndicator.BarValue.High).value
See Also

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