ExponentialMovingAverage
The Exponential Moving Average (Ema) is a widely-used technical indicator that gives more weight to recent price data, making it more responsive to new information compared to a Simple Moving Average (SMA). The Ema decreases the lag by applying more weight to recent prices relative to older prices. The Ema can provide key market signals. A common interpretation is that when the Ema crosses above the price, it's a buy signal, and when it crosses below, it's a sell signal. The Ema is calculated with the formula: EMA_i = EMA_i-1 + K * (Price - EMA_i-1) where K
is the smoothing factor calculated by 2 / (Period + 1)
. This formula allows the Ema to be continuously updated as new price data becomes available.
Constructor
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
|
Properties
Name | Type | Description |
---|---|---|
historyCapacity inherited from
| number | The maximum history held by the indicator. As new data comes in only this many points are kept. |
historyCount inherited from
| number | The number of historical points currently held by the indicator. Will never be larger than |
last inherited from
| T | |
values inherited from
| T[] |
Methods
add()inherited from
| ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returns
|