MACD Crossover

All MACD lines and their crossing

On a typical chart the MACD shows two lines (the MACD line and the Signal line), as well as the zero line. They cross each other often enough to give us plenty of options for building various MACD crossover trend following strategies. Some of them are the classics of quantitative trading.

What MACD really means

MACD is calculated using two exponential moving averages and its value equals the value of the shorter period (faster) EMA less the value of the longer period (slower) EMA. See the basics of MACD.

Therefore, the MACD line itself always represents the distance between the two moving averages. When MACD line crosses the zero line, it is exactly at the same time when the faster EMA crosses the slower EMA.

1. The very basic: trading on MACD line crossing the zero line

The simplest strategy you can think of with MACD is trading when the MACD line crosses the zero line. When the MACD line crosses above zero, you buy. When it crosses below zero, you sell.

Because MACD is in fact a distance between two moving averages, this trading strategy is exactly the same as trading crossovers of two moving averages. There is zero difference. While it is not impossible to make such a simple trend following strategy work even in these days, it is quite unlikely that you will have great success with trading EMA crossovers (or MACD zero line crossovers) on a standalone basis. The many losing trades in non-trending markets will get you.

2. Signal line crossing the zero line

An alternative is using the Signal line instead of the MACD line and enter trades when it crosses the zero line. Now what exactly is the MACD Signal line? It is a smoothed (lagged) version of the MACD line, as it is calculated as an EMA of the MACD.

Besides being more lagged, this approach is not much different from the previous one. Smoothing the MACD line using the Signal line eliminates some losing crossovers, but creates a few others from the previously winning ones. Furthermore, it gets you into good trends even later. Conclusions are the same as with basic MACD zero line crossovers: very hard to make it work without additional improvements.

3. MACD zero line crossovers with waiting for confirmation

Alternatively you can improve the MACD zero line crossover strategy by waiting for the first correction after the MACD has crossed the zero line. While sometimes this correction will enable you to get a better entry price and smaller risk, in some other cases the first correction never comes and you won’t get into the position – unfortunately these are usually the cases when the pure MACD zero line crossover would have been profitable. Sometimes the first correction will evolve into a trend reversal and you will lose.

However, waiting for the first correction can work and can improve your strategy. Many people use this idea and not only with MACD. It is quite common with moving averages, when traders wait until price touches the moving average and then enter a trade in the direction of the trend. It only needs some testing and fine tuning.

4. MACD line crossing the Signal line

Finally after going through some really simple approaches we are getting to probably the most popular and classic way to trade the MACD – the crossover of the two lines.

You enter a long position when the MACD line crosses above the Signal line. This situation signals that the bearish momentum is probably over and there is a good chance of price moving up. On the contrary, when the MACD line crosses below the Signal line, it is a sell signal.

Of course, being classic and popular doesn’t make this approach a universal winner. The advantage over the simple MACD crossovers mentioned above is that it doesn’t wait for the MACD to cross the zero line and therefore there is less lag behind the price – sometimes the delay is so small that you can even question this trading approach being trend following. You usually act on just a little slowdown of the momentum in the original trend, which makes the two lines cross. Sometimes this makes you catch a great new trend in the very beginning, while sometimes market resumes the original trend and you are stopped out (yes, using stop-losses is highly recommended with all MACD strategies).

Trend following with MACD: summary

Counter-trend strategies with MACD

Besides trading the MACD in the trend’s direction, there are other approaches to trade it against the trend. As a way of identifying possible trend reversals, MACD or MACD Histogram divergences are particularly well respected. Here you can read more about MACD Divergences and Counter-Trend Trading Strategies.

Related pages

vix derivativesspx options settlementwhat is a formula in excel definitionxxv etnformula of sample variancecustomize notepadhow is implied volatility calculatedassumptions of black scholesoption deltasskew excelhow to calculate historical volatilityvix fundshow to calculate option deltacollar option payoffunderlyingssec 13fpercentiles calculator statisticssharpe ratio calculatorblack scholes assumptionsstatistics formula calculatorkurtosis of normal distributionweighted index definitionyahoo finance eurhow to calculate sample standard deviation in excelcolor note padwhat is rsi stand forshare price volatility calculatorhow to calculate the coefficient of variation in excelcan sharpe ratio be negativecalculate implied interest ratebreak even volatilityrsi 2 periodadvantages and disadvantages of measures of central tendencyfree black scholes calculatordividends yield formulahow to calculate delta of an optionformula of skewness and kurtosisaverage inventory cost methodbullish put spreadvxzipath s&p 500 vix short term futuresfree float factor calculationoption greeks formulasample covariance calculatormacd momentumproshares ultra vix short-term futuresvix futures pricingrsi calculation formularelative strength calculatorpayoff of call optionwhat is delta hedgingstraddle stockrsi oversoldmacd signal line crossoverdeviation from the mean excelhow to calculate relative strength indexarithmetic mean of grouped datagamma black scholesxxv vxxshort call payoffmerton option pricing modelnegatives and positives calculatorcalculating stock volatilityblack scholes tutorialoptions pricing black scholesrsi formulamarket capitalization weighted indexvolatility for black scholesquote downloaderciti stock splitexcel sqrtleveraged volatility etfyahoo share prices historyannualize monthly standard deviationarithmetic mean formula for grouped datadeviation from the mean excelcall options for dummiesblack scholes formulas