[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-stochf-zh":3},"# 快速随机指标 (Stochastic Fast)\n\n> 快速随机振荡器的 StratCraft 指标页面。\n\n**Route**: `\u002Findicators\u002Fstochf\u002F`\n\n## 作用\n\nSTOCHF 衡量收盘价在近期最高-最低范围内的位置，并应用了一个快速平滑步骤。\n\n## 公式\n\n`%K = 100 * (收盘价 - n周期内最低低点) \u002F (n周期内最高高点 - n周期内最低低点)`\n\n## 参数\n\n- `period` - 默认 `14`\n- `period_dfast` - 默认 `3`\n- `movav` - 默认 `MovingAverageSimple`\n- `upperband` - 默认 `80`\n- `lowerband` - 默认 `20`\n- `safediv` - 默认 `False`\n- `safezero` - 默认 `0`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fstochf.hpp>\nauto stochF = std::make_unique\u003Cnonabt::STOCHF>(14, 3, \"MovingAverageSimple\", 80.0, 20.0, \"False\", 0);\n```\n\n## 常见用法\n\n- 用于短期动量和反转检测。\n- 与价格结构或趋势过滤器配合使用。\n- 当你需要比全功能随机指标更快的振荡器时非常有用。\n"]