Skip to content

Add.Distribution on signal "BBands" ?

6 messages · Peter Neumaier, Joshua Ulrich

#
Hi everyone,

I have created a signal based on BBands with

add.indicator(strat.st, name = "BBands",
  arguments = list(HLC = quote(HLC(mktdata)), maType='SMA'), label='BBands')

and passing my BBand parameters with:
out <- applyStrategy(strat.st, "opt",parameters=list(sd=1,n=20))

I have not found any documentation online on how to optimise
SD and N (when called with applystrategy). Is it possible at all or
am I going the wrong direction?


Many Thanks
Peter
#
On Wed, Mar 9, 2016 at 6:47 AM, Peter Neumaier <peter.neumaier at gmail.com> wrote:
See the demo:
R> demo("bbandParameters", package="quantstrat")

  
    
#
Josh thanks for your lighting fast answer and it works pretty good!

Just one newbie question: why does the BBand simulation run without
the parallel package and without initialization for doParallel() ?

Thanks
Peter

On Wed, Mar 9, 2016 at 12:50 PM, Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:

  
  
#
On Wed, Mar 9, 2016 at 7:58 AM, Peter Neumaier <peter.neumaier at gmail.com> wrote:
Because it's not strictly necessary and is a potential complication.
Look at the source file for the demo, and you'll see comments about
how to run it in parallel.

  
    
#
So in theory I could run any optimisation without parallel?

On Wed, Mar 9, 2016 at 2:00 PM, Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:

  
  
#
Yes.
On Wed, Mar 9, 2016 at 8:08 AM, Peter Neumaier <peter.neumaier at gmail.com> wrote: