Code Monkey home page Code Monkey logo

trendyways's People

Contributors

dependabot[bot] avatar rubenafo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trendyways's Issues

ma function crashes when used in Angular

I get sumWindow is not defined error in ma function when I use it in Angular 2+. Maybe because of some strict setting somewhere. Looks like just adding let before sumWindow in averages.js line 14 should fix the issue.

Edit: It's also in many other places.

node module error

When using the package as a module with npm and e.g. babel and browserify the requires will not work. Missing ./utils required is the first error.

When using git clone and manual compilation:
Package do not compile. Missing uglify-es and browserify packages. Install them before running make.

The example script is wrong. The ma function use the "c" attribute by default.. thus the given parameter must be as below. That way of including the package is also the only way I found that works.

"use strict";
import tw from "./trendyways/dist/trendyways.min.js";

console.log(tw.ma([{"c":1.1}, {"c":2.2}, {"c":3.4}, {"c":2.1}], 2))

Great thanks for your efforts!

How do deal with RSI smoothing?

Hello,

Firstly, thank you for the great lib.

I'm trying to match my values to that of TradingView (or as close as!). It's my understanding they use an 'undefined' period and apply smoothing to the first period reading. I'm testing using the 1M timeframe and obviously with a small set of data (let's say 20), I'm seeing values much different from that of TV and exchanges. How would you suggest to workaround this, I was looking to provide a rolling dataset of say, 60 ticks to avoid larger swings, is there a better way?

Calling rsi more than once overwrites the value

  {
    partialCurrentGain = ((avgGain * (order-1)) + gains[i]) / order;
    partialCurrentLoss = ((avgLoss * (order-1)) + losses[i]) / order;
    smoothedRS = partialCurrentGain / partialCurrentLoss;
    rsi= 100 - (100 / (1 + smoothedRS)) //Should use a different variable name
    result.push(loopRsi);
    avgGain = partialCurrentGain;
    avgLoss = partialCurrentLoss;
  }

Is this package still under active development?

hi, nice work here. I am looking for a good TA lib and this seem to be very promising.

Just one concern, there seem to be lack of activity, is this repo still under active development / maintenance?

Please advise, thanks.

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.