Syntax
Public Function ExponentialMovingAverage(applyTo As ENUM_APPLIED_PRICE, period As Integer) As String |
An Exponential Moving Average is similar to a Simple Moving Average.
An EMA is calculated by applying a small percentage of the current value to the previous value.
An EMA applies more weight to recent values.
A Moving Average is most often used to average values for a smoother representation of the underlying price or indicator.
Parameters
Key | Description |
applyTo | The value can be one of the ENUM_APPLIED_PRICE |
Return value
Returns the handles of a technical indicator, in case of failure returns an empty string.
See Also