All Projects → wbbhcb → Stock_market

wbbhcb / Stock_market

Projects that are alternatives of or similar to Stock market

Tensorflow hmm
A tensorflow implementation of an HMM layer
Stars: ✭ 283 (-1.05%)
Mutual labels:  jupyter-notebook
Cdan
Code release for "Conditional Adversarial Domain Adaptation" (NIPS 2018)
Stars: ✭ 285 (-0.35%)
Mutual labels:  jupyter-notebook
Google Research
Google Research
Stars: ✭ 20,927 (+7217.13%)
Mutual labels:  jupyter-notebook
Powerai Counting Cars
Run a Jupyter Notebook to detect, track, and count cars in a video using Maximo Visual Insights (formerly PowerAI Vision) and OpenCV
Stars: ✭ 282 (-1.4%)
Mutual labels:  jupyter-notebook
Gcn clustering
Code for CVPR'19 paper Linkage-based Face Clustering via GCN
Stars: ✭ 283 (-1.05%)
Mutual labels:  jupyter-notebook
Brunel
Brunel Visualization
Stars: ✭ 285 (-0.35%)
Mutual labels:  jupyter-notebook
Tehran Stocks
A python package to access tsetmc data
Stars: ✭ 282 (-1.4%)
Mutual labels:  jupyter-notebook
Google Drive Online Decompression
使用Google Colab对Google Drive里面的压缩包进行操作,支持7z和rar以及zip等格式,引擎采用unrar和unzip以及7z
Stars: ✭ 288 (+0.7%)
Mutual labels:  jupyter-notebook
Tensorflow Tensorrt
This repository is for my YT video series about optimizing a Tensorflow deep learning model using TensorRT. We demonstrate optimizing LeNet-like model and YOLOv3 model, and get 3.7x and 1.5x faster for the former and the latter, respectively, compared to the original models.
Stars: ✭ 284 (-0.7%)
Mutual labels:  jupyter-notebook
Reinforcement Learning
Implementation of Reinforcement Learning Algorithms. Python, OpenAI Gym, Tensorflow. Exercises and Solutions to accompany Sutton's Book and David Silver's course.
Stars: ✭ 17,453 (+6002.45%)
Mutual labels:  jupyter-notebook
Scipy 2017 Sklearn
Scipy 2017 scikit-learn tutorial by Alex Gramfort and Andreas Mueller
Stars: ✭ 284 (-0.7%)
Mutual labels:  jupyter-notebook
Pyconuk Introtutorial
practical introduction to pandas and scikit-learn via Kaggle problems - Sept 2014
Stars: ✭ 284 (-0.7%)
Mutual labels:  jupyter-notebook
Building Machine Learning Pipelines
Code repository for the O'Reilly publication "Building Machine Learning Pipelines" by Hannes Hapke & Catherine Nelson
Stars: ✭ 284 (-0.7%)
Mutual labels:  jupyter-notebook
Bert Toxic Comments Multilabel
Multilabel classification for Toxic comments challenge using Bert
Stars: ✭ 284 (-0.7%)
Mutual labels:  jupyter-notebook
Styleclip
Stars: ✭ 285 (-0.35%)
Mutual labels:  jupyter-notebook
Machine Learning Notebooks
Stanford Machine Learning course exercises implemented with scikit-learn
Stars: ✭ 282 (-1.4%)
Mutual labels:  jupyter-notebook
Dinoruntutorial
Accompanying code for Paperspace tutorial "Build an AI to play Dino Run"
Stars: ✭ 285 (-0.35%)
Mutual labels:  jupyter-notebook
Fire Detect Yolov4
fire-smoke-detection-dataset and fire-detection-yolov4-v5,火灾检测,烟雾检测
Stars: ✭ 280 (-2.1%)
Mutual labels:  jupyter-notebook
Covid Qa
API & Webapp to answer questions about COVID-19. Using NLP (Question Answering) and trusted data sources.
Stars: ✭ 283 (-1.05%)
Mutual labels:  jupyter-notebook
100 Days Of Ml Code
100-Days-Of-ML-Code中文版
Stars: ✭ 16,797 (+5773.08%)
Mutual labels:  jupyter-notebook

stock_market

注意1:在运行选股策略时(ipyn文件),可能会出现内存不够的情况,本人电脑是有40个G,所以没有考虑这些问题。如果电脑内存不够,可以考虑去掉一些行业,或者在数据读取的时候就剔除一些不需要的时间(如提出2017年之前的数据),或者选择任意300支股等(总共有2800多支股票)。

注意2:如若因权限原因无法获取tushare数据,可以关注公众号(公众号在末尾),在公众号后台回复“数据获取”,即可获取数据。

代码说明

数据下载、更新及一些处理

DataDowload.py:股票数据下载

RefreshData.py:股票数据更新

CountLimit.py:统计每日涨停数与跌停数,并存入limit.csv中

账户类

Account.py:账户类用于回测使用

策略代码

短期选股策略1.ipyb: 训练模型及回测程序,具体可以看 (公众号第三篇文章)

https://mp.weixin.qq.com/s/LLE3Oe8x13BdAqjCs4Geqw

短期选股策略2.ipyb: 训练模型及回测程序,具体可以看 (公众号第五篇文章)

https://mp.weixin.qq.com/s/drVANZjUhtltD9rsFNb0ZA

中线股选股策略1.ipyb:训练模型及回测程序,具体可以看 (公众号第六篇文章)

https://mp.weixin.qq.com/s/L0p2Z71vorV39qSucQIlFg

超级简单的仓位设置策略.ipynb:超级简单的仓位设置策略,具体可以看

https://mp.weixin.qq.com/s/WOpFs5Tkd7RP0sIZq1JEmg

仓位设置策略2.ipynb:

https://mp.weixin.qq.com/s/WoZG3iO52o-6VWv0RfDlMw

其他代码

Draw.py: 绘图程序,绘制股票涨跌图等 MakeLabel.py:制作训练集标签

运行顺序

短期选股策略1: DataDowload.py->短期选股策略1.ipynb

短期选股策略2: DataDowload.py->CountLimit.py->短期选股策略2.ipynb

中线股选股策略1: DataDowload.py->CountLimit.py->MakeLabel.py->中线股选股策略1.ipynb

结语

如果觉得代码帮助很大,希望给个星,谢谢支持!!!

如果对个人在量化上的研究感兴趣可以关注个人公众号(公众号上有个人对代码的讲解),不定期分享一些研究情况.

公众号:Gambler_Evolution

image

个人知乎:https://www.zhihu.com/people/e-zhe-shi-wo/activities

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].