Skip to content

๐Ÿšง On Development - A comprehensive TypeScript trading indicators library with 127+ technical analysis indicators.

License

Notifications You must be signed in to change notification settings

NeaByteLab/Trading-Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ˆ Trading-Lib

A comprehensive TypeScript trading indicators library with 127+ technical analysis indicators.

๐Ÿšง Development Status: This project is actively under development with 127+ indicators implemented. See CHECKLIST.md for the complete list of indicators and implementation status.

โœจ Features

  • TypeScript Support - Full type safety and IntelliSense
  • 127+ Technical Indicators - Complete suite of trading indicators
  • Pine Script-like API - Familiar syntax for TradingView users
  • Modular Architecture - Easy to extend and customize
  • Zero Dependencies - Lightweight and fast

๐Ÿ“ฆ Installation

Clone the repository:

git clone https://github.com/NeaByteLab/Trading-Lib.git
cd Trading-Lib
npm install

๐Ÿš€ Usage

import { sma, ema, rsi, macd } from './src/indicators'

// Calculate Simple Moving Average
const prices = [10, 12, 15, 14, 16, 18, 17, 19, 20, 22]
const sma20 = sma(prices, 20)

// Calculate RSI
const rsi14 = rsi(prices, 14)

// Calculate MACD
const macdResult = macd(prices, 12, 26, 9)

๐Ÿ”ง Development

npm test          # Run tests
npm run lint      # Run ESLint
npm run build     # Build TypeScript

๐Ÿ“„ License

MIT License - see LICENSE file for details.