Closed peterccarl closed 8 years ago
This may reopen the conversation about moving the OHLC functionality 'upstream' from quantmod to TTR.
This pull request can't be merged as is, because quantmod requires TTR, so this creates a circular dependency.
Also, CRAN only wants you to check and require another package if that package is in Suggests. otherwise they want you to have either put it in Requires or Imports
Sorry, I'll remove those lines since they are unnecessary if the function is in ttr. Good catch.
postscript: just to be clear, this shouldn't reopen the conversation about OHLC functionality...
On Apr 7, 2016 6:59 AM, "Brian G. Peterson" notifications@github.com wrote:
This may reopen the conversation about moving the OHLC functionality 'upstream' from quantmod to TTR.
This pull request can't be merged as is, because quantmod requires TTR, so this creates a circular dependency.
Also, CRAN only wants you to check and require another package if that package is in Suggests. otherwise they want you to have either put it in Requires or Imports
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/joshuaulrich/TTR/pull/26#issuecomment-206834816
Some other items:
...
are not passed to ATR
as documented.try.xts
/ reclass
paradigm should be used so all time series classes will be supported. See other functions for examples.lag.xts
should be called explicitly in case try.xts
fails and HLC
is a matrix.Fixed, thanks for the pointers.
reclass
isn't called before return
and quantmod::Cl
still creates a circular dependency.
Ok, I missed the real circularity you were referring to. I've removed it.
Merged via 990da831c44785fb3043936597cc0fae4cd42444.
Here's a function for examining trendiness over a timeframe using ATR as a proxy for volatility. I think this fits the package, but let me know if you think it goes elsewhere. pcc