Skip to content
Prev 14297 / 15274 Next

Adding "Stoploss disabled" to the parameter distribution for apply.paramset

On Fri, 2017-05-26 at 10:34 +0000, Atakan Okan wrote:
paramsets are designed for *parameters*.

So they aren't really designed for enabling or disabling rules.  That
said, in theory you can change any element of the specification.

Something like this might work (untested, I have a meeting to run to),
please report back:

assume your rule is labeled 'my.stop'


add.distribution( strategy=strategy.st
                , paramset.label='stop.onoff'
                , component.type='exit'
                , component.label='my.stop'
                , variable = list(enabled = c(TRUE,FALSE))
                , label = 'onoff.test'
                )


Please let us know, and if this doesn't work, maybe create a really
minimal example and we'll look more closely.

Regards,

Brian