Code Monkey home page Code Monkey logo

finance's Introduction

說明

  • 每日一鍵更新股價資訊
  • 依不停損投資模型計算出當日關鍵參數,並顯示投資操作方法。
  • 本程式並無自動下單功能,請到進出場指示時,請在第二天開盤時自行下單。
  • 不停損投資模型為一個攤平加碼的策略,在不清楚投資策略前,請勿跟著程式下單。
  • 如對你有幫助,請隨喜做公益

image

程式環境

  • python3

教學影片

https://youtu.be/VwnJr3pYYgc

策略概念

  1. 其實你什麼都不會,你也什麼都不知道
  2. 股價是一個波動的狀態,漲多會拉回,跌深會反彈
  3. 挑選你確定不會倒掉的股票。例如 0050, 0056
  4. 每日執行,遵守紀律

攤平方式:持有數量多少,就買多少

買入張數 總持有數
1 1
1 2
2 4
4 8
8 16
16 32

使用方式:

設定要追蹤的股票代號

使用文字編輯器修改檔案 config_stock_tw.py

執行程式

python 00-test_台股_update.py  #到證交所更新目前最新的股價
python 00-test_台股_不停損投資模型.py  #輸出投資的操作方法,比如應該要買,應該要賣,還是不動作

其他

其他功能目前比較少用,有空再寫文件。

finance's People

Contributors

jonsonchang avatar gitmich avatar dependabot[bot] avatar nonetw 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.