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