Re: Quantstrat - extracting current symbol

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: Quantstrat - extracting current symbol

James Hirschorn-3
This issue has already been discussed in the thread, but leaves
the question of how to access the symbol from the add.indicator indicator
function (i.e. the name argument) unanswered.

I found a working solution here: But symbol <- parent.frame(n =
2)$symbol is obviously a kludge. I couldn't figure out how to extract the
current symbol using the ... argument either. A simple solution would be to
add a symbol argument to applyIndicators and then have applyStrategy pass
in symbol when it calls applyIndicators.

I wanted to check here if I am missing something before submitting a
feature request/bug report to github?

James Hirschorn, Ph.D.
*Quantitative Technologies*
Toronto, Canada

        [[alternative HTML version deleted]]

[hidden email] mailing list
-- 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.