Coder Social home page Coder Social logo

deep_finance's People

Contributors

musiclicn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

satroan jemmy655

deep_finance's Issues

try lstm

  • 126 day change% as input

  • change% in 10 class as output

refactor datasource folder

  1. leave utils for downloading data in datasource
  2. move process_bar.py, process_yahoo_data.py, generate_training_data.py to model folder
  3. create folder for each model

bokeh

to run export_png
conda install -c bokeh selenium
conda install phantomjs

apply deep Q network on stock candlestick and MA

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

improve Reader performance

Reader is quite slow. Try construct x, y pair from iterate through rows instead of using Dataframe range slicing.

apply seq2seq

input seq: past prices including OHLC
output seq: future prices mostly close prices

Chan Gravity 0

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.