Momentum
8 algorithms in Technical Indicators · 8 with asserted arithmetic.
In this family#
-
Relative Strength Index (RSI) verified
Relative strength index: Wilder-smoothed average gain over average loss, mapped to 0–100. In a strong trend a high reading means strength persisting, not exhaustion — which is the most common misreading of this indicator.
rsi(close, p) -
Stochastic Oscillator verified
Where the close sits within the high–low range of the lookback, expressed as 0–100, then smoothed twice.
stochastic(high, low, close, kp, sk, sd) -
Stochastic RSI verified
The stochastic formula applied to RSI rather than to price — a second-order indicator that measures where RSI sits within its own recent range, and therefore moves far faster than either input.
stochasticRsi(close, rp, sp, sk, sd) -
Williams %R verified
Where the close sits within the lookback's high–low range, on a −100…0 scale. Arithmetically the inverse of fast %K.
williamsR(high, low, close, p) -
Commodity Channel Index (CCI) verified
Commodity channel index: the typical price's distance from its moving average, scaled by mean absolute deviation. Unbounded, unlike RSI or the stochastics.
cci(high, low, close, p, k) -
Ultimate Oscillator verified
Weighted buying pressure across three lookbacks at once, which is what makes it less sensitive to the choice of any single period than a plain oscillator.
ultimateOscillator(high, low, close, s, m, g) -
True Strength Index (TSI) verified
True strength index: price change smoothed twice, divided by absolute price change smoothed the same way. The double smoothing is what separates it from a plain momentum reading.
tsi(close, g, s) -
Connors RSI verified
The average of three components: RSI of price, RSI of the up/down streak length, and the percentile rank of the latest return. Designed for short-horizon mean reversion rather than trend.
connorsRsi(close, pp, sp, rp)
What they share#
Every topic here is a series-transform, so once you have
called one the rest follow the same shape. Import paths differ only in the final segment:
import { rsi } from "fintech-algorithms/technical-indicators/momentum/rsi";
import { stochastic } from "fintech-algorithms/technical-indicators/momentum/stochastic-oscillator";Read them in the order above — the sequence is pedagogical, not alphabetical.
Where this sits#
Technical Indicators collects 37 algorithms across 5 families. For the concept behind this family rather than the call signatures, see the concept guides.