
Last chance! 50% off unlimited learning
Sale ends in
Used to manage the TA arguments used inside chartSeries
calls.
setTA(type = c("chartSeries", "barChart", "candleChart"))listTA(dev)
Called for its side-effect of setting the default TA arguments to quantmod's charting functions.
the function to apply defaults TAs to
the device to display TA arguments for
Jeffrey A. Ryan
setTA
and unsetTA
provide a simple
way to reuse the same TA arguments for multiple
charts. By default all charting functions will be
set to use the current chart's defaults.
It is important to note that the current device will be used to extract the list of TA arguments to apply. This is done with a call to listTA internally, and followed by calls to setDefaults of the appropriate functions.
An additional way to set default TA arguments for subsequent
charts is via setDefaults
. See the examples.
chartSeries
,
addTA
if (FALSE) {
listTA()
setTA()
# a longer way to accomplish the same
setDefaults(chartSeries,TA=listTA())
setDefaults(barCart,TA=listTA())
setDefaults(candleChart,TA=listTA())
setDefaults(chartSeries,TA=substitute(c(addVo(),addBBands())))
}
Run the code above in your browser using DataLab