Coder Social home page Coder Social logo

auto_sale_stock's Introduction

auto_sale_stock

###ABOUT 自动计算'新浪财经'1的过往数据,随机挑取50个股票的随机时间的数据叠加计算

###算法 底线为当前价格的96%,股价上升时提升底线,下降如触碰底线则卖出。 初始本金 = 1
卖出一只股票后本金 = 买入前本金 * (抛售价 / 买入价)
最终本金 = 50只股票卖出后的结果

###OUTPUT

  1. 股票链接
  2. 股票名称
  3. 买入价
  4. 卖出后的(抛售价 / 买入价)
  5. 当前的盈亏

screenshot

Footnotes

  1. 'http://money.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/%d.phtml?year=%d&jidu=%d'%(gupiaoNum,startYear,startSeason)

auto_sale_stock's People

Contributors

maclai 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.