StratCraft

相對動量指數 (Relative Momentum Index)

動量調整後的 RSI 的 QuantNexus 指標頁面。

Route: /quantnexus/indicators/rmi/

作用

RMI 透過將目前價格與價格回看(lookback)進行比較來擴展 RSI,使其成為一個具有動量意識的振盪器。

公式

RMI = 選定回看週期內的動量 RSI

參數

  • period - 預設 20
  • movav - 預設 SmoothedMovingAverage
  • upperband - 預設 70
  • lowerband - 預設 30
  • safediv - 預設 False
  • safehigh - 預設 100
  • safelow - 預設 50
  • lookback - 預設 5

C++23 API

#include <nonabt/indicators/rmi.hpp>
auto rmi = std::make_unique<nonabt::RMI>(data().close(), 20, "SmoothedMovingAverage", 70.0, 30.0, "False", 100.0, 50.0, 5);

常見用法

  • 用作對動量敏感的 RSI 變體。
  • 與趨勢確認配合使用,以避免逆勢交易(counter-trend fades)。
  • 在突破和延續系統中非常有用。