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)。
  • 在突破和延续系统中非常有用。