{"id":19539357,"url":"https://github.com/chuxinh/trading-strategy-simulation","last_synced_at":"2025-09-03T06:36:33.314Z","repository":{"id":82993963,"uuid":"337077377","full_name":"chuxinh/trading-strategy-simulation","owner":"chuxinh","description":"Comparing dollar-cost averaging frequencies 🤓","archived":false,"fork":false,"pushed_at":"2024-04-23T10:00:17.000Z","size":1126,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T15:05:11.175Z","etag":null,"topics":["financial-analysis","simulation","statistical-analysis","trading-strategies"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chuxinh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-08T13:01:36.000Z","updated_at":"2024-05-27T02:37:43.000Z","dependencies_parsed_at":"2024-11-11T02:39:19.646Z","dependency_job_id":"8afe724e-b057-429e-85b5-d47deba32b59","html_url":"https://github.com/chuxinh/trading-strategy-simulation","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/chuxinh%2Ftrading-strategy-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuxinh%2Ftrading-strategy-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuxinh%2Ftrading-strategy-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuxinh%2Ftrading-strategy-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chuxinh","download_url":"https://codeload.github.com/chuxinh/trading-strategy-simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251017452,"owners_count":21523578,"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":["financial-analysis","simulation","statistical-analysis","trading-strategies"],"created_at":"2024-11-11T02:39:10.504Z","updated_at":"2025-04-26T16:31:25.277Z","avatar_url":"https://github.com/chuxinh.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trading Strategy Simulation\n### 📈 Comparing dollar-cost averaging trading frequencies\n\nThis repository explores the topic of dollar-cost averaging strategy for investing, and how risk and return of assets could change as the investment interval varies.\n\nWe are typically interested in comparing weekly (5-day) vs monthly (20-day) investment frequency. The dataset is pulled via this python package [yahoofinancials](https://github.com/JECSand/yahoofinancials). We do backtesting by randomly sampling historical prices over a 5-year period since 2016 to construct portfolios, and use hypothesis testing to see if there's any significant difference between risks and returns over the studied period.\n\nYou can also find a related blog [post](https://www.chuxinhuang.com/blog/trading-strategy-simulation-with-python/) on my website.\n\nKudos to [Paul Tune](https://twitter.com/ptuls) and [Cuong Duong](https://github.com/tcuongd) for the code review!\n\n**Getting started**\n\nIn order to run the notebook, you need to have all the required packages installed, run:\n```\npip3 install -r requirements.txt\n```\n\n### 📬 Wanna to stay in touch \n\nI tweet about data, tech, China, music and art [@chuxin_h](https://twitter.com/chuxin_h). \n\nStay up-to-date by subscribing to my [newsletter](https://cantabile.substack.com/).\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n\u003e **Disclaimer**\n\u003e \n\u003e*The work in this notebook is provided for informational purposes only, and should not be relied upon as legal, businesses, investment or tax advice. References to any securities or digital assets are for illustrative purposes only, and do not constitute an investment recommendation or offer to provide investment advisory services.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuxinh%2Ftrading-strategy-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchuxinh%2Ftrading-strategy-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuxinh%2Ftrading-strategy-simulation/lists"}