[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-wma-en":3},"# Weighted Moving Average (WMA)\n\n> StratCraft indicator page for WMA.\n\n**Route**: `\u002Findicators\u002Fwma\u002F`\n\n## What It Does\n\nWMA assigns more weight to newer prices than older prices. It sits between SMA and EMA in responsiveness and is widely used in trend systems.\n\n## Formula\n\n`WMA = (n*P1 + (n-1)*P2 + ... + 1*Pn) \u002F (n*(n+1)\u002F2)`\n\n## Parameters\n\n- `period` - default `30`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fwma.hpp>\nauto wma = std::make_unique\u003Cnonabt::WMA>(data().close(), 30);\n```\n\n## Common Usage\n\n- Use WMA as a smoother trend line.\n- Use it for weighted crossover systems.\n- Combine it with other averages for lag reduction.\n\n## Practical Pattern\n\nWMA is often used when you want a moving average that reacts faster than SMA without moving all the way to EMA behavior.\n"]