{"id":18487086,"url":"https://github.com/rubenafo/trendyways","last_synced_at":"2025-04-07T12:05:20.196Z","repository":{"id":6876001,"uuid":"8125165","full_name":"rubenafo/trendyways","owner":"rubenafo","description":"Simple javascript library containing methods for financial technical analysis","archived":false,"fork":false,"pushed_at":"2023-10-27T04:12:16.000Z","size":690,"stargazers_count":164,"open_issues_count":1,"forks_count":35,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-14T12:10:38.835Z","etag":null,"topics":["finance","indicators","javascript","macd","momentum","series","stock-market","technical-analysis","trading"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenafo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":null,"patreon":"rubenafo","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-02-10T17:05:08.000Z","updated_at":"2024-04-21T19:40:11.181Z","dependencies_parsed_at":"2024-04-21T19:40:03.405Z","dependency_job_id":"e5e8f317-794c-4306-80e1-82b70f58a2d5","html_url":"https://github.com/rubenafo/trendyways","commit_stats":{"total_commits":108,"total_committers":4,"mean_commits":27.0,"dds":"0.35185185185185186","last_synced_commit":"1f68da86ca6cda9a542b563c5da7a7e32018e3b0"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenafo%2Ftrendyways","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenafo%2Ftrendyways/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenafo%2Ftrendyways/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenafo%2Ftrendyways/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenafo","download_url":"https://codeload.github.com/rubenafo/trendyways/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648976,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["finance","indicators","javascript","macd","momentum","series","stock-market","technical-analysis","trading"],"created_at":"2024-11-06T12:50:12.339Z","updated_at":"2025-04-07T12:05:20.171Z","avatar_url":"https://github.com/rubenafo.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/rubenafo/trendyways.svg?branch=master)](https://travis-ci.org/rubenafo/trendyways)\n[![Coverage Status](https://coveralls.io/repos/github/rubenafo/trendyways/badge.svg?branch=master)](https://coveralls.io/github/rubenafo/trendyways?branch=master)\n[![npm version](https://badge.fury.io/js/trendyways.svg)](https://badge.fury.io/js/trendyways)\n\nTrendyways\n==========\n\nSmall javascript library containing methods to be used in financial technical analysis of stock time series.\nIt is intended to be a simple library, suitable to be inserted in any visulization workflow to generate results on the fly.\n\nCompatibily: IE[7,8,9,...], Chrome and Firefox.\n\nInstall\n-------\n\n   `npm install trendyways`\n\nHow to use it\n-------------\nFrom NPM, load the module to access the methods:\n\n`let tw = require (\"trendyways\")`   \n`console.log(tw.ma([1.1, 2.2, 3.4, 2.1], 2)` \n\nIf you use the module in a browser as a JS dependency, _trendyways.js_ or _trendyways.min.js_ just include the file:   \n`\u003cscript src=\"trendyways.min.js\" /\u003e`   \nand the file will be available as the __tw__ module: e.g. `tw.max([4,5,6])`\n\nDocumentation\n-------------\nPlease refer to the wiki of the project to access the latest documentation: https://github.com/rubenafo/trendyways/wiki\n\n__General purpose functions:__\n \n* series min.\n* series max.\n* series mean.\n* series standar deviation.\n\n__Averages and Intervals:__\n* MA: simple moving average.\n* EMA: exponential moving average.\n* WMA: weighted moving average.\n* Bollinger bands (window n, k value).\n\n__Error methods:__\n* series MSE\n* series RMSE\n* series MAE\n\n__Support and Resistance methods:__\n* Floor pivot points (resistances R1, R2 and R3; and supports S1, S2 and S3).\n* Tom Demarks Points (low:high values prediction).\n* Woodies Points (resistances R1,R2; and supports S1 and S2).\n* Camarilla Points (resistances R1,R2,R3 and R4; supports S1,S2,S3 and S4).\n* Fibonacci Retracements (for both uptrend and downtrend series).\n\n__Technical Indicators:__\n* On-Balance Volume (obv)\n* Price and Volume Trend (pvt)\n* Money Flow Index (mfi)\n* MACD indicator (macd)\n* Momentum (n-th order momentum)\n* Rate of Change (ROC) (n-th order)\n* RSI (Relative Strength Index) (n-th order)\n* Average True Range (ATR)\n* Average Directional Index (ADV)\n\nTests\n-------------\nAt the top of this README there is a link to the coverage and test results from Travis and CoverAll.\nIf you want to run your tests locally, use mocha to run the /tests files:\n```\nmocha ./tests\n```\n","funding_links":["https://patreon.com/rubenafo"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenafo%2Ftrendyways","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenafo%2Ftrendyways","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenafo%2Ftrendyways/lists"}