[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-macd-en":3},"# Moving Average Convergence Divergence (MACD)\n\n> StratCraft indicator page for MACD momentum analysis.\n\n**Route**: `\u002Findicators\u002Fmacd\u002F`\n\n## What It Does\n\nMACD compares two moving averages to measure momentum and trend direction. It is one of the most common crossover indicators in technical analysis.\n\n## Formula\n\n`MACD Line = EMA(fast) - EMA(slow)`\n\n`Signal Line = EMA(MACD, signal)`\n\n`Histogram = MACD - Signal`\n\n## Parameters\n\n- `period_me1` - default `12`\n- `period_me2` - default `26`\n- `period_signal` - default `9`\n- `movav` - default `ExponentialMovingAverage`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fmacd.hpp>\nauto macd = std::make_unique\u003Cnonabt::MACD>(data().close(), 12, 26, 9, \"ExponentialMovingAverage\");\n```\n\n## Common Usage\n\n- Use MACD line crosses for entry timing.\n- Use the signal line for confirmation.\n- Use the histogram for momentum strength and divergence.\n\n## Practical Pattern\n\nBullish MACD setups usually require the MACD line to cross above the signal line while price structure also supports the move.\n"]