GithubHelp home page GithubHelp logo

beatrader's People

Contributors

c3h3 avatar dboyliao avatar everdark avatar kuiming avatar leoluyi avatar mnasia1 avatar whizzalan avatar wush978 avatar

Stargazers

 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

beatrader's Issues

library(RMySQL)不在wush寫的套件清單中

wush 的套件清單在 docker 上可以裝,然後執行 mn 的code ok,quantmod_101 的 code 會用到 library(RMySQL) 但是 wush 的清單沒有 RMySQL 套件,建議全部改成 sqlite ?!

Example2_TTR.R L43

如果繞過 #31 , 會發生這個bug:

> getSymbols("^VIX")
[1] "VIX"
> Xt <- VIX
> BBands(Xt)
Error in BBands(Xt) : 
  Price series must be either High-Low-Close, or Close/univariate.

Example1.R line 93

dbWriteTable(con, "TWII", Stock_Data_DF ,row.names=FALSE,append=TRUE)

這裡有需要讓學員寫資料進去嗎, 可能會影響後面 query 的速度

downloadTaifex.R L37 on windows unzip failed

> rptFiles = apply(dnFilesDF,1,function(xx){
+   do.call(download.file,as.list(xx))
+   unzip(xx[2], exdir = sprintf("./%s/",TAIFEX_RPT_DIR))
+ })
trying URL 'http://www.taifex.com.tw/Dailydownload_eng/Daily_2015_11_13.zip'
Content type 'application/x-zip-compressed' length 540193 bytes (527 KB)
downloaded 527 KB

 Show Traceback

 Rerun with Debug
 Error in unzip(xx[2], exdir = sprintf("./%s/", TAIFEX_RPT_DIR)) : 
  'exdir' does not exist

Example1.R L22

這段會出錯

Xt = getSymbols("2330.TW",auto.assign = F)
chartSeries(Xt)

getSymbols丟回一個字串,而不是該series

> Xt = getSymbols("2330.TW",auto.assign = F)
Warning messages:
1: In if (auto.assign) assign(Symbols[[i]], fr, env) :
  條件的長度 > 1,因此只能用其第一元素
2: In if (auto.assign) return(Symbols) :
  條件的長度 > 1,因此只能用其第一元素
3: In if (!auto.assign) return(symbols.returned) :
  條件的長度 > 1,因此只能用其第一元素
4: In if (auto.assign) { : 條件的長度 > 1,因此只能用其第一元素
> Xt
[1] "2330.TW"

downloadTaifex.R

line 98:

df = dbGetQuery(conn,sprintf("select time, price, volume from FutureTByT where pcode = 'TX' and exMW = '201511'", dataDate))

Error in sqliteSendQuery(con, statement, bind.data) :
error in statement: no such table: FutureTByT

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.