从 MACD 到配对交易,从蒙特卡洛模拟到期权策略,这个开源项目把量化交易的半壁江山都搬来了
quant-trading 是一个收录了 17+ 种量化交易策略的 Python 开源项目。从最基础的 MACD 动量策略,到进阶的配对交易、期权策略,再到宏观经济分析,涵盖了量化交易的方方面面。
🔗 项目地址:https://github.com/je-suis-tm/quant-trading
"We only need to be right 51 percent of the time... you can make billions that way." — Robert Mercer, Renaissance Technologies 联合 CEO
"If you trade a lot, you only need to be right 51 percent of the time." — Elwyn Berlekamp
| |
|---|
| MACD Oscillator | |
|---|
| Parabolic SAR | |
|---|
| Bollinger Bands | |
|---|
| RSI Pattern | |
|---|
| Awesome Oscillator | |
|---|
| Shooting Star | |
|---|
| |
|---|
| London Breakout | |
|---|
| Dual Thrust | |
|---|
| Heikin-Ashi | |
|---|
| |
|---|
| Pair Trading | |
|---|
| Options Straddle | |
|---|
| Monte Carlo | |
|---|
| VIX Calculator | |
|---|
| Portfolio Optimization | |
|---|
| |
|---|
| Oil Money | |
|---|
| Smart Farmers | |
|---|
| Wisdom of Crowds | |
|---|
| |
|---|
| Python | |
|---|
| pandas / numpy | |
|---|
| yfinance | |
|---|
| statsmodels | |
|---|
# 克隆项目git clone https://github.com/je-suis-tm/quant-trading.git# 进入目录cd quant-trading# 运行一个策略试试python3 "MACD Oscillator backtest.py"
每个策略脚本都包含一个 main() 函数,可以直接嵌入到你的交易系统里。
- 数据丰富:整合了 Yahoo Finance、FX 历史数据等
与其到处搜集零散的学习资料,不如把这个项目 star 下来慢慢研究。从最简单的 MACD 到复杂的期权策略,这个仓库基本上涵盖了量化交易的半壁江山。
项目地址:https://github.com/je-suis-tm/quant-trading