rubenafo / trendyways Goto Github PK
View Code? Open in Web Editor NEWSimple javascript library containing methods for financial technical analysis
License: Apache License 2.0
Simple javascript library containing methods for financial technical analysis
License: Apache License 2.0
hey library looks great, anyway you can real quick add documentation on fibonacci retracements?
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.
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.
You should have this link instead: http://htmlpreview.github.io/?https://github.com/figurebelow/trendyways/blob/master/docs/index.html
Or something similar that renders the html.
A JavaScript module would be handy
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!
{
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;
}
=== npm audit security report ===
│ High │ Regular Expression Denial of Service
│ Package │ marked
│ Patched in │ >=0.3.9
│ Dependency of │ trendyways
│ Path │ trendyways > jsdoc > marked
│ More info │ https://nodesecurity.io/advisories/531
commit d930f21 deletes the docs folder
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.