{"id":13672527,"url":"https://github.com/myquant/strategy","last_synced_at":"2025-04-27T22:32:21.971Z","repository":{"id":41456402,"uuid":"46541937","full_name":"myquant/strategy","owner":"myquant","description":"掘金策略集锦","archived":false,"fork":false,"pushed_at":"2017-07-11T09:57:16.000Z","size":281,"stargazers_count":772,"open_issues_count":1,"forks_count":375,"subscribers_count":90,"default_branch":"master","last_synced_at":"2024-11-11T10:42:33.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/myquant/strategy","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/myquant.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}},"created_at":"2015-11-20T05:39:17.000Z","updated_at":"2024-11-11T07:11:09.000Z","dependencies_parsed_at":"2022-08-22T19:00:30.708Z","dependency_job_id":null,"html_url":"https://github.com/myquant/strategy","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/myquant%2Fstrategy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myquant%2Fstrategy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myquant%2Fstrategy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myquant%2Fstrategy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myquant","download_url":"https://codeload.github.com/myquant/strategy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219601,"owners_count":21554444,"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":[],"created_at":"2024-08-02T09:01:38.261Z","updated_at":"2025-04-27T22:32:21.154Z","avatar_url":"https://github.com/myquant.png","language":"Python","readme":"# 掘金策略集锦\n\n量化开源和分享，展示各类经典策略在掘金平台下的实现。\n\n每个策略单独拥有一个目录，目录名即是该策略的简称，里面有一个固定名为info.md的文件，其内容为该策略的简单介绍。\n策略的每种实现为单独一个目录，目录名为该策略的实现语言，因为一些语言下的代码实现可能有一系列文件，所以把每一种策略实现语言单列为一个目录，\n比如，一个策略有python实现，就有一个python目录，里面是python代码文件，如果还有C#实现，就会有一个csharp目录。\n\n\n目录结构组织如下：\n\n\n    －－ strategy  策略名\n  \n    ｜—— info.md  策略介绍\n    \n    ｜—— python   策略python实现\n    \n       ｜— strategy.py  策略代码\n       \n       ｜－ strategy.ini 策略的配置文件\n\n    ｜—— csharp   策略csharp实现\n    \n       ｜— strategy.cs  策略代码\n\n       ｜－ strategy.ini 策略的配置文件\n       \n       \n补充：\n    因部分策略会比较复杂, python策略中可能会用到时间序列数据的处理包pandas, 时间处理包arrow, 请先行用pip安装。\n\n策略列表，逐步增加中，有需求或计划共享自己实现的一些经典策略的，请fork本项目，然后修改这个文件，并做Pull Request。\n\n- 趋向系统指标策略 ADX、DMI指标用于股票池\n- 人气指标策略 ar_ma 结合\n- 套利策略模板 arbitrage\n- 布林指标策略 boll-stock\n- 布林强盗策略 bollinger_bandit\n- RSI指标策略 RSI\n- KDJ指标策略 KDJ\n- MACD指标策略 MACD\n- 双均线策略 dual-ma\n- 区间突破策略 dual-thrust (未实现)\n- 动态突破策略 Dynamic Breakout\n- Hans 123策略\n- 反转突破策略 r-breaker\n- 空中花园策略 skypark\n- 简单海龟策略 \n- 仓位管理示例策略 position management\n\n- Python策略框架  Framework\n- 动量选股示例 Momentum\n- 简单的PE因子策略示例 Factor\n- Alpha相关示例 Alpha\n\n ...... \n 未完待续 \n \n **请注意，在使用策略前，先检查下载代码和配置文件的完整性**\n \n 1. 注意ini文件能否正确打开，编辑推荐使用notepad++, 在记事本中打开编辑时要注意可能有换行问题，保存后可能会导致python程序运行时报错\n 2. 所有策略的ini配置文件中，需要填上你在掘金中注册的用户名密码；以及在策略终端中新生成的策略ID, 可以在策略向导中通过\"新建空策略\"来完成，\n 成功后会提示拷贝策略ID, 粘贴到ini文件中。\n 3. 策略代码中使用的股票池文件中的代码可以自行增删，注意跟原有的格式保持一致\n 4. 如果是**期货代码，请务必注意ini文件或者代码文件中交易代码可能过期，请按照代码定义规则使用交易所目前在交易的代码，否则不会收到相关行情数据**,比如，CFFEX.IF1601这样的代码需要修改成当前的月份合约。\n","funding_links":[],"categories":["策略","Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyquant%2Fstrategy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyquant%2Fstrategy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyquant%2Fstrategy/lists"}