Индикатор MACD (Moving Average ConvergenceDivergence)

Лучшие брокеры опционов за 2020 год:

Moving Average Convergence Divergence – MACD

What Is Moving Average Convergence Divergence – MACD?

Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. The MACD is calculated by subtracting the 26-period Exponential Moving Average (EMA) from the 12-period EMA.

The result of that calculation is the MACD line. A nine-day EMA of the MACD called the «signal line,» is then plotted on top of the MACD line, which can function as a trigger for buy and sell signals. Traders may buy the security when the MACD crosses above its signal line and sell — or short — the security when the MACD crosses below the signal line. Moving Average Convergence Divergence (MACD) indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls.

Moving Average Convergence Divergence — MACD

The Formula for MACD:

MACD is calculated by subtracting the long-term EMA (26 periods) from the short-term EMA (12 periods). An exponential moving average (EMA) is a type of moving average (MA) that places a greater weight and significance on the most recent data points. The exponential moving average is also referred to as the exponentially weighted moving average. An exponentially weighted moving average reacts more significantly to recent price changes than a simple moving average (SMA), which applies an equal weight to all observations in the period.

Key Takeaways

  • MACD is calculated by subtracting the 26-period EMA from the 12-period EMA.
  • MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.
  • The speed of crossovers is also taken as a signal of a market is overbought or oversold.
  • MACD helps investors understand whether the bullish or bearish movement in the price is strengthening or weakening.

Learning From MACD

The MACD has a positive value whenever the 12-period EMA (blue) is above the 26-period EMA (red) and a negative value when the 12-period EMA is below the 26-period EMA. The more distant the MACD is above or below its baseline indicates that the distance between the two EMAs is growing. In the following chart, you can see how the two EMAs applied to the price chart correspond to the MACD (blue) crossing above or below its baseline (red dashed) in the indicator below the price chart.

MACD is often displayed with a histogram (see the chart below) which graphs the distance between the MACD and its signal line. If the MACD is above the signal line, the histogram will be above the MACD’s baseline. If the MACD is below its signal line, the histogram will be below the MACD’s baseline. Traders use the MACD’s histogram to identify when bullish or bearish momentum is high.

MACD vs. Relative Strength

The relative strength indicator (RSI) aims to signal whether a market is considered to be overbought or oversold in relation to recent price levels. The RSI is an oscillator that calculates average price gains and losses over a given period of time; the default time period is 14 periods with values bounded from 0 to 100.

MACD measures the relationship between two EMAs, while the RSI measures price change in relation to recent price highs and lows. These two indicators are often used together to provide analysts a more complete technical picture of a market.

These indicators both measure momentum in a market, but, because they measure different factors, they sometimes give contrary indications. For example, the RSI may show a reading above 70 for a sustained period of time, indicating a market is overextended to the buy side in relation to recent prices, while the MACD indicates the market is still increasing in buying momentum. Either indicator may signal an upcoming trend change by showing divergence from price (price continues higher while the indicator turns lower, or vice versa).

Limitations of MACD

One of the main problems with divergence is that it can often signal a possible reversal but then no actual reversal actually happens – it produces a false positive. The other problem is that divergence doesn’t forecast all reversals. In other words, it predicts too many reversals that don’t occur and not enough real price reversals.

Русские брокеры бинарных опционов:

«False positive» divergence often occurs when the price of an asset moves sideways, such as in a range or triangle pattern following a trend. A slowdown in the momentum — sideways movement or slow trending movement — of the price will cause the MACD to pull away from its prior extremes and gravitate toward the zero lines even in the absence of a true reversal.

Additional MACD Resources

Are you interested in using MACD for your trades? Check out our own primer on the MACD and Spotting Trend Reversals with MACD for more information.

If you’d like to learn about more indicators, Investopedia’s Technical Analysis Course provides a comprehensive introduction to the subject. You’ll learn basic and advanced technical analysis, chart reading skills, technical indicators you need to identify, and how to capitalize on price trends in over five hours of on-demand video, exercises, and interactive content.

Example of MACD Crossovers

As shown on the following chart, when the MACD falls below the signal line, it is a bearish signal which indicates that it may be time to sell. Conversely, when the MACD rises above the signal line, the indicator gives a bullish signal, which suggests that the price of the asset is likely to experience upward momentum. Some traders wait for a confirmed cross above the signal line before entering a position to reduce the chances of being «faked out» and entering a position too early.

Crossovers are more reliable when they conform to the prevailing trend. If the MACD crosses above its signal line following a brief correction within a longer-term uptrend, it qualifies as bullish confirmation.

If the MACD crosses below its signal line following a brief move higher within a longer-term downtrend, traders would consider that a bearish confirmation.

Example of Divergence

When the MACD forms highs or lows that diverge from the corresponding highs and lows on the price, it is called a divergence. A bullish divergence appears when the MACD forms two rising lows that correspond with two falling lows on the price. This is a valid bullish signal when the long-term trend is still positive. Some traders will look for bullish divergences even when the long-term trend is negative because they can signal a change in the trend, although this technique is less reliable.

