[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-dema-en":3},"# Double Exponential Moving Average (DEMA)\n\n> StratCraft indicator page for the DEMA fast moving average line.\n\n**Route**: `\u002Findicators\u002Fdema\u002F`\n\n## What It Does\n\nDEMA reduces lag compared with a standard EMA by combining two EMA passes into one output line. It is useful for smoother trend tracking with less delay.\n\n## Formula\n\n`DEMA = 2 * EMA(price) - EMA(EMA(price))`\n\n## Parameters\n\n- `period` - default `30`\n- `_movav` - default `EMA`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fdema.hpp>\nauto dema = std::make_unique\u003Cnonabt::DEMA>(data().close(), 30, \"EMA\");\n```\n\n## Common Usage\n\n- Use DEMA for faster-moving trend filters.\n- Combine it with price crossovers or another slower average.\n- Good for systems that want less lag than SMA or EMA.\n\n## Practical Pattern\n\nBuy when price reclaims DEMA and sell when price loses it, or combine DEMA with a slower moving average for crossover logic.\n"]