项目
在 GitHub 查看
KidQuant/Pairs-Trading-With-Python
关于
本项目结合统计学与金融理论,演示股票市场中一种常见的交易策略:配对交易。
商业与金融实测星标增长
- 24小时
- +1
- 7天
- +10
- 15天
- +13
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Pairs Trading With Python
This project involves using a combination of statistics along with financial thoery to demonstrate a popular trading strategy used in equity markets: Pairs Trading.

Goal
Our goal involves the following:
- Part 1: Creating a model that test for stationarity.
- Part 2: Creating a model that test for cointegration.
- Part 3: Assigning a portfolio of assests and testing for a cointegrated pair among the dataset.
- Part 4: Establishing features and labels that will allow us to create trading signals for the strategy.
Data
I used the data from Yahoo Finance, which provides historical financial data for free. This data was extracted via the yFinance Python module.
Enviroment and Tools
The following are the modules we will use in this notebook. However, the program relies on many more dependencies than what is shown here. Please be sure to set up a virtual enviroment and install the requirements.txt file before running this programming on your own.
- Jupyter NoteBook
- Numpy
- Pandas
- Matplotlib
- Seaborn
- Statsmodels
- Pandas DataReader
- DateTime
- yFinance (formally known as
Fix Yahoo Finance)
探索相关项目
加载中…