Hello,
I've updated to the latest quanstrat, and still get an error using
apply.paramset.signal.analysis:
Error in post.signal.returns(signals = .sig.list[[name.ref]][,
paste(symbols[j], :
number of items to replace is not a multiple of replacement length
applyStrategy works, apply.paramset works, however I can't get the signal
portion working and was wondering if anyone knew what the error was.
When I run debug, the problem occurs in *post.signal.returns*, on the final
signal.ret[j,] = tryCatch, where the tryCatch returns an xts object with 5
rows, and it wants to update signal.ret[j,] which is length 6.
Any feedback would be greatly appreciated. Thanks for your help.
Here's my sessionInfo():
####
Hi Erol,
On Mon, Aug 1, 2016 at 7:18 PM, Erol Biceroglu
<erol.biceroglu at alumni.utoronto.ca> wrote:
Hello,
I've updated to the latest quanstrat, and still get an error using
apply.paramset.signal.analysis:
Error in post.signal.returns(signals = .sig.list[[name.ref]][,
paste(symbols[j], :
number of items to replace is not a multiple of replacement length
applyStrategy works, apply.paramset works, however I can't get the signal
portion working and was wondering if anyone knew what the error was.
When I run debug, the problem occurs in *post.signal.returns*, on the final
signal.ret[j,] = tryCatch, where the tryCatch returns an xts object with 5
rows, and it wants to update signal.ret[j,] which is length 6.
Thanks for the reproducible example. This looks like a bug when
include.day.of.signal = TRUE. I'll investigate.
Any feedback would be greatly appreciated. Thanks for your help.
Here's my sessionInfo():
####
_______________________________________________
R-SIG-Finance at 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.
On Tue, Aug 2, 2016 at 5:27 PM, Joshua Ulrich <josh.m.ulrich at gmail.com> wrote:
Hi Erol,
On Mon, Aug 1, 2016 at 7:18 PM, Erol Biceroglu
<erol.biceroglu at alumni.utoronto.ca> wrote:
Hello,
I've updated to the latest quanstrat, and still get an error using
apply.paramset.signal.analysis:
Error in post.signal.returns(signals = .sig.list[[name.ref]][,
paste(symbols[j], :
number of items to replace is not a multiple of replacement length
applyStrategy works, apply.paramset works, however I can't get the signal
portion working and was wondering if anyone knew what the error was.
When I run debug, the problem occurs in *post.signal.returns*, on the final
signal.ret[j,] = tryCatch, where the tryCatch returns an xts object with 5
rows, and it wants to update signal.ret[j,] which is length 6.
Thanks for the reproducible example. This looks like a bug when
include.day.of.signal = TRUE. I'll investigate.
Thanks for the report. This should now be fixed in quantstrat on GitHub.
Please note that your call to apply.paramset.signal.analysis does not
have a value for the obj.fun argument, which is required. You can add
obj.fun = signal.obj.slope as an example.
Any feedback would be greatly appreciated. Thanks for your help.
Here's my sessionInfo():
####
_______________________________________________
R-SIG-Finance at 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.
Thank you Joshua for the quick response, and for pointing out the missing
objective function, it works great now.
Erol Biceroglu
*erol.biceroglu at alumni.utoronto.ca
<erol.biceroglu at alumni.utoronto.ca>416-275-7970*
On Tue, Aug 2, 2016 at 8:07 PM, Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:
On Tue, Aug 2, 2016 at 5:27 PM, Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:
Hi Erol,
On Mon, Aug 1, 2016 at 7:18 PM, Erol Biceroglu
<erol.biceroglu at alumni.utoronto.ca> wrote:
Hello,
I've updated to the latest quanstrat, and still get an error using
apply.paramset.signal.analysis:
Error in post.signal.returns(signals = .sig.list[[name.ref]][,
paste(symbols[j], :
number of items to replace is not a multiple of replacement length
applyStrategy works, apply.paramset works, however I can't get the
signal
portion working and was wondering if anyone knew what the error was.
When I run debug, the problem occurs in *post.signal.returns*, on the
final
signal.ret[j,] = tryCatch, where the tryCatch returns an xts object
with 5
rows, and it wants to update signal.ret[j,] which is length 6.
Thanks for the reproducible example. This looks like a bug when
include.day.of.signal = TRUE. I'll investigate.
Thanks for the report. This should now be fixed in quantstrat on GitHub.
Please note that your call to apply.paramset.signal.analysis does not
have a value for the obj.fun argument, which is required. You can add
obj.fun = signal.obj.slope as an example.
Any feedback would be greatly appreciated. Thanks for your help.
Here's my sessionInfo():
####
_______________________________________________
R-SIG-Finance at 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