Socket
Socket
Sign inDemoInstall

supertrend

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    supertrend

Implementation of supertrend indicator


Version published
Weekly downloads
61
increased by29.79%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.1 (2024-04-20)

Bug Fixes

  • snapshot (0393d65)

Features

Readme

Source

supertrend

The Super Trend indicator, is a trending indicator that can be used to identify if the price is in an upward or downward trend. If the price is above the line then it acts as a point of support, and if below the line it acts as a point of resistance. The indicator is based on the ATR indicator, and is used to identify the trend direction and strength.

Installation

yarn add supertrend

Usage

import { supertrend } from 'supertrend';

supertrend({
  initialArray: [
    {"high":4035,"low":3893.77,"close":4020.99},
    ...
    {"high":5000,"low":4900.77,"close":4950.99},
  ],
  multiplier: 3,
  period: 10,
})
// => [ 0, 4670.9619, 2000 ]

Keywords

FAQs

Last updated on 20 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc