Skip to content
Prev 14248 / 15274 Next

Quantstrat - extracting current symbol

Hi Brian,

Thanks for the quick reply!
I was aware of the instrument objects, I just did not know there were the
instrument_attr(), instrument.table() functions. This solves the need for
external meta info dataframe, which is extremely convinient.
The best way to get the attribute then, would be to call
'getInstrument(symbol)$newAttribute'?

About add.indicator - I did a poor job explaining what I was trying to
achieve, but it's exactly what you're saying. I will create a new indicator
function, which will get some metadata from the instrument and all of that
will be handled inside the indicator function, there is no need to pass it
as a parameter to the add.indicator function.

Thanks again!
Oskar

2017-05-12 11:16 GMT+02:00 Brian G. Peterson <brian at braverock.com>: