[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-ema-en":3},"# Exponential Moving Average (EMA)\n\n> StratCraft indicator page for EMA.\n\n**Route**: `\u002Findicators\u002Fema\u002F`\n\n## What It Does\n\nEMA is a weighted moving average that gives more importance to recent prices. It reacts faster than an SMA and is a standard trend baseline.\n\n## Formula\n\n`EMA = [Price(t) * k] + [EMA(y) * (1 - k)]`, where `k = 2 \u002F (n + 1)`\n\n## Parameters\n\n- `period` - default `30`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fema.hpp>\nauto ema = std::make_unique\u003Cnonabt::EMA>(data().close(), 30);\n```\n\n## Common Usage\n\n- Use EMA as a trend baseline.\n- Use EMA crossovers for entries and exits.\n- Pair EMA with price confirmation or another moving average.\n\n## Practical Pattern\n\nBuy when price closes above the EMA in an uptrend and exit when price loses the line.\n"]