The resource loading... loading...

About the EMA and the MACD

Author: bearflower, Created: 2018-11-05 20:08:38, Updated: 2018-11-05 20:18:18

The first question: Why do I use the inventor's EMA indicator, and the formula that Baidu returned, to calculate the value, which is biased?

The Baudacity formula: EMA ((12) = yesterday's EMA ((12) * 11 / 13 + today's closing price *2/13

The second question: And the MACD = ((DIF-DEA) × 2), the inventor, as if there were no * 2 above.


More

bearflowerThank you.

Inventors quantify - small dreams- 1, there is an open source EMA algorithm in the exchange community: https://www.fmz.com/bbs-topic/409 This indicator is a recursive calculation, depending on how large the deviation is, and can also be a numerical precision processing problem, which can be referenced to the algorithm. - 2, MACD Initially, the column of measure was not multiplied by 2, i.e. dif -dea. Later in some places, to make the MACD value a little larger and easier to observe, it was multiplied by 2. This is not a uniform standard.