Git Product home page Git Product logo

fund-strategy's Introduction

基金投资策略分析

GitHub Repo stars GitHub forks Website

无需数据库,通过 jsonp 借用基金网站的数据接口,根据历史数据,通过图表展示效果。

对历史的各个时间点,符合一定的条件时,进行某些投资策略,包括定投,止盈,补仓等投资操作,最后进行投资策略成果分析,通过图表展示效果。

在线访问地址:http://sunshowerc.github.io/fund/

由于用 github page 白嫖的,有墙,打不开就多刷新几次。

内容列表

背景

很多人都在鼓吹指数定投,微笑曲线,巴菲特鼎力推荐blabla,但割韭菜的大V太多,很容易被带节奏。

网上也有定投计算器,但往往只有一个结果,没有过程,不够得劲。

数据不会说谎,用数据说话是程序员的浪漫。

基于这个模型,也可以简单拓展成股票的交易模型,不过基于本人对炒股不是很熟,所以大家有兴趣的可以自行 fork 改造。

安装与运行

方式一

需要 node 开发环境

  • npm
  • node
npm install

运行命令

npm start

方式二

使用docker运行项目

在项目路径下运行以下命令构建项目的docker镜像

docker build -t fund_strategy .

镜像构建完毕后运行

docker run -dp 8000:8000 fund_strategy --name="fund_strategy_instance"

等待项目启动过程中,可通过以下命令查看启动日志:

docker log -f fund_strategy_instance

启动后,可通过http://locahost:8000访问网页

使用说明

这是个开源的静态 web 仓库,无任何其他依赖。

开箱即用,可在线访问

基础回测功能

  1. 输入你想要回测的基金,可以直接输入搜索。
  2. 设置定投策略
  3. 【可选】设置止盈策略
  4. 【可选】设置补仓策略
  5. 点击查询 image

策略对比

  1. 保存两条及以上搜索条件

  2. 点击策略对比 image

  3. 将打开策略对比页, 勾选需要对比的策略条件,查询得到结果 image

感谢

  • 感谢诸位的 star 👍 ,祝大家基金暴涨,早日财富自由。
  • 感谢某基金网站提供白嫖数据的接口。

fund-strategy's People

Contributors

dependabot[bot] avatar sunshowerc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fund-strategy's Issues

经常查询失败

基金编号:310388
时间范围:2016-3-1 ~ 2017-3-2

基金编号:001312
时间范围:2019-9-10 ~ 2020-3-2
...

查询失败 ,右上角显示range[1] should not less than range[0]
出现这种情况的不止这两个,很多都无法查询,希望修复

可否加入策略排名随着时间的变化

当比较的策略较多时,曲线都交织在一起,不太能获得很好的信息。
当我们把鼠标移动到曲线上的点,显示的信息是经过排序的结果,这样会不会好一些。
捕获
**

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.