supertrend
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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 ]

Package Sidebar

Install

npm i supertrend

Weekly Downloads

41

Version

1.0.0

License

MIT

Unpacked Size

7.65 kB

Total Files

7

Last publish

Collaborators

  • maxgfr