Macd??

#12
Hi harmads,

By simple average I mean to say the mean of closing prices of a stock over a period of time. (25th Jan 2007- 13th Feb 2007)
if 173.4
167.7
171.05
172.3
171.1
169.95
165.05
169.35
171.6
171.9
166.8
160.8
are the prices for 12 days, the simple moving average is 169.25.
For the next day if the closing price is 158.85, the 12days EMA is calculated as follows:
(158.85-169.25)*(2/13)+169.25=167.65
it is to be calculated over a period till the latest closing price.

Similarly, you calculate the 16days ema for the period from 25th Jan 2007 to 21st feb 2007 as

173.4
167.7
171.05
172.3
171.1
169.95
165.05
169.35
171.6
171.9
166.8
160.8
158.85
163.8
157.7
158.95
mean of these prices for 16days i.e., = 166.89. Now the 16 days ema for the next day if the closing price is 155.9 is
=(155.9-166.89)*(2/17)+166.89=166.46
This calculated value will become the current ema for the next ema.

The macd is the difference of the values of the two emas. You get this data only from 21st feb 2007 for this example.

date 12ema 16ema macd

13feb 164.59 166.89 -2.3

The last column is the macd value. To smoothen the curve, we can calculate an ema for this column also.

Hope I have explained clearly.
Thanks alot Umakaruna..

Its perfectly clear that how we calculate it. Now can u please tell me that whts the significance of calculating it?

Regards
Ankit Jain
 
#13
Hi Ankit Jain,

The advantage of MACD is that it incorporates aspects of both momentum and trend in one indicator. As a trend-following indicator, it will not be wrong for very long. The use of moving averages ensures that the indicator will eventually follow the movements of the underlying security. By using Exponential Moving Averages (EMAs), as opposed to Simple Moving Averages (SMAs), some of the lag has been taken out.

As a momentum indicator, MACD has the ability to foreshadow moves in the underlying security. MACD divergences can be key factors in predicting a trend change. A Negative Divergence signals that bullish momentum is waning, and there could be a potential change in trend from bullish to bearish. This can serve as an alert for traders to take some profits in long positions, or for aggressive traders to consider initiating a short position.

MACD can be applied to daily, weekly or monthly charts. MACD represents the convergence and divergence of two moving averages. The standard setting for MACD is the difference between the 12 and 26-period EMA. However, any combination of moving averages can be used. The set of moving averages used in MACD can be tailored for each individual security. For weekly charts, a faster set of moving averages may be appropriate. For volatile stocks, slower moving averages may be needed to help smooth the data. Given that level of flexibility, each individual should adjust the MACD to suit his or her own trading style, objectives and risk tolerance.

MACD Drawbacks

One of the beneficial aspects of the MACD is also one of its drawbacks. Moving averages, be they simple, exponential or weighted, are lagging indicators. Even though MACD represents the difference between two moving averages, there can still be some lag in the indicator itself. This is more likely to be the case with weekly charts than daily charts. One solution to this problem is the use of the MACD-Histogram.

MACD is not particularly good for identifying overbought and oversold levels. Even though it is possible to identify levels that historically represent overbought and oversold levels, MACD does not have any upper or lower limits to bind its movement. MACD can continue to overextend beyond historical extremes.

MACD calculates the absolute difference between two moving averages and not the percentage difference. MACD is calculated by subtracting one moving average from the other. As a security increases in price, the difference (both positive and negative) between the two moving averages is destined to grow. This makes its difficult to compare MACD levels over a long period of time, especially for stocks that have grown exponentially.
 

Similar threads