SharpTrader.SDK - Developer API

IndicatorHelpers..::..EMA Method

(Left-sided) Exponential moving average (EMA)

Namespace:  Sharpshooter.SDK.Indicators
Assembly:  Sharpshooter.SDK (in Sharpshooter.SDK.dll)

Syntax


public static double[] EMA(
	IReadOnlyList<double> values,
	double alpha
)

Parameters

values
Type: IReadOnlyList<(Of <(<'Double>)>)>
input values
alpha
Type: Double
decay factor

Return Value

EMA values. EMA is not defined in terms of samples, hence there is no special case for initial values below that limit.