RSI SMA (RSI_SMA)

StratCraft indicator page for RSI with simple smoothing.

Route: /indicators/rsi-sma/

What It Does

RSI_SMA calculates RSI using a simple moving average variant for smoothing.

Formula

RSI = 100 - [100 / (1 + RS)], with simple smoothing applied to the gain/loss series.

Parameters

  • period - default 14
  • movav - default MovingAverageSimple
  • upperband - default 70
  • lowerband - default 30
  • safediv - default False
  • safehigh - default 100
  • safelow - default 50
  • lookback - default 1

C++23 API

#include <nonabt/indicators/rsi_sma.hpp>
auto rsiSma = std::make_unique<nonabt::RSI_SMA>(data().close(), 14, "MovingAverageSimple", 70.0, 30.0, "False", 100.0, 50.0, 1);

Common Usage

  • Use it when you want the Cutler-style RSI variant.
  • Pair it with static threshold logic around 30 and 70.
  • Useful for comparing smoothing behavior against EMA-based RSI.