indicators-js Svelte Themes

Indicators Js

Fastest Technical Indicators written in JavaScript, Supports: Browser, NodeJS, ES6, CommonJS, Bun, Svelte, React, Angular, etc. More than +100 indicators(SMA, EMA, RSI, MACD, ...)

About

Fastest Technical Indicators written in JavaScript

  • Zero Dependencies
  • No Internal Function Calls
  • Lightweight: +100 Indicators only ~30kb

A TypeScript Version

There is also an older version written in TypeScript.

Supports

Browser, ES6, CommonJS, NodeJS, Bun, Svelte, React, Angular, etc.

Installation

npm install @ixjb94/indicators-js

Examples

NodeJS, Bun, React, Svelte, Angular, etc.

import { ema } from "@ixjb94/indicators-js"
// or
const { ema } = require("@ixjb94/indicators-js")

const source = [1,2,3,4,5]
const result = ema(source, 3)

Browser - Option 1

<script src="./node_modules/@ixjb94/indicators-js/dist/index.umd.js"></script>
<script>
    const { ema } = window.indicators
    const result = ema([1,2,3,4,5], 3)
    console.log(result)
</script>

Browser - Option 2 - use the Indicators you need

<script src="./node_modules/@ixjb94/indicators-js/core/ema.js"></script>
<script src="./node_modules/@ixjb94/indicators-js/core/rsi.js"></script>
<!-- etc -->
<script>
    /**
     * window.ema OR ema
     * window.rsi OR rsi
     * window.sma OR sma
     * ...
     * */

    const source = [1,2,3,4,5,6]

    const myEMA = ema(source, 3)
    const myRSI = rsi(source, 4)

    console.log(myEMA)
    console.log(myRSI)
</script>

Browser - Option 3 - Using CDN

<!-- All 30kb file -->
<script src="https://unpkg.com/@ixjb94/indicators-js@latest/dist/index.umd.js"></script>

<!-- Singles -->
<script src="https://unpkg.com/@ixjb94/indicators-js@latest/core/ema.js"></script>
<script src="https://unpkg.com/@ixjb94/indicators-js@latest/core/rsi.js"></script>

Vite Vanilla: same as Svelte, React, etc.

Indicators

āœ… = Available and fastest
āŒ = Indicator is not available
šŸ”„ = Developing...
Compared to:
node-talib, tulipnode, technicalindicators, pandas_ta

Identifier Indicator Name @ixjb94/indicators-js
ad Accumulation/Distribution Line āœ…
adosc Accumulation/Distribution Oscillator āœ…
adx Average Directional Movement Index āœ…
adxr Average Directional Movement Rating āœ…
ao Awesome Oscillator āœ…
apo Absolute Price Oscillator āœ…
aroon Aroon āœ…
aroonosc Aroon Oscillator āœ…
atr Average True Range āœ…
avgprice Average Price āœ…
bbands Bollinger Bands āœ…
bop Balance of Power āœ…
cci Commodity Channel Index āœ…
cmo Chande Momentum Oscillator āœ…
crossany Crossany āœ…
crossover Crossover āœ…
crossunder Crossunder āœ…
crossOverNumber Crossover a number āœ…
crossUnderNumber Crossunder a number āœ…
cvi Chaikins Volatility āœ…
decay Linear Decay āœ…
dema Double Exponential Moving Average āœ…
di Directional Indicator āœ…
dm Directional Movement āœ…
dpo Detrended Price Oscillator āœ…
dx Directional Movement Index āœ…
edecay Exponential Decay āœ…
ema Exponential Moving Average āœ…
emv Ease of Movement āœ…
fisher Fisher Transform āœ…
fosc Forecast Oscillator āœ…
hma Hull Moving Average āœ…
kama Kaufman Adaptive Moving Average āœ…
kvo Klinger Volume Oscillator āœ…
lag Lag āœ…
linreg Linear Regression āœ…
linregintercept Linear Regression Intercept āœ…
linregslope Linear Regression Slope āœ…
macd Moving Average Convergence/Divergence āœ…
marketfi Market Facilitation Index āœ…
mass Mass Index āœ…
max Maximum In Period āœ…
md Mean Deviation Over Period āœ…
medprice Median Price āœ…
mfi Money Flow Index āœ…
min Minimum In Period āœ…
mom Momentum āœ…
natr Normalized Average True Range āœ…
nvi Negative Volume Index āœ…
obv On Balance Volume āœ…
ppo Percentage Price Oscillator āœ…
psar Parabolic SAR āœ…
pvi Positive Volume Index āœ…
qstick Qstick āœ…
roc Rate of Change āœ…
rocr Rate of Change Ratio āœ…
rsi Relative Strength Index āœ…
sma Simple Moving Average āœ…
stddev Standard Deviation Over Period āœ…
stderr Standard Error Over Period āœ…
stoch Stochastic Oscillator āœ…
stochrsi Stochastic RSI āœ…
sum Sum Over Period āœ…
tema Triple Exponential Moving Average āœ…
tr True Range āœ…
trima Triangular Moving Average āœ…
trix Trix āœ…
tsf Time Series Forecast āœ…
typprice Typical Price āœ…
ultosc Ultimate Oscillator āœ…
var Variance Over Period āœ…
vhf Vertical Horizontal Filter āœ…
vidya Variable Index Dynamic Average āœ…
volatility Annualized Historical Volatility āœ…
vosc Volume Oscillator āœ…
vwma Volume Weighted Moving Average āœ…
wad Williams Accumulation/Distribution āœ…
wcprice Weighted Close Price āœ…
wilders Wilders Smoothing āœ…
willr Williams %R āœ…
wma Weighted Moving Average āœ…
zlema Zero-Lag Exponential Moving Average āœ…
abands āœ…
alma Arnaud Legoux Moving Average āœ…
ce Chandelier Exit āœ…
cmf Chaikin money flow āœ…
dc Donchian Channels āœ…šŸ”„
fi Force index āœ…
kc Keltner Channels āœ…
kst Know Sure Thing āœ…
pbands āœ…
pfe Polarized Fractal Efficiency āœ…
posc āœ…
rmi Relative Momentum Index āœ…
rmta Recursive Moving Trend Average āœ…
rvi Relative Vigor Index āœ…
smi Stochastic Momentum Index āœ…
tsi True Strength Index āœ…
vwap Volume-Weighted Average Price āœ…

Top categories

Loading Svelte Themes