{"id":13599728,"url":"https://github.com/skyte/relative-strength","last_synced_at":"2025-04-10T17:32:04.466Z","repository":{"id":60077364,"uuid":"417767072","full_name":"skyte/relative-strength","owner":"skyte","description":"IBD Style Relative Strength Percentile Ranking of Stocks (i.e. 0-100 Score).","archived":false,"fork":false,"pushed_at":"2024-06-20T05:32:32.000Z","size":80,"stargazers_count":103,"open_issues_count":0,"forks_count":84,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-07T01:39:01.813Z","etag":null,"topics":["relative-strength","relative-strength-index","stock-market","stocks"],"latest_commit_sha":null,"homepage":"","language":"Python","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/skyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-10-16T08:31:27.000Z","updated_at":"2024-10-26T10:23:06.000Z","dependencies_parsed_at":"2024-11-07T01:40:19.947Z","dependency_job_id":"c45040af-4b04-4e78-960a-8b30f2cf12e7","html_url":"https://github.com/skyte/relative-strength","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyte%2Frelative-strength","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyte%2Frelative-strength/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyte%2Frelative-strength/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyte%2Frelative-strength/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyte","download_url":"https://codeload.github.com/skyte/relative-strength/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261994,"owners_count":21074229,"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":["relative-strength","relative-strength-index","stock-market","stocks"],"created_at":"2024-08-01T17:01:10.139Z","updated_at":"2025-04-10T17:32:04.148Z","avatar_url":"https://github.com/skyte.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# NOTE: This is no longer maintained. If you need it, fork it or something.\n---\n\n# relative-strength\nIBD Style Relative Strength Percentile Ranking of Stocks (i.e. 0-100 Score).  \nI also made a TradingView indicator, but it cannot give you the percentile ranking, it just shows you the Relative Strength: https://www.tradingview.com/script/SHE1xOMC-Relative-Strength-IBD-Style/\n\n## Daily Generated Outputs\nStocks: https://github.com/skyte/rs-log/blob/main/output/rs_stocks.csv  \nIndustries: https://github.com/skyte/rs-log/blob/main/output/rs_industries.csv  \n  \n\n## Known Issues\nUnfortunately the close prices loaded from the price history API are not always split adjusted. So if a stock had a split recently there is a chance the relative strength value will be wrong...\n## Calculation\nYearly performance of stock (most recent quarter is weighted double) divided by yearly performance of reference index (`SPY` by default).\n  \n\n## Considered Stocks\nTickers from ftp://ftp.nasdaqtrader.com/symboldirectory/nasdaqtraded.txt disregarding ETFs and all stocks where the industry and sector information couldn't be retrieved from yahoo finance.\n## How To Run\n\n### Run EXE\n\n1. Open the latest successful run here: https://github.com/skyte/relative-strength/actions/workflows/exe.yml\n2. Download `exe-package` at the bottom (need to be logged in into github)\n3. Exctract the `relative-strength` folder and enter it\n   - If needed open `config.yaml` and put in your preferences \n4. Run `relative-strength.exe`\n\n### Run Python Script\n\n1. Open `config.yaml` and put in your preferences \n2. Install requirements: `python -m pip install -r requirements.txt`\n3. Run `relative-strength.py`\n\n#### Separate Steps\n\nInstead of running `relative-strength.py` you can also:\n\n1. Run `rs_data.py` to aggregate the price data\n2. Run `rs_ranking.py` to calculate the relative strength rankings\n\n\n\n### \\*\\*\\* Output \\*\\*\\*\n\n- in the `output` folder you will find:\n  - the list of ranked stocks: `rs_stocks.csv`\n  - the list of ranked industries: `rs_industries.csv`\n\n\n## Config\n\n#### Private File\n\nYou can create a `config_private.yaml` next to `config.yaml` and overwrite some parameters like `API_KEY`. That way you don't get conflicts when pulling a new version.\n\n#### Data Sources\n\nCan be switched with the field `DATA_SOURCE`\n\n##### Yahoo Finance\n\n(Benchmark: Loads 1500 Stocks in 20m)\n\n- Is default, no config necessary.\n\n##### TD Ameritrade\n\n(Benchmark: Loads 1500 Stocks in 18m)\n\n1. Create TDAmeritrade Developer Account and App\n2. Put in your `API_KEY` in `config.yaml` and change `DATA_SOURCE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyte%2Frelative-strength","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyte%2Frelative-strength","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyte%2Frelative-strength/lists"}