Open pverspeelt opened 2 years ago
Thanks for your thoughts! I didn't know about rtsplot
. That looks interesting!
My preference is that this package stay focused on importing data only. I'd like to rework TTR and the charting too, and agree those should be in separate packages.
We used the chart_Series()
code in plot.xts()
, with the intent to then use plot.xts()
in the chart_Series()
code. So my initial plan was to use plot.xts()
as the underlying engine for a chart_Series()
reboot. But I would like to expose the par()
functionality using more user-friendly arguments/parameters.
plot.xts()
, but is not specific to financial time series.
Is plotting going to be part of this? At the moment you can plot ohlc data with quantmod via
chartSeries
orchart_Series
. You could usertsplot
(underappreciated by many as it uses base plotting), ggplot2 after transforming the data to a data.frame either byfortify.zoo
ortimetk::tk_tbl
or using tidyquant / yfR / getBatchSymbols. Plotting in ggplot2 either via usinggeom_barchart
orgeom_candlestick
from tidyquant, And I'm probably forgetting a few.But the challenge is plotting and using the TTR info. The help with rtsplot shows how to use the RSI and some MA functions, but this is extendible to use the other info with a bit of programming. tidyquant's functions allow only for Bolinger Bands and the set of MA's.
chart_Series
has all or at least most of them available but is not documented at all.Personally I tend to switch between
chart_Series
andggplot
depending on what I'm doing but I always miss functionalities either by missing out on TTR functions in ggplot, or by not being able to quickly compare plots like I can do with ggplot.Basically a direction I would like to see is one of the following:
add_RSI()
inchart_Series
. Though ggplot2 and adding subplots is not straightforward. But by using patchwork that should be possible.