[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-wmaenvelope-zh-tw":3},"# 加權移動平均包絡線 (WMA Envelope)\n\n> 加權移動平均包絡線的 StratCraft 指標頁面。\n\n**Route**: `\u002Findicators\u002Fwmaenvelope\u002F`\n\n## 作用\n\nWMAENVELOPE 在加權移動平均線周圍包裹了上下百分比頻寬。\n\n## 公式\n\n`上軌 = WMA(period) * (1 + perc \u002F 100)` 且 `下軌 = WMA(period) * (1 - perc \u002F 100)`\n\n## 參數\n\n- `period` - 預設 `30`\n- `perc` - 預設 `2.5`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fwmaenvelope.hpp>\nauto wmaEnvelope = std::make_unique\u003Cnonabt::WMAENVELOPE>(data().close(), 30, 2.5);\n```\n\n## 常見用法\n\n- 用於檢測加權平均基準線周圍的過度拉伸走勢。\n- 與交叉或反轉邏輯配合使用。\n- 當你希望近期價格具有更大影響力時非常有用。\n"]