Moving Average Convergence/Divergence (MACD Indicator)

Using the MACD indicator in ChartMill


In this article we will take a closer look at the MACD indicator and how it is used by technical traders. Just like, for example, the RSI (You can read more about the RSI indicator here), the MACD also belongs to the family of momentum indicators. These indicators measure the strength of the existing trend and provide insight into whether a trend is intensifying or decreasing.

MACD stands for ‘Moving Average Convergence/Divergence’ and is a well-known and widely used indicator. In ChartMill, simply add the chart from the Charts tab:


Once the indicator is added, the price chart looks like this:

Artikel_1_bijlage 2

The indicator is positioned below the price chart and consists of two lines (red and black). Underneath, a lot of blue bars are visible, which together form the MACD-histogram.

The MACD calculation

The red line is the MACD line, which is created using two exponential averages (based on closing prices), the EMA12 and EMA26 (EMA = Exponential Moving Average). The MACD line is created by calculating the difference of the EMA12 – EMA26.

The black line is the signal line and is created by calculating a 9-day EMA over the red line.

The histogram shows the difference between the MACD and the signal line. If you look at the graph above, you will notice that the histogram is positive (value > 0) if the red line (the MACD line) is above the black line (signal line).

If an ascending movement gains in strength, this will also be shown in the histogram because the blue bars become higher. The opposite occurs when an upward trend movement loses strength, the blue bars will become shorter. The same goes for the intensity of a falling price trend and as soon as the MACD line falls below the signal line you will see the blue bars appear below instead of above the zero line.

The MACD displays buy and sell signals when there is an upward or downward crossing between the red and black lines. The results that the indicator gives for going long or short are not in themselves sufficient to allow trading on the basis of these results alone. There are, in fact, many false signals. The example chart below clearly shows what we mean.

Artikel_1_bijlage 3

The green circles are the moments when the red MACD line crosses the black signal line upwards. These are buy signals. The red circles indicate the sales signals, i.e. when the red MACD line crosses the black signal line downwards.

As you can see, not all signals are equally reliable. In the graph above it is quite clear that none of the sales signals were really successful.

In the next section we will use a specific tool in combination with the MACD indicator, which will make the reliability (and therefore also the usability) of this indicator a lot better!

Avoiding false MACD signals with the ChartMill Trend Indicator

We already covered exactly what the MACD indicator does and how you can use it as a momentum indicator. However, we also indicated that by no means all buying or selling signals are equally successful!

Fortunately, there is a simple way to detect these false signals to a large extent in advance and thus also to avoid them.


Looking back at the graph above it is quiet obvious that – just like any other technical indicator – the MACD is not a ‘Holy Grail’ indicator either. What’s more, by relying solely on the pure buying and selling signals of the MACD, you’ll eventually lose money, not only because the indicator itself is not reliable enough, but also because you’ll be doing mass trades with all the associated costs…

Artikel_1_bijlage 3

The red dots on the price chart show the sell signals of the MACD indicator, despite the fact that the price continues to rise. As a trader you prefer to ignore them, unfortunately you don’t know in advance whether such a signal will be false or successful….

That does not mean, however, that the MACD indicator is completely useless; we simply need to find a way of ensuring that we can avoid a large proportion of the false signals beforehand.  In this article we use the ChartMill Trend Indicator for this purpose.

The ChartMill Trend Indicator as an extra filter

The ChartMill Trend Indicator is an exponential moving average line that roughly represents the trend of the share. You can display it as an overlay on a chart or as a bar indicator underneath the chart. If the indicator is green, the price rises, the line is red when the price falls and grey means that the price zone is neutral.


More information about the ChartMill Trend Indicator can be found in this article.

Remember, in particular, that the ChartMill Trend Indicator reflects the current trend of a price chart. When applied to the first graph of the VISA share in this article, we get the following chart:


As you can see on the graph above, we are clearly facing an upward trend as far as the VISA company is concerned.

Because the ChartMill Trend Indicator clearly shows the existing trend, we can use it as an extra filter for our MACD indicator. As a rule, we will ignore all MACD sales signals if the ChartMill Trend indicator is green! If we apply that rule to the first graph of this article we get this :

Artikel_2_bijlage 1

Indeed, by applying the ChartMill Trend Indicator in this case (which by its green color indicates that the trend of the stock is increasing) we manage to avoid all the false sell signals of the MACD.

The same method can of course also be applied if the trend of the stock is clearly decreasing (ChartMill Trend Indicator is red) and the MACD indicator generates buy signals.


As with all other technical indicators, as far as the MACD indicator is concerned, you can never simply use all the signals as buy and sell triggers. There are simply too many (false) signals. An additional indicator that indicates in which trend the stock is and then uses this information in combination with the MACD signal ensures that already a lot of false signals are filtered out.