Skip to content

lizhicq/QuantDev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Quantitative Strategy for Personal Trading

Simplified Quantopian System, locally download data, building strategy, bask testing, paper trading

Data Source

Data is imported from yahoo finance, I wrapped sp500 stocks from 2000-01-01 to 2018-08-08. You're free to add more stocks using the template. I personally add TSLA, YHOO, BABA.

I used mysql to manage the stocks daily data and provide table to create/insert/update query for reference. It is easy to migrate the data with mysql.

Later, when I introduce the text analysis model, I may use mongo db to manager the text data I wrapped from the web.

Example,

Here is an example, I use sklearn template to make this sample. Using the close price - open price as input, find their kernals and try to cluster those stocks with similiar change pattern.

alt text

Install

This project requires Python 2.7 and the following Python libraries installed:

Main References

  1. Gareth James • Daniela Witten • Trevor Hastie • Robert Tibshirani, An Introduction to Statistical Learning, 4th Edition.
  2. CHAN, N. T.; SHELTON, C. An electronic market-maker. 2001.

License

The contents of this repository are covered under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published