Git Product home page Git Product logo

stock_model_test's Introduction

Stock_Model_Test

Test RandomForest On Stocks

  1. Precision are more important.

    I need to find only a few stocks with positive perspectives. More stocks are meaningless because I cannot buy too many. However, negative stocks (result in loss) should be strongly avoided.

    The worst situation, is I didn't buy any stock, which means I have no gain no loss on that day.

  2. use Random Forest as the predicting model

    Why random Forest?

  • it is easy to implement and use in R, which is current language used in this project.
  • do not need feature selection.
  • its principal is quite suitable to stock modeling:
  1. decision based algorithm is easy and intuitive to understand; no black box.
  2. each day the stock may have different traits, the model can be built based on each day's data, respectively.
  3. consensus modeling is a good way to find the strongest candidates.
  1. How to define the dataset?
  1. Raw data need to be updated every time the model was constructed; -- data_retrieve()
    The raw data is overwriten in data/data_newest.RData.
    Historical file does not need to be kept.

  2. However, only missing days are needed to be updated; -- dataset_generating()

Three types of data need to be generated:
(1) Raw data (the closing price of each stock in previous n Days) (2) Basic statistics of Raw data -- get_rawdata_index(rawdata) (3) Stock Indexing (measured by quantmod functions)

stock_model_test's People

Contributors

seldas avatar

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.