[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-weightedmovingaverageosc-zh":3},"# 加权移动平均振荡器 (WMA Oscillator)\n\n> 距离加权移动平均基准线距离的 StratCraft 指标页面。\n\n**Route**: `\u002Findicators\u002Fweightedmovingaverageosc\u002F`\n\n## 作用\n\nWEIGHTEDMOVINGAVERAGEOSC 衡量价格偏离加权移动平均线（WMA）的程度。\n\n## 公式\n\n`振荡器 = 价格 - WMA(period)`\n\n## 参数\n\n- `period` - 默认 `30`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fweightedmovingaverageosc.hpp>\nauto wmaOsc = std::make_unique\u003Cnonabt::WEIGHTEDMOVINGAVERAGEOSC>(data().close(), 30);\n```\n\n## 常见用法\n\n- 使用零轴进行动量确认。\n- 与 WMA 或 WMA 包络线（envelope bands）配合使用以检测扩张。\n- 有助于回调时机和短期均值回归的判断。\n"]