4 Star 3 Fork 2

Likelihood-Lab/GAN-IndexFuture

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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.

空文件

简介

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. 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 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