Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgfr/supertrend
Implementation of supertrend indicator
https://github.com/maxgfr/supertrend
algorithm javascript node supertrend technical-indicators technicalindicators trading typescript
Last synced: 7 days ago
JSON representation
Implementation of supertrend indicator
- Host: GitHub
- URL: https://github.com/maxgfr/supertrend
- Owner: maxgfr
- License: mit
- Created: 2022-12-03T12:12:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-31T19:02:06.000Z (13 days ago)
- Last Synced: 2024-10-31T20:17:24.891Z (13 days ago)
- Topics: algorithm, javascript, node, supertrend, technical-indicators, technicalindicators, trading, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/supertrend
- Size: 1.36 MB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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
```bash
yarn add supertrend
```## Usage
```typescript
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 ]
```