technical-analysis

0.0.2 • Public • Published

Technical Analysis

technical-analysis is the npm package implementing well known technical analysis formulas.

Quick Start

Server-side (nodejs)

Install the technical-analysis npm

npm install technical-analysis
var TA = require("technical-analysis").TechnicalAnalysis;
var ta = new TA();

/* prepare the data array */
var d = [1,2,3,4,5];

/* get the moving average of the data set */
var r = ta.movingAverage(d, 5);
/* r = [NaN,NaN,NaN,NaN,3] */

Supported Technical Analysis Formulas

  • bollingerBands(data, interval, upperBandStd, lowerBandStd)
  • exponentialMovingAverage(data, interval)
  • max(data, interval)
  • min(data, interval)
  • movingAverage(data, interval)

Development & Contributions

How to test

npm test

And you are welcome to contribute to this library.

Build

License

This software is free to use under the BSD license. See the LICENSE file for license text and copyright information.

Readme

Keywords

none

Package Sidebar

Install

npm i technical-analysis

Weekly Downloads

1

Version

0.0.2

License

BSD

Last publish

Collaborators

  • neraliu