[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-hma-zh":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"]