| TA {quantmod} | R Documentation |
Add Technical Indicator to Chart
Description
Functions to add technical indicators to a chart.
Details
The general mechanism to add technical analysis studies or overlays
to a financial chart created with chartSeries.
Functionality marked with a ‘*’ is via the TTR package.
General TA charting tool functions:
- addTA
- add data as custom indicator
- dropTA
- remove technical indicator
- moveTA
- move a technical indicator
- swapTA
- swap two technical indicators
Current technical indicators include:
- addADX
- add Welles Wilder's Directional Movement Indicator*
- addATR
- add Average True Range *
- addBBands:
- add Bollinger Bands *
- addCCI
- add Commodity Channel Index *
- addCMF
- add Chaiken Money Flow *
- addCMO
- add Chande Momentum Oscillator *
- addDEMA
- add Double Exponential Moving Average *
- addDPO
- add Detrended Price Oscillator *
- addEMA
- add Exponential Moving Average *
- addEnvelope
- add Moving Average Envelope
- addEVWMA
- add Exponential Volume Weighted Moving Average *
- addExpiry
- add options or futures expiration lines
- addLines
- add line(s)
- addMACD:
- add Moving Average Convergence Divergence *
- addMomentum
- add Momentum *
- addPoints
- add point(s)
- addROC:
- add Rate of Change *
- addRSI
- add Relative Strength Indicator *
- addSAR
- add Parabolic SAR *
- addSMA
- add Simple Moving Average *
- addSMI
- add Stochastic Momentum Index *
- addTRIX
- add Triple Smoothed Exponential Oscillator *
- addVo:
- add Volume if available
- addWMA
- add Weighted Moving Average *
- addWPR
- add Williams Percent R *
- addZLEMA
- add ZLEMA *
See the individual functions for specific implementation and argument details. Details
of the underlying TTR implementations can be found in TTR.
The primary changes between the add*** version of an indicator and the
TTR base function is the absense of the data argument in the former.
Notable additions include on, with.col and overlay (deprecated).
Value
Called for its side effects, an object to class chobTA
will be returned invisibly. If called from the R command line
the method will draw the appropriate indicator on the current chart.
Note
Calling any of the above methods from within a function or script
will generally require them to be wrapped in a plot call
as they rely on the context of the call to initiate the actual
charting addition.
Author(s)
Jeffrey A. Ryan
References
Josh Ulrich - TTR package
[Package
quantmod version 0.3-6
Index]