musiclicn / deep_finance Goto Github PK
View Code? Open in Web Editor NEWapply deep learning/ neural network to analysis stock price
apply deep learning/ neural network to analysis stock price
Upper shadow, body including color, lower shadow
df_sub = df[['close', 'cur_lable']]
df_sub = df_sub.dropna()
126 day change% as input
change% in 10 class as output
Bi looks strange in some cases, for example at the end of this QCOM example, the gap down has one up bar, which break the definition of down Bi because it does not have 3 consecutive down bar.
One proposed solution to this is add one more case which confirms a Bi, in 5 consecutive bars, if 4 out 5 are same trend, this confirms a Bi.
https://drive.google.com/file/d/0B4wqpXzYVibXV2dpcWJXOVNWUTA/view?usp=sharing
to run export_png
conda install -c bokeh selenium
conda install phantomjs
input:
state: past N days prices including OHLC, 5 MA, 10 MA, 20 MA, 50 MA and 200 MA (including position)
dollar amount
action: NA (no action), buy 1/3, buy 2/3, buy all, sell 1/3, sell 2/3, sell all
reward: discounted future 5 day PNL
Notes:
use CNN for policy function/ network without pooling
Reader is quite slow. Try construct x, y pair from iterate through rows instead of using Dataframe range slicing.
use dates out side of dates used in training data
create separate folder for validation data and construct Reader from this folder
http://dataaspirant.com/2015/04/11/five-most-popular-similarity-measures-implementation-in-python/
How to deal with zoom in, zoom out?
apply LSTM according to tensorflow ptb example
input seq: past prices including OHLC
output seq: future prices mostly close prices
try to convert OHLC candlestick bar into some meaningful vector similar to word2vec
Chan bi diff of start time, end time and slope.
Gravity 0
Basic concepts:
gravity = (high + low)/2
log change = log( price t/ price t-1)
Features:
log change of gravity
if is bar3 of fenxin, shape of fenxin- sum of previous three gravity log change
days of current trend
accumulated strength of current trend- sum log change of gravity belong to this trend
previous opposite trend strength, days
previous same trend strength, days
Target:
gravity direction (Up or Down)
pick best perform stock(s) in certain period time
DXY, CDX
crude, weather
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.