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

binary-indicators

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-indicators

Binary.com Indicators

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by14.29%
Maintainers
1
Weekly downloads
 
Created
Source

#Binary.com Indicators

Build Status Coverage Status Code Climate

Install by running:

npm install binary-indicators --save

Simple Moving Average

A simple moving average (SMA) is an arithmetic moving average calculated by adding the closing price of the security for a number of time periods and then dividing this total by the number of time periods.

Calculate a single value, from array of numbers:

Input array of numbers:

const data = [1, 10, 100, 1000, 10000];
const result = simpleMovingAverageArray(data, { periods: 3 });
Calculate a single value from array of candles:
const data = [
    { close: 1 },
    { close: 2 },
    { close: 3 },
];
const result = simpleMovingAverage(data, { periods: 3, field: 'close' });
Calculate an array of values from array of numbers:
const data = [1, 2, 3, ...];
const result = simpleMovingAverageArray(data, { periods: 10 });

Exponential Moving Average (EMA)

The 12- and 26-day EMAs are the most popular short-term averages, and they are used to create indicators like the moving average convergence divergence (MACD) and the percentage price oscillator (PPO). In general, the 50- and 200-day EMAs are used as signals of long-term trends.

Bollinger Band (BB)

Relative Strength Index (RSI)

Momentum

Fibonacci 

FAQs

Package last updated on 01 Sep 2016

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