When the MACD forms a series of two falling highs that correspond with two rising highs on the price, a bearish divergence has been formed. A bearish divergence that appears during a long-term bearish trend is considered confirmation that the trend is likely to continue. Some traders will watch for bearish divergences during long-term bullish trends because they can signal weakness in the trend. However, it is not as reliable as a bearish divergence during a bearish trend.

Example of Rapid Rises or Falls

When the MACD rises or falls rapidly (the shorter-term moving average pulls away from the longer-term moving average), it is a signal that the security is overbought or oversold and will soon return to normal levels. Traders will often combine this analysis with the Relative Strength Index (RSI) or other technical indicators to verify overbought or oversold conditions.

It is not uncommon for investors to use the MACD’s histogram the same way they may use the MACD itself. Positive or negative crossovers, divergences, and rapid rises or falls can be identified on the histogram as well. Some experience is needed before deciding which is best in any given situation because there are timing differences between signals on the MACD and its histogram.

Индикатор MACD (Moving Average Convergence/Divergence)

Технический Индикатор Схождение/Расхождение Скользящих Средних (Moving Average Convergence/Divergence, MACD) — это следующий за тенденцией динамический индикатор. Он показывает соотношение между двумя скользящими средними цены.

Технический Индикатор MACD строится как разность между двумя экспоненциальными скользящими средними (EMA) с периодами в 12 и 26. Чтобы четко обозначить благоприятные моменты для покупки или продажи, на график MACD наносится так называемая сигнальная линия — 9-периодное скользящее среднее индикатора.

MACD наиболее эффективен в условиях, когда рынок колеблется с большой амплитудой в торговом коридоре. Чаще всего используемые сигналы MACD — пересечения, состояния перекупленности/перепроданности и расхождения.

Пересечения

Основное правило торговли с помощью MACD построено на пересечениях индикатора со своей сигнальной линией: когда Moving Average Convergence/Divergence опускается ниже сигнальной линии — следует продавать, а когда поднимается выше сигнальной линии — покупать. В качестве сигналов к покупке/продаже также используются пересечения MACD нулевой линии вверх/вниз.

Состояния перекупленности/перепроданности

Moving Average Convergence/Divergence также весьма ценен как индикатор перекупленности/перепроданности. Когда короткое скользящее среднее поднимается существенно выше длинного (т.е. MACD растет), это означает, что цена рассматриваемого инструмента, скорее всего, слишком завышена и скоро вернется к более реалистичному уровню.

Расхождения

Когда между MACD и ценой образуется расхождение, это означает возможность скорого окончания текущей тенденции. Бычье расхождение возникает тогда, когда MACD достигает новых максимумов, а цене не удается их достичь. Медвежье расхождение образуется, когда индикатор достигает новых минимумов, а цена — нет. Оба вида расхождений наиболее значимы, если они формируются в областях перекупленности/перепроданности.

Вы можете проверить торговые сигналы данного индикатора, создав советник при помощи MQL5 Wizard.

Расчет

Технический индикатор Moving Average Convergence/Divergence определяется путем вычитания 26-периодного экспоненциального скользящего среднего из 12-периодного. Затем на график MACD пунктиром наносится его 9-периодное простое скользящее среднее, которое выполняет роль сигнальной линии.

MACD = EMA(CLOSE, 12) — EMA(CLOSE, 26)

SIGNAL = SMA(MACD, 9)

EMA — экспоненциальное скользящее среднее;
SMA — простое скользящее среднее;
SIGNAL — сигнальная линия индикатора.

Trading the MACD divergence

Moving average convergence divergence (MACD), invented in 1979 by Gerald Appel, is one of the most popular technical indicators in trading. The MACD is appreciated by traders the world over for its simplicity and flexibility, as it can be used either as a trend or momentum indicator.

Trading divergence is a popular way to use the MACD histogram (which we explain below), but unfortunately, the divergence trade is not very accurate, as it fails more than it succeeds. To explore what may be a more logical method of trading the MACD divergence, we look at using the MACD histogram for both trade entry and trade exit signals (instead of only entry), and how currency traders are uniquely positioned to take advantage of such a strategy.

Key Takeaways

  • Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price.
  • Traders use the MACD to identify when bullish or bearish momentum is high in order to identify entry and exit points for trades.
  • MACD is used by technical traders in stocks, bonds, commodities, and FX markets.
  • Here we give an overview of how to use the MACD indicator.

MACD: An Overview

The concept behind the MACD is fairly straightforward. Essentially, it calculates the difference between an instrument’s 26-day and 12-day exponential moving averages (EMA). Of the two moving averages that make up the MACD, the 12-day EMA is obviously the faster one, while the 26-day is slower. In the calculation of their values, both moving averages use the closing prices of whatever period is measured. On the MACD chart, a nine-day EMA of the MACD itself is plotted as well, and it acts as a trigger for buy and sell decisions. The MACD generates a bullish signal when it moves above its own nine-day EMA, and it sends a sell sign when it moves below its nine-day EMA.

