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

what to invest in besides stocksoption greeks calculatorhow to calculate mean variance and standard deviationvix pricescalculate rsiblack scholes model explainedyahoo finance spreadsheetoptions profit loss calculatorsample variance formula examplevega greekscreate formulas in excelcalculating exponential moving averageultra short sp500strike price exercise pricehow to find population mean in excelcalculating volatility of a stockavco methodmini vix futurescomputing standard deviation in excelshort put payoff diagrametf uupstatistics excel formulaswhat is straddle positiontheta calculatorblack scholes pricing formulacboe cfehow to calculate using excel formulacommitment of traders chartiron condor riskcalculate variance on excelblack scholes templatecalculate thetarsi 2 periodroot sum of squares formulabearish call spreadmorgan stanley historical stock pricevar value at risk formulaarithmetic sum calculatorhow to find the wacc of a companyarithmetic means calculatoroption greek deltahow to calculate a sample variancecalculate median excelcboe indicescontango curvevix fundsquote downloadersec form 13 fvalue stock indexvolatility index definitionshare price volatility calculatorfxe etfblack schole option pricing modelshorting a call optionj welles wilderhow to calculate rate of return in excelpro shares ultra shortexcel calculation formulacfe vix futuresstandard deviation calculator frequencystandard deviation of the sample mean formulablack scholes options pricinginvest in vixhow to use normdist in excelln function in excelarithmetic mean formulasvariance shortcut formulathe black scholes option pricing modeloption thetaedgar 13findexation calculationstraddle option strategyhedge fund 13f filingss&p 500 methodologyhow to calculate variance on excelshort tvixfinance yahoo msftstd deviation calculator