> For the complete documentation index, see [llms.txt](https://docs.optionalpha.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optionalpha.com/technical-documentation/indicators/macd.md).

# MACD

## MACD

The [moving average convergence/divergence (MACD)](https://optionalpha.com/analysis/technical-indicators#macd) is a technical indicator of [momentum](https://optionalpha.com/analysis/momentum-trend) that uses moving averages to determine a trend’s strength. The MACD uses three exponential moving averages (a short term, a long term, and the average difference between the short and long term) to show price momentum.

The source code for the MACD function is found [here.](https://app.optionalpha.com/ta/MACD.txt)
