tactician
Lightweight trading indicators designed for technical analysts' use
Boost your trading analysis capabilities in Node.js with our comprehensive collection of customizable indicators
- RSI (Relative Strength Index)
- OBV (On Balance Volume)
- STOCH (Stochastic Oscillator)
- MACD (Moving Average Convergence Divergence)
- MA (Moving Averages)
- ATR (Avarage True Range)
pnpm
pnpm i tactician // or npm
yarn
yarn i tactician
import { rsi, obv } from 'tactician'
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 ...]
const stochResults = stoch(ohlcData); // Returns [ 66.67, 0 ... ]
const macdResults = stoch(ohlcData); // Returns [ 0.03, 0.04 ... ]
If you have a feature request then feel free to start a new issue, or just grab existing one.
MIT