# RSI Safe (RSI_SAFE)

> QuantNexus indicator page for the safe-divergence RSI variant.

**Route**: `/quantnexus/indicators/rsi-safe/`

## What It Does

RSI_SAFE calculates RSI with safe-divergence handling enabled.

## Formula

`RSI = 100 - [100 / (1 + RS)]`, with safe-divergence handling and smoothed averaging.

## Parameters

- `period` - default `14`
- `movav` - default `SmoothedMovingAverage`
- `upperband` - default `70`
- `lowerband` - default `30`
- `safediv` - default `True`
- `safehigh` - default `100`
- `safelow` - default `50`
- `lookback` - default `1`

## C++23 API

```cpp
#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);
```

## Common Usage

- Use it when you need RSI with safer divergence handling.
- Keep it in threshold-based systems rather than standalone use.
- Helpful for smoothing noisy price-action sequences.
