分类
外汇交易平台比较

指数移动平均线(EMA)

(price, N)_i = \alpha 指数移动平均线(EMA) \times price_ + (1 - \alpha) 指数移动平均线(EMA) \times \operatorname(price, N)_ " />

指数移动平均线(EMA)指数移动平均线(EMA)

Our website is made possible by displaying non-intrusive online advertisements to our visitors.
Please consider supporting us by disabling or pausing your ad blocker.

指数移动平均线 (EMA)

 \operatorname</p>
<p>(price, N)_i = \alpha \times price_ + (1 - \alpha) \times \operatorname(price, N)_

 \alpha = \dfrac <2></p>
<p>

在简单移动平均线中,所有先前棒线的权重相等,但在指数移动平均线中,最近棒线的权重最大。棒线由近及远,其权重呈指数级下降。下方为 N = 10 时的权重表(1 为当前价格,2 为前一价格,以此类推):

Ema1.png

 \operatorname<weight></p>
<p>_ = \alpha \times (1 - \alpha) ^

其中 i 是至最近棒线的距离。0 表示最近棒线,1 表示前一棒线,以此类推。

公式引用了之前的值,但是,对于哪个值是第一个(最早的)值没有统一的标准。不同的 EMA 实现机制使用:

  • 第一个价格(MT4、汇图宝)
  • 前 指数移动平均线(EMA) N 个价格的简单移动平均线 (Stockcharts)。

取代简单移动平均线

指数移动平均线的用法可与简单移动平均线完全相同,特别是在简单移动平均线的滞后性不能忽略时。请比较应用于相同价格的 EMA(10) 和 MVA(10):

EMA指数平滑移动平均

Exponential moving averages are recommended as the most reliable of the basic moving average types. They provide an element of weighting, with each preceding day given progressively less weighting. Exponential 指数移动平均线(EMA) smoothing avoids the problem encountered with simple moving averages, where the average has a tendency to "bark twice": once at the start of the moving average period and again in the opposite direction, at the end of the period. Exponential moving average slope is also easier to determine: the slope is always down when price closes below the moving average and always up when price is above.

Formula

To calculate an exponential moving average (EMA):

  • Take today's price multiplied by an EMA%.
  • Add this to yesterday's EMA multiplied by (1 指数移动平均线(EMA) - EMA%).

If we recalculate the earlier table we see that the 指数移动平均线(EMA) exponential moving average presents a far smoother trend:

Simple Moving Average Formula

To calculate a 5 day simple moving average ("SMA"), take the sum of the last 5 days prices and divide by 5.

指数移动平均线(EMA)
Day 1 2 3 4 5 6 7 8 9
Price ($) 16 17 17 10 17 18 17 1717
5 指数移动平均线(EMA) Day SMA 15.4 15.8 15.8 15.8 17.2

从上面的表格我们可以看到,在第9天,简单移动平均结果是17.2,与第8天的简单移动平均15.8相比有一个较大的跳跃,而第8、9两天的实际数据为17、17并没有变化。在第4天时的数据不仅仅引起当前数值上的下降,而且还对第9天的简单移动平均造成了扭曲,也就是前面说的那个条约。这就是所谓的“bark twice”。也就是说原始数据一次脉冲式跳跃,会导致后面数据的跳跃,并且两次跳跃的方向相反,从而不能很好描述原始数据的变化趋势。因此才有人提出了指数平滑移动平均线Exponential Moving Average,简称EMA。

如何用Excel编制指数移动平均线EMA?

在所有的均线中,最常见的是简单移动平均线Simple Moving Average,简单移动平均线的计算很容易理解,均线上各个点的值来自N个收盘价的算术平均值,只需将这些收盘价加在一起再除以N即可。但今天介绍的是指数移动平均线EMA(exponential moving average)。指数移动平均线与简单移动平均线的区别在于:简单移动平均线对于所有交易日的报价给予的权重是一样的,而指数移动平均线赋予不同交易日的报价不同的权重,报价离当前越近权重越大,对移动均线的走势影响也越大。