quant-trading
AI 模型与开发框架自动化与工作流数据分析与数据处理
algorithmic-tradingbollinger-bandscommodity-tradingmacdmomentum-strategymomentum-trading-strategy
11,234
Stars
1,963
Forks
294
Watchers
1
Open Issues
Apache-2.0
许可证
Python
语言
2018-04-03
创建时间
2026-06-20
最近更新
项目能做什么
包含 VIX 计算、形态识别、CTA、蒙特卡洛及配对交易等多种 Python 量化策略集合。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Quant-trading ## Intro > We’re right 50.75 percent of the time... but we’re 100 percent right 50.75 percent of the time, you can make billions that way. <br><br> > --- Robert Mercer, co-CEO of Renaissance Technologies > If you trade a lot, you only need to be right 51 percent of the time, we need a smaller edge on each trade. <br><br> > --- Elwyn Berlekamp, co-Founder of Combinatorial Game Theory ###### *The quotes above come from a book by Gregory Zuckerman, a book every quant must read, THE MAN WHO SOLVED THE MARKET.* Most scripts inside this repository are technical indicator automated trading. These scripts include various types of momentum trading, opening range breakout, reversal of support & resistance and statistical arbitrage strategies. Yet, quantitative trading is not only about technical analysis. It can refer to computational finance to exploit derivative price mismatch, pattern recognition on alternative datasets to generate alphas or low latency order execution in the market microstructure. Hence, there are a few ongoing projects inside this repository. These projects are mostly quantamental analysis on some strange ideas I come up with to beat the market (or so I thought). There is no HFT strategy simply because ultra high frequency data are very expensive to acquire (even consider platforms like Quantopian or Quandl). Additionally, please note that, all scripts are historical data backtesting/forward testing (basically via Python, not C++, maybe Julia in the near future). The assumption is that all trades are frictionless. No slippage, no surcharge, no illiquidity. Last but not least, all scripts contain a global function named main so that you can embed the scripts directly into you trading system (although too lazy to write docstring). ### Table of Contents #### Options Strategy * <a href=https://github.com/je-suis-tm/quant-trading#12-options-straddle>Options Straddle</a> * <a href=https://github.com/je-suis-tm/quant-trading#15-vix-calculator>VIX Calculator</a> #### Quantamental Analysis * <a href=https://github.com/je-suis-tm/quant-trading#11-monte-carlo-project>Monte Carlo Project</a> * <a href=https://github.com/je-suis-tm/quant-trading#6-oil-money-project>Oil Money Project</a> * <a href=https://github.com/je-suis-tm/quant-trading#2-pair-trading>Pair Trading</a> * <a href=https://github.com/je-suis-tm/quant-trading#13-portfolio-optimization-project>Portfolio Optimization Project</a> * <a href=https://github.com/je-suis-tm/quant-trading#14-smart-farmers-project>Smart Farmers Project</a> * <a href=https://github.com/je-suis-tm/quant-trading#16-wisdom-of-crowds-project>Wisdom of Crowd Project</a> #### Technical Indicators * <a href=https://github.com/je-suis-tm/quant-trading#5-awesome-oscillator>Awesome Oscillator</a> * <a href=https://github.com/je-suis-tm/quant-trading#9-bollinger-bands-pattern-recognition>Bollinger Bands Pattern Recognition</a> * <a href阅读完整原文
商业机会分析 AI 生成
量化策略精讲与实盘调优付费专栏/手册
| 产品构想 | 将仓库内散落的20+种经典策略(Dual Thrust、配对交易、期权跨式等)系统化整理,补充数学原理、滑点与交易费用模型、实盘参数敏感度分析及避坑指南,制成高质量图文/视频课程或电子书。 |
| 核心功能 | 逐行策略代码拆解、历史数据回测基准对比表、交易摩擦与过拟合防范指南、实盘数据预处理模板。 |
| 目标用户 | 量化入门自学者、高校金融工程学生、想要系统化掌握经典策略逻辑的程序员。 |
| 难度/周期 | 低 · 2-4周 · 成本:< 1,000元(基础内容制作与托管费用) |
| 收费模式 | 数字商品单次购买(Gumroad/爱发电/知识星球/小册)或高阶学员社群会员费。 |
| 竞争风险 | 量化教学内容同质化竞争激烈;盗版传播风险;用户实盘亏损可能引发情绪反噬。 |
| 依据 | 已验证事实 |
策略信号轻量化监控与通知SaaS看板
| 产品构想 | 基于原库算法逻辑,接入公开或低成本行情数据流(如Yahoo Finance、主流加密交易所API),将其封装为开箱即用的Web策略看板,提供关键形态突破与指标超买超卖的实时多渠道推送。 |
| 核心功能 | 常用策略(MACD背离、布林带突破、配对套利偏离度)自动计算、Telegram/Discord/邮件/微信实时告警、策略参数自定义滑块与模拟回测报表。 |
| 目标用户 | 没有精力自建服务器运行脚本的半自动化交易者、中长线波段交易个人。 |
| 难度/周期 | 中等 · 1-2个月 · 成本:1,000-3,000元/月(云服务器与低延迟行情数据接口费用) |
| 收费模式 | 订阅制阶梯收费(按策略数量、推送频率及高阶指标访问权限分级)。 |
| 竞争风险 | 公开数据延迟影响策略有效性;合规/金融投资建议边界风险;云资源与行情API接口成本不可控。 |
| 依据 | AI推测 |
实盘交易执行与风控脚手架(商业增强版)
| 产品构想 | 原仓库仅为裸策略代码(无Docker、无DB、无API鉴权),将其升级为模块化的实盘脚手架,补齐订单管理系统(OMS)、仓位风控规则、断线重连及主流券商/交易所(如IBKR、富途、Binance)适配器。 |
| 核心功能 | 统一订单路由与仓位管理、内置最大回撤与单笔限额硬风控熔断器、Docker一键部署与Prometheus指标监控、本地SQLite/PostgreSQL交易日志落库。 |
| 目标用户 | 已有策略研究但缺乏低延迟系统开发能力的个人宽客、小型私募/自营交易团队。 |
| 难度/周期 | 高 · 2-3个月 · 成本:2,000-5,000元(测试账户入金、服务器及测试数据源成本) |
| 收费模式 | 源码授权许可费、企业私有化部署实施服务费、定制化经纪商接口开发咨询费。 |
| 竞争风险 | 实盘资金安全责任重,接口故障或风控Bug导致交易亏损可能引发法律纠纷;不同券商API维护成本高。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| freqtrade/freqtrade | 中文介绍暂未生成 Free, open source crypto trading bot |
56,742 | Python |
| microsoft/qlib | 中文介绍暂未生成 Qlib is an AI-oriented Quant investment platform that aims t |
50,196 | Python |
| HKUDS/Vibe-Trading | 中文介绍暂未生成 "Vibe-Trading: Your Personal Trading Agent" |
38,000 | Python |
| Fincept-Corporation/FinceptTerminal | 中文介绍暂未生成 FinceptTerminal is a modern finance application offering adv |
33,661 | C++ |
| QuantConnect/Lean | 中文介绍暂未生成 Lean Algorithmic Trading Engine by QuantConnect (Python, C#) |
22,479 | C# |
| stefan-jansen/machine-learning-for-trading | 中文介绍暂未生成 Code for Machine Learning for Trading, 3rd edition — from da |
21,776 | Jupyter Notebook |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2018-04-03,最近推送 2026-06-20 |
| 社区活跃 | Star 11,234 / Fork 1,963 / Issue 1(数据支持,可自行核实) |
| 许可证 | Apache-2.0 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/je-suis-tm/quant-trading.git cd quant-trading # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。