[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-hma-zh-tw":3},"# 赫爾移動平均線 (HMA)\n\n> HMA 低滯後移動平均線的 StratCraft 指標頁面。\n\n**Route**: `\u002Findicators\u002Fhma\u002F`\n\n## 作用\n\nHMA 旨在比標準移動平均線更平滑，同時對價格變化的反應更快。廣泛用於趨勢跟踪系統。\n\n## 公式\n\n`HMA = WMA(2 * WMA(price, n\u002F2) - WMA(price, n), sqrt(n))`\n\n## 參數\n\n- `period` - 默認 `30`\n- `_movav` - 默認 `WMA`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fhma.hpp>\nauto hma = std::make_unique\u003Cnonabt::HMA>(data().close(), 30, \"WMA\");\n```\n\n## 常見用法\n\n- 將 HMA 用作快速趨勢基準線。\n- 將其與價格交叉或第二個較慢的平均線結合使用。\n- 有助於在沒有太多滯後的情況下檢測趨勢逆轉。\n\n## 實際模式\n\n當價格收於 HMA 之上且 HMA 向上傾斜時買入；當價格跌破該基線時退出。\n"]