The MACD histogram is an elegant visual representation of the difference between the MACD and its nine-day EMA. The histogram is positive when the MACD is above its nine-day EMA and negative when the MACD is below its nine-day EMA. If prices are rising, the histogram grows larger as the speed of the price movement accelerates, and contracts as price movement decelerates. The same principle works in reverse as prices are falling.

Figure 1 is a good example of a MACD histogram in action:

Figure 1: MACD histogram. As price action (top part of the screen) accelerates to the downside, the MACD histogram (in the lower part of the screen) makes new lows.

Source: FXTrek Intellicharts

The MACD histogram is the main reason why so many traders rely on this indicator to measure momentum, because it responds to the speed of price movement. Indeed, most traders use the MACD indicator more frequently to gauge the strength of the price move than to determine the direction of a trend.

Trading Divergence

As we mentioned earlier, trading divergence is a classic way in which the MACD histogram is used. One of the most common setups is to find chart points at which price makes a new swing high or a new swing low, but the MACD histogram does not, indicating a divergence between price and momentum.

Figure 2 illustrates a typical divergence trade:

Figure 2: A typical (negative) divergence trade using a MACD histogram. At the right-hand circle on the price chart, the price movements make a new swing high, but at the corresponding circled point on the MACD histogram, the MACD histogram is unable to exceed its previous high of 0.3307. (The histogram reached this high at the point indicated by the lower left-hand circle.) The divergence is a signal that the price is about to reverse at the new high and, as such, it is a signal for the trader to enter into a short position.

Source: Source: FXTrek Intellicharts

Unfortunately, the divergence trade is not very accurate, as it fails more times than it succeeds. Prices frequently have several final bursts up or down that trigger stops and force traders out of position just before the move actually makes a sustained turn and the trade becomes profitable.

Figure 3 demonstrates a typical divergence fakeout, which has frustrated scores of traders over the years:

Figure 3: A typical divergence fakeout. Strong divergence is illustrated by the right circle (at the bottom of the chart) by the vertical line, but traders who set their stops at swing highs would have been taken out of the trade before it turned in their direction.

Source: Source: FXTrek Intellicharts

One of the reasons traders often lose with this setup is that they enter a trade on a signal from the MACD indicator but exit it based on the move in price. Since the MACD histogram is a derivative of price and is not price itself, this approach is, in effect, the trading version of mixing apples and oranges.

Using the MACD Histogram for Both Entry and Exit

To resolve the inconsistency between entry and exit, a trader can use the MACD histogram for both trade entry and trade exit signals. To do so, the trader trading the negative divergence takes a partial short position at the initial point of divergence, but instead of setting the stop at the nearest swing high based on price, he or she instead stops out the trade only if the high of the MACD histogram exceeds its previous swing high, indicating that momentum is actually accelerating and the trader is truly wrong on the trade. If, on the other hand, the MACD histogram does not generate a new swing high, the trader then adds to his or her initial position, continually achieving a higher average price for the short.

Currency traders are uniquely positioned to take advantage of this strategy, because the larger the position, the larger the potential gains once the price reverses. In forex (FX), you can implement this strategy with any size of position and not have to worry about influencing price. (Traders can execute transactions as large as 100,000 units or as little as 1,000 units for the same typical spread of 3-5 points in the major pairs.)

In effect, this strategy requires the trader to average up as prices temporarily move against him or her. This is typically not considered a good strategy. Many trading books have derisively dubbed such a technique as «adding to your losers.» However, in this case, the trader has a logical reason for doing so: The MACD histogram has shown divergence, which indicates that momentum is waning and price may soon turn. In effect, the trader is trying to call the bluff between the seeming strength of immediate price action and the MACD readings that hint at weakness ahead. Still, a well-prepared trader using the advantages of fixed costs in FX, by properly averaging up the trade, can withstand the temporary drawdowns until price turns in his or her favor.

Figure 4 illustrates this strategy in action:

Figure 4: The chart indicates where price makes successive highs but the MACD histogram does not — foreshadowing the decline that eventually comes. By averaging up his or her short, the trader eventually earns a handsome profit, as we see the price making a sustained reversal after the final point of divergence.

Source: Source: FXTrek Intellicharts

The Bottom Line

Like life, trading is rarely black and white. Some rules that traders agree on blindly, such as never adding to a loser, can be successfully broken to achieve extraordinary profits. However, a logical, methodical approach for violating these important money management rules needs to be established before attempting to capture gains. In the case of the MACD histogram, trading the indicator instead of the price offers a new way to trade an old idea: divergence. Applying this method to the FX market, which allows effortless scaling up of positions, makes this idea even more intriguing to day traders and position traders alike.

Откройте счет и получите бонус:
Понравилась статья? Поделиться с друзьями:
Трейдерам бинарных опционов: системы, стратегии, индикаторы
Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: