JSPM

no-talib

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q30882F
  • License MIT

Package Exports

  • no-talib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (no-talib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Intro

no-talib is now renamed to talib-stream This lib for efficiently calculating weighted ta-lib metrics with streaming support.

Often we need realtime calculation some weighted metric that requires previous knowledge, such as EMA, RSI, ATR. Ideally longer priods are better. But it would cost a lot of time to simply calculate from the beginning.

This lib is intended for fast calculating indicators from data stream.

Usage

npm i talib-stream --save 

example code

const atrKeeperRes: any = [];
const atrKeeper = new AtrKeeper({ periods: period });
_.each(sampleCandles, c => {
  atrKeeper.add({
    close,
    high,
    low,
  });
  atrKeeperRes.push(atrKeeper.get());
});

more usages please check spec files

Testing

npm run test

Build from source

npm build to build the lib