JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1006
  • Score
    100M100P100Q105140F
  • License MIT

PineScript v6 compatible technical analysis library for JavaScript/TypeScript

Package Exports

  • oakscriptjs
  • oakscriptjs/runtime

Readme

OakScriptJS Logo

OakScriptJS

OakScriptJS is a TypeScript/JavaScript library that provides PineScript v6 compatible technical analysis functions. Build trading indicators, run backtests, or integrate TA calculations into any JavaScript environment.

Quick Start

Install

npm install oakscriptjs

Calculate an indicator

import { Series, ta } from 'oakscriptjs';

const prices = [44, 44.5, 45, 45.5, 46, 46.5, 47, 47.5, 48, 48.5];
const close = new Series(prices);
const sma = ta.sma(close, 5);

console.log(sma.toArray());

Documentation