Trading Signals
Technical indicators and overlays to run technical analysis with JavaScript / TypeScript
High Performance
Native JavaScript numbers for ~100x faster calculations compared to arbitrary precision libraries
Streaming Data
Update indicators incrementally as new prices arrive - perfect for real-time trading
Type Safe
Full TypeScript implementation with complete type definitions and IDE support
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
Exhaustion Indicators
Identify trend exhaustion and potential reversal points
Utility Functions
Mathematical utilities for technical analysis
Quick Start
Install the package:
npm install trading-signals
Use 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.