RSI
RSI
Summary
Wilder's Relative Strength Index, a momentum oscillator bounded 0-100 from the ratio of average gains to average losses over the period. Used to gauge overbought/oversold conditions. >70 overbought, <30 oversold.
Formula
where is the input series and the period.
Inputs
inReal— Price series (typically close)
Outputs
outReal— RSI value
Parameters
| Parameter | Type | Default | Accepted values | Description |
|---|---|---|---|---|
optInTimePeriod | integer | 14 | 2–100000 | Lookback for the gain/loss averaging |
Properties
Numerical Stability: Initial Unstable Period
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
Implementation
TA-Lib Definition: rsi.c · rsi.yaml
| Native | File |
|---|---|
| C | ta_RSI.c |
| Rust | rsi.rs |
| Java | Core_RSI.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
relative strength index
See Also
References
- J. Welles Wilder, New Concepts in Technical Trading Systems, Trend Research (ISBN 0894590278)