{"id":24716515,"url":"https://github.com/sc4recoin/simple-crypto-breakout-strategy","last_synced_at":"2025-10-09T13:31:42.848Z","repository":{"id":49221441,"uuid":"357382848","full_name":"SC4RECOIN/simple-crypto-breakout-strategy","owner":"SC4RECOIN","description":"Catch breakouts by opening positions based on the previous day's range. Popularized by Larry Williams.","archived":false,"fork":false,"pushed_at":"2023-09-13T01:26:20.000Z","size":701,"stargazers_count":25,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T02:51:14.302Z","etag":null,"topics":["bot","btc","cryptocurrency","ethereum","ftx","golang","momentum-strategy","trading-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/SC4RECOIN.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-04-13T01:02:08.000Z","updated_at":"2024-11-17T10:26:36.000Z","dependencies_parsed_at":"2024-06-19T00:21:06.877Z","dependency_job_id":"a24ee766-2197-48c8-a1ee-b19d63cf961c","html_url":"https://github.com/SC4RECOIN/simple-crypto-breakout-strategy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SC4RECOIN/simple-crypto-breakout-strategy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC4RECOIN%2Fsimple-crypto-breakout-strategy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC4RECOIN%2Fsimple-crypto-breakout-strategy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC4RECOIN%2Fsimple-crypto-breakout-strategy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC4RECOIN%2Fsimple-crypto-breakout-strategy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SC4RECOIN","download_url":"https://codeload.github.com/SC4RECOIN/simple-crypto-breakout-strategy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC4RECOIN%2Fsimple-crypto-breakout-strategy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001484,"owners_count":26083102,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","btc","cryptocurrency","ethereum","ftx","golang","momentum-strategy","trading-bot"],"created_at":"2025-01-27T09:12:48.955Z","updated_at":"2025-10-09T13:31:42.505Z","avatar_url":"https://github.com/SC4RECOIN.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Cryptocurrency Breakout Strategy\n\nCatch breakouts by opening positions based on the previous day's range. Popularized by Larry Williams.\n\n## Strategy\n\n1. Get previous day's high and low\n2. Set limit order based on previous day's range\n3. Close position at end of day\n\n## Backtest\n\nThe following are results from a backtest from `2020-01-01` to `2020-12-31` with the below config. A simple buy \u0026 hold strategy is used as a benchmark.\n\n```json\n{\n  \"ticker\": \"ETH-PERP\",\n  \"k\": 0.6,\n  \"stoploss\": 0.02,\n  \"leverage\": 1\n}\n```\n\n| Metric                 |          |\n| ---------------------- | -------- |\n| Trades                 | 113      |\n| Max Drawdown           | -7.230%  |\n| Return                 | 304.713% |\n| Benchmark Max Drawdown | -61.446% |\n| Benchmark Return       | 471.245% |\n\nThe model underperforms the benchmark, however, the model is very successful in reducing downside exposure. Increasing the leverage to 2x or 3x will significantly outperform the benchmark while maintaining tolerable drawdowns in portfolio value.\n\n## Docker\n\nMake sure to set `secret` and `key` in `config.json` or pass as env vars.  \nSee `Makefile`\n\n```bash\n\u003e docker build breakout-trader .\n\u003e docker run -p 4000:4000 breakout-trader\n```\n\nNavigate to `http://localhost:4000` for dashboard\n\n## Dashboard\n\nThe dashboard can be used to monitor your open orders and positions. The bot can also be disable and all positions and orders can be closed manually. Supports mobile view.\n\n| Dashhoard                            |\n| ------------------------------------ |\n| ![alt text](dashboard/dashboard.png) |\n\n### V2\n\nSee the [v2 branch](https://github.com/SC4RECOIN/simple-crypto-breakout-strategy/tree/v2) for more configuration options like shorting and moving averages. This is the branch I am using and testing from but might not be ready for use and is subject to change. It also integrates with slack which I haven't made optional yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc4recoin%2Fsimple-crypto-breakout-strategy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc4recoin%2Fsimple-crypto-breakout-strategy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc4recoin%2Fsimple-crypto-breakout-strategy/lists"}