4 Star 3 Fork 2

Likelihood-Lab/GAN-IndexFuture

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
Econtech 提交于 2019-08-26 18:24 . change readme file

GAN-IndexFuture

Generation of One-minute Charts for Day Trading by Generative Adversarial Nets

Introduction

Many machine learning techniques such as deep learning models need tons of data to train but in reality the financial data are limited and then restrain the power of models. Further, many investment funds need more new data to test their trading strategies and overcome overfitting problems. In the past, many time series models like ARIMA and GARCH can generate new data , but these mehtods rely on strong model assumption. In comparison, we try to implement the state-of-art GANs method, which is a game-thoery based unsupervised learning model, to generate new financial data.

Main contributions

In this project, we tried to implement several GANs techniques to simulate open, high, low, and close price of three share price index futures in China and generate one-minute charts for day trading (240 minutes a day since 2016-01-01). Our main network structures are DCGANs, and we restructure the raw dataset using a log-return trick, which is essential for GANs to learning continuous time series features.

Dataset

The three datasets below are provided by likelihood lab, which is a non-profit AI research lab.

  1. IF targets on CSI 300 Index and starts trading since 2010-04-16.
  2. IH targets on SSE 50 index and starts trading since 2015-04-16.
  3. IC targets on CSI 500 index and starts trading since 2015-04-16.

Code implementation process

  1. preprocess.py read raw data (CSV files) and transform it into npy files to speed up training.
  2. data_loader.py load the transformed data into model.
  3. visualization.py and laplotter.py are responsible for data visualization such as Candlestick charts and loss plots.
  4. gan.py train a DCGANs to learn the data distribution of our dataset and generate new data.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/likelihoodlab/GAN-IndexFuture.git
git@gitee.com:likelihoodlab/GAN-IndexFuture.git
likelihoodlab
GAN-IndexFuture
GAN-IndexFuture
anqi

搜索帮助

A270a887 8829481 3d7a4017 8829481