New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bollinger-bands

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bollinger-bands

Fintach math utility to calculate bollinger bands.

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
52
decreased by-11.86%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Coverage

bollinger-bands

Fintach math utility to calculate bollinger bands.

Install

$ npm install bollinger-bands

Usage

import boll from 'bollinger-bands'

boll([1, 2, 4, 8], 2, 2)
// {
//   upper: [, 2.5, 5, 10],
//   mid  : [, 1.5, 3, 6],
//   lower: [, 0.5, 1, 2]
// }

boll(datum, size, times, options)

  • datum Array.<Number> the collection of data
  • size Number=20 the period size, defaults to 20
  • times Number=2 the times of standard deviation between the upper band and the moving average.
  • options Object= optional options
    • ma Array.<Number>= the moving averages of the provided datum and period size. This option is used to prevent duplicate calculation of moving average.
    • sd Array.<Number>= the standard average of the provided datum and period size

Returns Array.<Band> the array of the Band object.

struct Band

  • upper Number the value of the upper band
  • mid Number the value middle band (moving average)
  • lower Number the value of the lower band

License

MIT

Keywords

FAQs

Package last updated on 25 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc