[R-SIG-Finance] Empty indicator / plot.window: need finite 'ylim' values

Joshua Ulrich jo@h@m@u|r|ch @end|ng |rom gm@||@com
Mon Aug 17 19:37:42 CEST 2020


On Mon, Aug 17, 2020 at 12:33 PM Daniel Cegiełka
<daniel.cegielka using gmail.com> wrote:
>
>
>
> > On 17 Aug 2020, at 04:55, Rasmus Liland <jral using posteo.no> wrote:
> >
> > Dear Mike,
> >
> > if I change this line
> >
> >       plot (chart_Series (sample.xts[,1], subset=subset, TA=ta))
> >
> > to
> >
> >       plot(chart_Series(sample.xts[subset,1], TA=ta))
> >
> > A plot appears.  No errors.  Was this
> > what you were looking for?
> >
>
>
> Guys :)
>
> chart_Series() is a plot env/func, so plot(chart_Series()) make no sense :)
>
Except that it is necessary to wrap chart_Series() in a call to plot()
if you call it from within a function, for loop, or any other
situation where R's auto-printing is disabled.

Cheers,
Josh


>
> Try:
>
> chart_Series(sample.xts[subset,1], TA=ta)
>
> ?chart_Series
>
> But your problem is here:
>
> sample.xts[subset, 2]
>
>
> Best,
> Daniel
>
>
>
>
> > /Rasmus
> > _______________________________________________
> > R-SIG-Finance using r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> > -- Subscriber-posting only. If you want to post, subscribe first.
> > -- Also note that this is not the r-help list where general R questions should go.
>
> _______________________________________________
> R-SIG-Finance using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com



More information about the R-SIG-Finance mailing list