# MACD

**MACD**（Moving Average Convergence Divergence，指数平滑异同移动平均线）是一种趋势跟踪型动量指标，用于衡量资产收盘价的两条指数移动平均线（EMA）之间的关系，最常见的是以12周期EMA减去26周期EMA，再对结果取9周期EMA绘制为信号线<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup>。杰拉尔德·阿佩尔（Gerald Appel）于1970年代末创立该指标，至今仍是技术分析中被引用最广的工具之一，尽管数十年的回测表明，在贴近现实的条件下，其标准规则鲜能战胜买入持有策略<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)</sup>。

| 关键事实 | 详情 |
|---|---|
| 公式 | MACD线 = 收盘价的12周期EMA − 26周期EMA；信号线 = MACD线的9周期EMA<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup> |
| 柱状图 | 由托马斯·阿斯普雷（Thomas Aspray）于1986年添加；其创始人将其定义为信号线 − MACD线，但许多平台使用相反的符号<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup><sup> • </sup><sup>[3](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/macd-moving-average-convergence-divergence-oscillator)</sup> |
| 起源 | 由杰拉尔德·阿佩尔约于1977年发明，初衷是作为一种“质量指标”，以避免令人困惑的反复拉锯<sup>[4](https://traders.com/Documentation/FEEDbk_docs/2003/09/Abstracts_new/Interview/interview.html)</sup> |
| 默认参数 | 写作MACD(12,26,9)；据报道阿佩尔本人建议买入用(8,17,9)、卖出用(12,25,9)，因此12/26/9只是一种惯例，并非他最初的推荐<sup>[5](https://www.mdpi.com/1911-8074/19/3/192)</sup> |
| 回测记录 | 在30只道琼斯工业平均指数成分股上进行的20年回测中，标准MACD在26%的对比中胜出，30只股票中有29只未能战胜买入持有<sup>[6](https://www.liberatedstocktrader.com/macd-indicator/)</sup> |
| 跨市场证据 | 在30个股票市场中，MACD规则在扣除成本前于23个市场实现盈利（其中5个显著），而简单的22日移动平均线为27个<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)</sup> |
| 主要使用者 | 短线专业交易者将MACD和移动平均线交叉列为其最常用的趋势跟踪工具之列<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)</sup> |

## 定义与公式

该指标分四步计算<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup>：

1. 计算收盘价的12根K线EMA。
2. 计算收盘价的26根K线EMA。
3. MACD线 = 12根K线EMA − 26根K线EMA。
4. 信号线 = MACD线的9根K线EMA。

m周期平均线的EMA平滑权重为 \( 2/(m+1) \)，因此12周期EMA对每个新收盘价的权重为 \( 2/13 \)，26周期EMA为 \( 2/27 \)<sup>[7](https://dl.acm.org/doi/pdf/10.1145/3677892.3677895)</sup>。由于MACD线是两条EMA之差，它围绕零轴振荡：正值意味着较快的平均线位于较慢的平均线之上，这是动量处于上升趋势的标志。

三条绘制出的成分承载着不同的信息。MACD线跟踪中期动量；信号线是它的平滑版本，因此二者的交叉标志着MACD线相对于其平滑值的位置变化；柱状图则衡量二者之间的差距，动量加速时扩大，衰减时收缩<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup>。StockCharts的ChartSchool将柱状图定义为MACD线减去信号线，当MACD线位于信号线之上时为正<sup>[3](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/macd-moving-average-convergence-divergence-oscillator)</sup>；而CMT协会的论文则记载阿斯普雷1986年的构造为信号线减去MACD线<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup>。这两种惯例会使柱状图的符号相反，因此在将柱状图的峰谷解读为择时信号之前，应先查阅所用平台的文档。

## 起源与理据

在2003年的一次采访中，阿佩尔表示MACD“最初大约发明于1977年”，当时他在寻找“一种易于解读的质量指标，不会产生太多令人困惑的反复拉锯”<sup>[4](https://traders.com/Documentation/FEEDbk_docs/2003/09/Abstracts_new/Interview/interview.html)</sup>。他还指出，MACD最初的描述“并未特别提及背离”，并且“使用的周期组合与如今所用的不同”<sup>[4](https://traders.com/Documentation/FEEDbk_docs/2003/09/Abstracts_new/Interview/interview.html)</sup>。

**参数的故事存在争议。** 同行评审来源报告称，阿佩尔最初建议在日线图上买入信号用(8,17,9)、卖出信号用(12,25,9)，而如今标准的(12,26,9)既非正式标准，也非他最初的推荐，尽管过去二十年间的许多研究已将其采纳为默认值<sup>[5](https://www.mdpi.com/1911-8074/19/3/192)</sup><sup> • </sup><sup>[8](https://www.sciedu.ca/journal/index.php/ijfr/article/download/22118/13818)</sup>。一种广为流传的解释认为，12和26源自六天交易周，26个交易日等于一个月的交易，12个交易日等于两周的美国股票日线数据；同一来源指出，[华尔街](https://www.edgepedia.org/zh/wall-street)的周六交易已于1952年结束，比MACD的诞生早了四分之一个世纪，因此这套算术先于该指标存在<sup>[9](https://forex-basics.com/analysis/macd-advanced-mechanics/)</sup>。这一说法仅依据一篇来源薄弱的从业者文章，且与阿佩尔本人所称其原始周期与今日不同的说法相抵触，因此应视为有争议<sup>[4](https://traders.com/Documentation/FEEDbk_docs/2003/09/Abstracts_new/Interview/interview.html)</sup><sup> • </sup><sup>[5](https://www.mdpi.com/1911-8074/19/3/192)</sup>。

## 信号与解读

标准信号有三类<sup>[10](https://www.investopedia.com/terms/m/macd.asp)</sup>：

- **信号线交叉。** MACD线向上穿越其9周期信号线时买入，向下穿越时卖出。
- **零轴交叉。** MACD自下而上穿越零轴时买入，自上而下穿越时卖出；学术记法中写作MACD(N,M,0)，而信号线规则写作MACD(N,M,9)<sup>[11](https://www.mdpi.com/1911-8074/7/1/1)</sup>。零轴交叉恰好发生在两条EMA相等之时；一份从业者来源报告称，在EUR/USD日线图上，这种情况每年大约发生十二到十八次<sup>[9](https://forex-basics.com/analysis/macd-advanced-mechanics/)</sup>。
- **背离。** 价格创出新高或新低，而MACD不予确认，解读为动量减弱。

回测按不同指标对这些信号给出了不同的排名。在一项针对道琼斯、纳斯达克和标普500成分股的Python研究中，柱状图规则在道琼斯成分股上产生了1,439笔交易，胜率0.68，但盈亏比为0.70，意味着平均亏损超过平均盈利；零轴上方信号线交叉规则的盈亏比最高（道琼斯2.92，标普500为3.23），但夏普比率偏低，分别为0.34和0.35<sup>[12](https://arxiv.org/pdf/2206.12282/1000)</sup>。Investopedia指出，当价格在区间或三角形等整理形态中横盘时，虚假的背离经常出现<sup>[10](https://www.investopedia.com/terms/m/macd.asp)</sup>。康斯坦斯·布朗（Constance Brown）推广的一种从业者分类法将背离分为常规背离与隐藏背离、看涨与看跌，并报告称隐藏背离通常表现更好，因为它们顺应当前趋势而非逆势交易；这一分类法仅见于来源薄弱的从业者材料<sup>[9](https://forex-basics.com/analysis/macd-advanced-mechanics/)</sup>。由于MACD是滞后指标，标准建议是在依据交叉行动之前，等待后续价格行为或其他信号（如RSI）的确认<sup>[10](https://www.investopedia.com/terms/m/macd.asp)</sup>。

## 用数字说话

量化记录对教科书规则一贯不利。

- 在30只[道琼斯工业平均指数](https://www.edgepedia.org/zh/dow-jones-industrial-average)成分股上以标准设置进行的20年回测，相对于买入持有的胜率为26%，30只股票中有29只（97%）在日线OHLC图上未能战胜买入持有<sup>[6](https://www.liberatedstocktrader.com/macd-indicator/)</sup>。
- 在纳斯达克100成分股上进行的10年样本外测试发现，仅32.73%的交易盈利<sup>[13](http://momentum.technicalanalysis.org.uk/MeAN.pdf)</sup>。
- 对39,604个股票/配置组合的测试发现，仅有4.57%的策略在信号线触发下带来正超额收益，中心线触发下为3.35%；大多数策略的总收益为零<sup>[14](https://chrischow.github.io/dataandstuff/2018-10-28-how-not-to-invest-macd/)</sup>。
- 一项对30个股票市场的调查发现，MACD规则在扣除成本前于23个市场盈利（其中5个显著），但仅在30个市场中的15个战胜买入持有；简单的MA(22)规则在27个市场盈利（其中12个显著），并在30个市场中的20个战胜买入持有<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)</sup>。一项2026年研究所综述的文献指出，在计入现实交易成本后，MACD类规则仅在23个发达市场中的5个和18个新兴市场中的4个实现盈利，且样本外表现并不显著优于买入持有<sup>[15](https://link.springer.com/article/10.1007/s40622-026-00479-x)</sup>。
- 在道琼斯、纳斯达克和标普500成分股中，胜率大多低于0.5，夏普比率偏低，意味着回报风险较高<sup>[12](https://arxiv.org/pdf/2206.12282/1000)</sup>。
- 已发表的策略回测显示出温和的绝对结果：一项报告复合年增长率为4.19%，每笔交易平均收益0.44%，盈利因子1.65，最大回撤30%；一个变体报告复合年增长率3.44%，盈利因子1.72，回撤25%，仅31%的时间持仓<sup>[16](https://www.quantifiedstrategies.com/macd-trading-strategy/)</sup>。
- 一项对跨资产类别2,310个MACD看涨交叉信号的回测发现，总体胜率为49.7%，盈利因子0.94，在加密货币中降至39.2%，在商品看涨交叉中升至55.2%<sup>[17](https://stocks365.com/blog/stochastic-oscillator-vs-macd-ultimate-comparison)</sup>。

也有例外。在一项学术研究中，MACD(12,26,0)在扣除1%的往返成本后，对米兰综合指数（每十日信号净收益1.021%）和标普/TSX综合指数（净收益0.776%）仍然盈利，而在德国，MACD(12,26,9)产生了显著为负的买卖收益0.944%，而买入持有收益为正的0.249%；对于[日经225指数](https://www.edgepedia.org/zh/nikkei-225)，没有任何规则战胜买入持有<sup>[11](https://www.mdpi.com/1911-8074/7/1/1)</sup>。各项研究的共同模式是：盈利能力即便存在，也因市场而异，且对成本十分脆弱。

## 与RSI、随机指标和移动平均线交叉的比较

与RSI相比，在二者至少有一个有效的市场中，扣除成本后的直接对比结果更有利于RSI：在同一项学术研究中，RSI(21,50)规则为米兰市场带来年净收益5.069%，远高于MACD的1.021%<sup>[11](https://www.mdpi.com/1911-8074/7/1/1)</sup>。与移动平均线交叉相比，MACD在广度上是两者中较弱的一个：在30个市场中的23个盈利，而MA(22)为27个；在30个市场中的15个战胜买入持有，而后者为20个<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)</sup>。与随机振荡指标相比，从业者测试将二者视为互补：MACD适合趋势性、方向性市场，而随机指标适合区间市场，MACD是两者中更滞后、更具趋势确认性的一个<sup>[17](https://stocks365.com/blog/stochastic-oscillator-vs-macd-ultimate-comparison)</sup>。ChartSchool的表述是，MACD独特地将趋势与动量融合在一个指标中，可应用于日线、周线或月线图<sup>[3](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/macd-moving-average-convergence-divergence-oscillator)</sup>。

## 跨市场与跨周期的实际应用

参数敏感性比默认值所暗示的更为重要。ChartSchool指出，MACD(5,35,5)比MACD(12,26,9)更敏感，可能更适合周线图，而较不敏感的设置会降低交叉频率<sup>[3](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/macd-moving-average-convergence-divergence-oscillator)</sup>。周期证据则好坏参半：在5分钟图上，仅40%的MACD交易盈利，盈利与亏损交易之间的收益差为0.2%；而在Heikin Ashi图上，MACD在30只道琼斯成分股中的15只上战胜买入持有；在加密货币和外汇测试中，其最高成功率为50%，64%的交易为亏损<sup>[6](https://www.liberatedstocktrader.com/macd-indicator/)</sup>。上述资产类别回测发现，商品是其最佳适配，看涨交叉胜率55.2%，加密货币最差，为39.2%<sup>[17](https://stocks365.com/blog/stochastic-oscillator-vs-macd-ultimate-comparison)</sup>。

**过滤会改变局面。** 在US_TECH100上基于五年券商数据，原始MACD产生2,213笔交易，胜率46.5%，盈利因子1.03，最大回撤−28.8R；加入市场状态、更高周期和交易时段过滤器后，交易减少至195笔，胜率提升至50.3%，期望值提升至+0.100R，盈利因子提升至1.20，回撤降至−9.7R<sup>[18](https://www.mql5.com/en/articles/22290)</sup>。在EURUSD H1上，从2023年8月至2024年12月，朴素的信号线交叉规则触发673笔交易，亏损350.1点（胜率51.0%），而带门控的变体仅交易21笔，盈利67.0点，胜率61.9%<sup>[19](https://www.mql5.com/en/articles/22911)</sup>。关于谁在使用它，直接证据有限：研究者与专业人士的沟通将MACD和移动平均线交叉列为短线交易者最广泛使用的工具之列<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)</sup>，CMT协会指出，在阿佩尔开发该指标40年后，它仍被技术分析师广泛使用<sup>[20](https://cmtassociation.org/presenter/gerald-appel/)</sup>。

## 批评与局限

四类弱点在各来源中反复出现。第一，反复拉锯：当方向性强度较低时，MACD在均衡线和信号线附近徘徊，交叉频繁发生，许多信号是虚假的，从业者称之为趋势跟踪系统的[阿喀琉斯之踵](https://www.edgepedia.org/zh/achilles-heel)<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup>。第二，滞后：当强趋势突然反转时，移动平均线会产生方向正确但滞后的信号<sup>[1](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)</sup>，该指标只有在趋势开始之后才会作出反应<sup>[15](https://link.springer.com/article/10.1007/s40622-026-00479-x)</sup>。第三，交叉事件本身并不携带关于产生它的动量变化的幅度或持续性的明确信息，因此区间市场会给该规则提供低确信度的交易，这些交易在入场时与真实行情交易无法区分<sup>[19](https://www.mql5.com/en/articles/22911)</sup>。第四，稳健性：在下面75个变体的EUR/USD 4H回测中，尽管总体数字为正，每个变体都未能通过漂移检验，这是一种数据挖掘模式<sup>[21](https://strat-forge.com/blog/macd-backtest-results)</sup>。MACD是否在其已包含的动量之外提供了额外信息，在现有研究中已被描述但未被直接检验<sup>[22](https://arxiv.org/pdf/2509.21326)</sup>。

## 近期发展

近期研究不再将MACD视为独立系统，而是将其视为一个可优化、可过滤或可学习的基础信号：

- 一篇2024年的ACM论文将标准择时规则形式化（DIF上穿DEA的“金叉”做多，向下突破做空），并应用机器学习进行参数优化<sup>[7](https://dl.acm.org/doi/pdf/10.1145/3677892.3677895)</sup>。
- 一项2026年的Springer研究将MACD的EMA窗口的遗传算法优化与循环强化学习相结合，覆盖八个货币对；在波动的2022–2025年测试期内，基线GA优化MACD在全部八个货币对上产生负夏普比率，而RRL增强版本实现了正的平均夏普比率，USD/JPY为0.16，EUR/CHF为0.19，其中六个货币对在p < 0.05水平上显著改善<sup>[15](https://link.springer.com/article/10.1007/s40622-026-00479-x)</sup>。
- 一篇关于标普500的硕士论文报告称，混合ARIMA-LSTM模型和基于Transformer的元MACD方法在五个测试案例中，对于识别有利可图的入场点，相较于传统标准MACD信号具有明确优势<sup>[23](https://norma.ncirl.ie/9756/1/dheerajgopalkrishna.pdf)</sup>。
- 平台级回测（上述MQL5过滤和元标记研究）量化了门控对原始MACD的改善程度<sup>[18](https://www.mql5.com/en/articles/22290)</sup><sup> • </sup><sup>[19](https://www.mql5.com/en/articles/22911)</sup>。
- 一篇2025年的arXiv预印本将MACD视为检测动量转变和趋势反转的广泛使用工具，定义为不同窗口长度的两条移动平均线之差<sup>[22](https://arxiv.org/pdf/2509.21326)</sup>。
- 75变体EUR/USD 4H研究（2013–2026）发现，扣除2点往返成本后平均净期望值为+3.39点，平均样本外夏普比率为+0.92，然而100%的变体未能通过逐窗口的样本内/样本外漂移检验，且没有一个使用教科书的12/26/9参数化<sup>[21](https://strat-forge.com/blog/macd-backtest-results)</sup>。

## References

1. [MACD-V: Volatility Normalised Momentum, Alex Spiroglou, CMT Association](https://cmtassociation.org/wp-content/uploads/2022/05/MACD-V-Volatility-Normalised-Momentum-by-Alex-Spiroglou-DipTA-ATAA-CFTe.pdf)
2. [Drivers of technical trend-following rules' profitability in world stock markets, International Review of Economics & Finance](https://www.sciencedirect.com/science/article/abs/pii/S1057521913001269)
3. [ChartSchool: MACD (Moving Average Convergence Divergence Oscillator), StockCharts](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/macd-moving-average-convergence-divergence-oscillator)
4. [Interview with Gerald Appel, Traders.com, September 2003](https://traders.com/Documentation/FEEDbk_docs/2003/09/Abstracts_new/Interview/interview.html)
5. [Optimal and Non-Optimal MACD Parameter Ranges with Stop-Loss and Take-Profit Rules: Evidence from the Gold Market, Journal of Risk and Financial Management (MDPI)](https://www.mdpi.com/1911-8074/19/3/192)
6. [The MACD Myth: My 606,422 Tested Trades Reveal the Truth, Liberated Stock Trader](https://www.liberatedstocktrader.com/macd-indicator/)
7. [Research on MACD Indicator Optimization and Stock Timing Strategy based on Machine Learning, ACM (2024)](https://dl.acm.org/doi/pdf/10.1145/3677892.3677895)
8. [Finding Optimal Parameter Values for the MACD Indicator, International Journal of Financial Research](https://www.sciedu.ca/journal/index.php/ijfr/article/download/22118/13818)
9. [MACD — mechanics, the 12-26-9 parameters and signals, forex-basics.com](https://forex-basics.com/analysis/macd-advanced-mechanics/)
10. [What Is MACD?, Investopedia](https://www.investopedia.com/terms/m/macd.asp)
11. [Revisiting the Performance of MACD and RSI Oscillators, Journal of Risk and Financial Management (MDPI)](https://www.mdpi.com/1911-8074/7/1/1)
12. [A comparative study of the MACD-base trading strategies: evidence from the US stock market, arXiv](https://arxiv.org/pdf/2206.12282/1000)
13. [Empirical Testing and Refinement of the MACD Indicator](http://momentum.technicalanalysis.org.uk/MeAN.pdf)
14. [How (Not) to Invest I: Moving Average Convergence/Divergence, Chris Chow](https://chrischow.github.io/dataandstuff/2018-10-28-how-not-to-invest-macd/)
15. [Self-augmenting technical indicator with recurrent reinforcement learning: evidence from Forex markets, DECISION (Springer, 2026)](https://link.springer.com/article/10.1007/s40622-026-00479-x)
16. [MACD Trading Strategy: Statistics, Facts And Historical Backtests!, Quantified Strategies](https://www.quantifiedstrategies.com/macd-trading-strategy/)
17. [Stochastic Oscillator vs MACD: The Ultimate Comparison, Stocks365](https://stocks365.com/blog/stochastic-oscillator-vs-macd-ultimate-comparison)
18. [Three MACD Filters on US_TECH100: Five Years of Broker Data, MQL5](https://www.mql5.com/en/articles/22290)
19. [Meta-Labeling the Classics (Part 4): Filtering and Sizing MACD Trades, MQL5](https://www.mql5.com/en/articles/22911)
20. [CMT Association presenter page: Gerald Appel](https://cmtassociation.org/presenter/gerald-appel/)
21. [MACD Backtest: 75 Variants Tested on EUR/USD 4H (2013–2026), Strat Forge](https://strat-forge.com/blog/macd-backtest-results)
22. [Recent arXiv paper on MACD (2025)](https://arxiv.org/pdf/2509.21326)
23. [A Meta-MACD Approach: Evaluating ARIMA-LSTM Generated MACD Signals for Optimizing Trade Entries in the S&P 500 Index, NCI Ireland repository](https://norma.ncirl.ie/9756/1/dheerajgopalkrishna.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 10, 2026 · Edited: Oct 10, 2026; Oct 11, 2026; Oct 15, 2026 · Last review: Oct 10, 2026*

Topic: 社会与历史 › 经济与商业 › 金融 › Finance theory and quantitative methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/macd

English original: https://www.edgepedia.org/macd
