StratCraft

安全 RSI (RSI_SAFE)

安全背離 RSI 變體的 QuantNexus 指標頁面。

Route: /quantnexus/indicators/rsi-safe/

作用

RSI_SAFE 計算啟用安全背離處理後的 RSI。

公式

RSI = 100 - [100 / (1 + RS)],具有安全背離處理和平滑平均處理。

參數

  • period - 預設 14
  • movav - 預設 SmoothedMovingAverage
  • upperband - 預設 70
  • lowerband - 預設 30
  • safediv - 預設 True
  • safehigh - 預設 100
  • safelow - 預設 50
  • lookback - 預設 1

C++23 API

#include <nonabt/indicators/rsi_safe.hpp>
auto rsiSafe = std::make_unique<nonabt::RSI_SAFE>(data().close(), 14, "SmoothedMovingAverage", 70.0, 30.0, "True", 100.0, 50.0, 1);

常見用法

  • 當你需要具有更安全背離處理的 RSI 時使用。
  • 建議將其用於基於閾值的系統,而非獨立使用。
  • 有助於平滑帶有噪音價格走勢序列。