Giter VIP home page Giter VIP logo

supertrend's Introduction

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 ]

supertrend's People

Contributors

djarrieta avatar maxgfr avatar renovate[bot] avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

supertrend's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v3
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/lint.yml
  • actions/checkout v3
.github/workflows/publish.yml
  • actions/checkout v3
.github/workflows/test.yml
  • actions/checkout v3
npm
package.json
  • technicalindicators ^3.1.0
  • @semantic-release/changelog ^6.0.2
  • @semantic-release/commit-analyzer ^9.0.2
  • @semantic-release/git ^10.0.1
  • @semantic-release/github ^8.0.7
  • @semantic-release/npm ^9.0.1
  • @semantic-release/release-notes-generator ^10.0.3
  • @swc-node/register 1.10.9
  • @swc/cli 0.4.0
  • @swc/core 1.7.18
  • @swc/jest 0.2.36
  • @types/jest 29.5.12
  • @types/node 18.19.46
  • @typescript-eslint/eslint-plugin 5.62.0
  • @typescript-eslint/parser 5.62.0
  • eslint 8.57.0
  • eslint-config-prettier 8.10.0
  • eslint-plugin-jest 27.9.0
  • jest 29.7.0
  • nodemon 2.0.22
  • prettier 2.8.8
  • rimraf 3.0.2
  • semantic-release 19.0.5
  • typescript 4.9.5

  • Check this box to trigger a request for Renovate to run again on this repository

How do we interpret the result?

Hi how do we use this? I feed 72 elements and get back 61.
Do I start from the most recent element and if the price i get from supertrend is above current price means we are in a downtrend?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.