A version of the EMA calculation that's not tied to BarData classes.

Namespace: RightEdge.Indicators
Assembly: Indicators (in Indicators.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public static double EMAValue(
	double presentValue,
	double previousValue,
	int periods
)
Visual Basic
Public Shared Function EMAValue ( 
	presentValue As Double,
	previousValue As Double,
	periods As Integer
) As Double
Visual C++
public:
static double EMAValue(
	double presentValue, 
	double previousValue, 
	int periods
)
F#
static member EMAValue : 
        presentValue : float * 
        previousValue : float * 
        periods : int -> float 

Parameters

presentValue
Type: System..::..Double
Current value.
previousValue
Type: System..::..Double
Previous value.
periods
Type: System..::..Int32
Number of periods for this EMA calculation.

Return Value

Type: Double
Current exponential moving average value.

See Also