tactician
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

tactician

Boost your trading analysis capabilities in Node.js with our comprehensive collection of customizable indicators

tactician logo

npm version license

Currently available indicators

  • RSI (Relative Strength Index)
  • OBV (On Balance Volume)

Planned future indicators (todo)

  • STOCH (Stochastic Oscillator)
  • MACD (Moving Average Convergence Divergence)
  • MA (Moving Averages)
  • ATR (Avarage True Range)

Installation

install npm package

pnpm

pnpm i tactician // or npm

yarn

yarn i tactician

Import

import { rsi, obv } from 'tactician'

Usage

const ohlcData = [
  { open: 10, high: 12, low: 11, close: 1, volume: 10 },
  { open: 10, high: 12, low: 11, close: 2, volume: 10 },
  // Add more OHLC data as needed
];

const rsiResults = rsi(ohlcData); // Returns [57.14, 62.86 ...]
const obvResults = obv(ohlcData); // Returns [10, 20 ...]

Contribute

If you have a feature request then feel free to start a new issue, or just grab existing one.

License

MIT

Package Sidebar

Install

npm i tactician

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

25.5 kB

Total Files

14

Last publish

Collaborators

  • smugers