FinTech utility to calculate MACD, the Moving Average Convergence / Divergence.
npm install macd

This module is lack of maintainance.
If you are familiar with python programming maybe you could check stock-pandas which provides powerful statistic indicators support, and is backed by numpy and pandas.
The performance of stock-pandas is many times higher than JavaScript libraries, and can be directly used by machine learning programs.
**
FinTech utility to calculate MACD.
MACD, short for Moving Average Convergence / Divergence, is a trading indicator used in technical analysis of stock prices, created by Gerald Appel in the late 1970s.
``sh`
$ npm install macd
`js
import macd from 'macd'
macd(data)
// which returns:
// {
// MACD:
// signal:
// histogram:
// }
`
- data Array. the collection of pricesNumber=26
- slowPeriods the size of slow periods. Defaults to 26Number=12
- fastPeriods the size of fast periods. Defaults to 12Number=9
- signalPeriods the size of periods to calculate the MACD signal line.
Returns MACDGraph
- MACD Array. the difference between EMAs of the fast periods and EMAs of the slow periods.Array.
- signal the EMAs of the MACDArray.
- histogram MACD minus signal
In some countries, such as China, the three series above are commonly known as:
`sh``
MACD -> DIF
signal -> DEA
histogram -> MACD
MIT