StratCraft

快速隨機指標 (Stochastic Fast)

快速隨機振盪器的 QuantNexus 指標頁面。

Route: /quantnexus/indicators/stochf/

作用

STOCHF 衡量收盤價在近期最高-最低範圍內的位置,並應用了一個快速平滑步驟。

公式

%K = 100 * (收盤價 - n週期內最低低點) / (n週期內最高高點 - n週期內最低低點)

參數

  • period - 預設 14
  • period_dfast - 預設 3
  • movav - 預設 MovingAverageSimple
  • upperband - 預設 80
  • lowerband - 預設 20
  • safediv - 預設 False
  • safezero - 預設 0

C++23 API

#include <nonabt/indicators/stochf.hpp>
auto stochF = std::make_unique<nonabt::STOCHF>(14, 3, "MovingAverageSimple", 80.0, 20.0, "False", 0);

常見用法

  • 用於短期動量和反轉檢測。
  • 與價格結構或趨勢過濾器配合使用。
  • 當你需要比全功能隨機指標更快的振盪器時非常有用。