# 什么是MACD指标?

[Skip to content](https://www.antrade.io/guide/docs/cn/macd-indicator/#content)[AntBot | Crypto Trading Bot](https://www.antrade.io/guide/docs/cn/)[首页](https://www.antrade.io/guide/docs/cn/)[免费使用AntBot](https://antrade.io/)

* [Home](https://www.antrade.io/guide/docs/cn)
* [技术指标](https://www.antrade.io/guide/docs/cn/indicator/)
* [进阶学习](https://www.antrade.io/guide/docs/cn/cn-learning/)
* [什么是MACD指标?](https://www.antrade.io/guide/docs/cn/macd-indicator/)

Search for:

技术指标

* * [支撑和阻力原理详解](https://www.antrade.io/guide/docs/cn/support-resistance/)
  * [什么叫阴包阳形态？](https://www.antrade.io/guide/docs/cn/engulfing-bearish-patterns/)
  * [什么叫阳包阴形态？](https://www.antrade.io/guide/docs/cn/engulfing-bullish-patterns/)
  * [什么叫三只乌鸦形态？](https://www.antrade.io/guide/docs/cn/three-black-crows-patterns/)
  * [什么叫锤子线形态？](https://www.antrade.io/guide/docs/cn/long-lower-shadow-patterns/)
  * [什么叫倒锤子线形态？](https://www.antrade.io/guide/docs/cn/long-upper-shadow-patterns/)
  * [什么是BBW(Bollinger Bands Width)指标？](https://www.antrade.io/guide/docs/cn/bbw-indicator/)
  * [什么是RSI(Relative Strength Index)指标?](https://www.antrade.io/guide/docs/cn/rsi-indicator/)
  * [什么是SMA(Simple Moving Average)指标？](https://www.antrade.io/guide/docs/cn/ma-indicator/)
  * [什么是KDJ指标？](https://www.antrade.io/guide/docs/cn/kdj-indicator/)
  * [什么是MACD指标?](https://www.antrade.io/guide/docs/cn/macd-indicator/)

## 什么是MACD指标?

4月 ago[AntBot](https://www.antrade.io/guide/docs/cn/author/antbot/)1 minute

**目录：**

* [**什么是MACD指标？**](https://www.antrade.io/guide/docs/cn/macd-indicator/#%E4%BB%80%E4%B9%88%E6%98%AFMACD%E6%8C%87%E6%A0%87%EF%BC%9F)\\
* [**计算**](https://www.antrade.io/guide/docs/cn/macd-indicator/#%E8%AE%A1%E7%AE%97)\\
* [**应用法则**](https://www.antrade.io/guide/docs/cn/macd-indicator/#%E5%BA%94%E7%94%A8%E6%B3%95%E5%88%99)\\
* [**MACD的魔力**](https://www.antrade.io/guide/docs/cn/macd-indicator/#MACD%E7%9A%84%E9%AD%94%E5%8A%9B)\\
* [**MACD的局限性**](https://www.antrade.io/guide/docs/cn/macd-indicator/#MACD%E7%9A%84%E9%AD%94%E5%8A%9B)

**什么是MACD指标？**

MACD全称是指数平滑异同平均线，是由Geral Appel在1979年提出的一种**趋势跟踪**的**动量指标**，在技术分析中极为流行。MACD从**双移动平均线**发展而来，可以用来识别资产整体趋势的各个方面。

首先，MACD采用了两条不同长度的移动平均线（属于**滞后指标**）来识别**趋势方向**和**持续时间**。

然后，MACD采用这两条移动平均线（**MACD线**）和这两条移动平均线的EMA\*\*（信号线\*\*）之间的**数值差**，并将这两条线之间的差值绘制成**柱状图**，在中心**零线上下震荡**。

直方图被用作**资产势头**的**良好指示**。**MACD**可以去**除掉MA线**频繁的**假讯号**缺陷又能**确保移动平均线**最大的战果。

<figure><img src="https://antrade.io/guide/docs/cn/wp-content/uploads/2022/11/MACD-2.jpg" alt=""><figcaption></figcaption></figure>

**计算**

指数平滑异同移动平均线（MACD）通常由三个部分组成：

1\. MACD线是将长期EMA减去短期EMA的结果。可称为差离值（DIF）。

* MACD 线：（12 天 EMA – 26 天 EMA）

通俗地说，MACD 将两个趋势跟随指标（即移动平均线）转变为动量震荡指标。它通过过滤掉每日价格波动来识别趋势。最常用的数值是长期EMA为26天，短期EMA为12天。

MACD 线对价格变化的反应相对较快。

MACD没有最高与最低值。

MACD呈现的是价格变化的相对速度，不是速度本身。

2\. 信号线，是DIF的指数移动平均值，一般称为DEA。

* 信号线：MACD 线的 9 天 EMA

信号线是MACD线的EMA值。9是最常见的信号线中使用的周期长度EMA。

信号线对价格变化的反应通常较慢。

3\. MACD柱状图，它的值是DIF和DEA之间的差值。

* MACD 直方图：MACD 线 – 信号线

随着时间的推移，MACD线和信号线之间的差异将不断地变化。MACD 直方图将这种差异绘制成一个易于阅读的直方图。两条线之间的差值围绕零线进行震荡。

**应用法则**

MACD指标通常有利于识别三种类型的基本信号: 信号线交叉、零线交叉和背离。

**1. 信号线交叉**

* 看涨信号线交叉 – 当MACD线在信号线上方交叉时，会出现看涨信号线交叉。
* 看跌信号线交叉 – 当MACD线穿在信号线下方交叉时，会出现看跌信号线交叉。

<figure><img src="https://antrade.io/guide/docs/cn/wp-content/uploads/2022/11/KANZHANG-KANDIE.jpg" alt=""><figcaption></figcaption></figure>

**2. 零线交叉**

* 看涨零线交叉 – 当MACD线在零线之上交叉并由负转正时，就会出现看涨零线交叉。
* 看跌零线交叉 – 当MACD线在零线以下交叉并由正转负时，就会发生看跌零线交叉。

<figure><img src="https://antrade.io/guide/docs/cn/wp-content/uploads/2022/11/LINIXANJIAOCHA.jpg" alt=""><figcaption></figcaption></figure>

**3. 背离**

背离是指MACD和实际价格不一致的情况。

* 当价格记录了一个较低的低点而MACD记录了一个较高的低点时，就会出现看涨背离。

<figure><img src="https://antrade.io/guide/docs/cn/wp-content/uploads/2022/11/Bearish-Divergence.jpg" alt=""><figcaption></figcaption></figure>

* 当价格记录了一个较高的高点而MACD记录了一个较低的高点时，就会出现看跌背离。

<figure><img src="https://antrade.io/guide/docs/cn/wp-content/uploads/2022/11/Bullish-Divergence.jpg" alt=""><figcaption></figcaption></figure>

**MACD的魔力**

根据移动平均线原理发展出来的MACD，不仅去除了移动平均线频繁发出假信号的缺陷，还保留了移动平均线的效果。MACD指标具有均线趋势性、稳重性、安定性等特点，是用来研判买卖资产的时机，预测资产价格涨跌的技术分析指标。

MACD是两个指标的二合一,这是使得它成为技术分析中有价值的工具的原因。不仅可以帮助识别趋势，而且还可以测量动量。它采用了两个单独的滞后指标，并且增加了动量方面的内容，而动量是更加积极或预测性的。这种多功能性是它一直被整个金融领域的交易员和分析师使用的原因。

**MACD的局限性**

通常认为，MACD比较适用于中长期走势的研判，短线走势指导性较弱。

MACD指标非常简单实用，但它仍然有一些弊端。由于移动平均线衡量的是资产的价格在之前一段时间内的变化情况，对于短期的大幅的价格变化，MACD不会立即产生信号，会有一定滞后。

因此，在使用MACD指标去做信号判断和交易判断时，也应该结合其他指标的情况，综合判断。

**参考文档**：

<https://www.tradingview.com/scripts/macd/>

<https://www.tradingview.com/scripts/macd/?solution=43000502344>

[#AntBot](https://www.antrade.io/guide/docs/cn/tag/antbot/)[#Indicator](https://www.antrade.io/guide/docs/cn/tag/indicator/)[#MACD](https://www.antrade.io/guide/docs/cn/tag/macd/)[#Moving Average Convergence Divergence](https://www.antrade.io/guide/docs/cn/tag/moving-average-convergence-divergence/)[#trading](https://www.antrade.io/guide/docs/cn/tag/trading/)@AntBot free trading bot\\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.bfm-unity.org/antbot-doc/zh-cn/ji-shu-zhi-biao/shi-mo-shi-macd-zhi-biao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
