Trading Signals
Technical indicators and overlays to run technical analysis with JavaScript / TypeScript
Streaming Updates
Update indicators incrementally as new prices arrive - no need to reprocess historical data
Replace Mode
Efficiently update live charts by replacing the most recent value without full recalculation
Type Safe
Full TypeScript implementation with complete type definitions and IDE support
Lazy Evaluation
Indicators only calculate when stable - check readiness with built-in stability flags
Memory Efficient
Rolling windows instead of full history storage - minimal memory footprint
Zero Dependencies
No runtime dependencies and minimal bundle size - perfect for web and Node.js
Indicator Categories
Trend Indicators
Measure the direction of a trend (uptrend, downtrend or sideways trend)
Momentum Indicators
Measure the speed and strength of price movements
Volatility Indicators
Measure the degree of variation in prices over time
Utility Functions
Mathematical utilities for technical analysis
Quick Start
Install the package:
npm install trading-signalsUse it in your code:
import { SMA } from 'trading-signals';
const sma = new SMA(5);
sma.add(81);
sma.add(24);
sma.add(75);
sma.add(21);
sma.add(34);
console.log(sma.getResult()); // 47⚠️ Important Disclaimer
Signals by technical trading indicators are not guarantees. Always use proper risk management, confirm signals with multiple indicators, and never rely on a single indicator for trading decisions. This library is for educational purposes and does not constitute financial advice.