@lacspace/indicators
Streaming technical indicators (RSI, MACD, EMA, Bollinger, ATR, Supertrend, ADX, VWAP) with O(1) incremental updates for live price feeds. Zero-dependency.
npm i @lacspace/indicatorsUsage
import { RSI, MACD } from "@lacspace/indicators";
const rsi = new RSI(14);
const macd = new MACD(12, 26, 9);
// wire straight into your tick feed
socket.on("ltp", (price) => {
const r = rsi.next(price); // O(1) — no array recompute
const m = macd.next(price);
if (r !== null && r > 70) console.log("overbought", r.toFixed(1));
if (m) console.log("histogram", m.histogram.toFixed(2));
});Exports 24
ADXATRBollingerBandsCandleAggregatorEMAMACDRSISMAStochasticSupertrendVWAPWMAadxatrbollingercrossedAbovecrossedBelowdetectPatternsemamacdrsismasupertrendwmaKeywords
technical-indicatorstradingstock-marketrsimacdema
More in StockKit
@lacspace/market
Stock-market money math — P&L, returns, CAGR, XIRR, tick-size rounding, circuit limits, position sizing and an Indian brokerage & charges calculator (STT, GST, SEBI, stamp). Zero-dependency.
@lacspace/market-clockHoliday-aware, timezone-correct trading clock — is NSE/BSE open now, next open/close, pre-open, holidays. Bring your own exchange spec. Zero-dependency.
@lacspace/paper-tradeHeadless paper-trading engine — virtual wallet, market/limit/stop orders that fill against live prices, positions, holdings and live P&L. The simulator core behind StockYatra. Zero-dependency.