At the bottom of this article, you readers can get the corresponding EXCEL template.
First, the meaning of the principles of the MACD
MACD is moved by a rapid exponential average EMA (12) minus the slow exponential moving average EMA (26) to give the DIF Express, then 2 × (DIF-DIF Express 9 day weighted moving average DEA) to give MACD column.
MACD change represents the change in market trends, business trends different levels of K-line MACD represents the current level cycle.
Two, to achieve EXCEL
EXCEL, you can use Financial library plug-in fast MACD indicator is calculated directly. However, for ease of understanding, in fact, very easy manual calculation.
Here we show you the process of manual calculations.
Step one: Import from PAB accessible information (000001.SZ) the historical transaction data
for the sake of simplicity, only the transaction data to the closing price.
Step Two: Calculate the MACD
1: C column EMA (12): I specifically refer to the previous article, the calculation of EMA
2: D column EMA (26)
3: E columns MACD: day -D column C column, i.e. EMA (12) -EMA (26)
4: F Column Singal: = (MACD day (2 / (9 + 1)) + yesterday Singal (1- (2 / (9 + 1))))
5: G Histogram Histogram: day MACE-F column Column E Singal
Step Three: Draw EXCEL chart. as follows:
XLS file templates are available on the Baidu network disk.
Links: https://pan.baidu.com/s/1I3dHp9aepxj7TeybTgUxpQ
Extraction code: n964