Add Technical Indicator to Chart
TA.RdFunctions 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.
General TA charting tool functions:
addTA: add data as custom indicatordropTA: remove technical indicatormoveTA: move a technical indicatorswapTA: swap two technical indicators
Current technical indicators include:
addADX: add Welles Wilder's Directional Movement IndicatoraddATR: add Average True RangeaddAroon: add Aroon IndicatoraddAroonOsc: add Aroon OscillatoraddBBands: add Bollinger BandsaddCCI: add Commodity Channel IndexaddCMF: add Chaiken Money FlowaddChAD: add Chaiken Accumulation Distribution LineaddChVol: add Chaiken VolatilityaddCMO: add Chande Momentum OscillatoraddDEMA: add Double Exponential Moving AverageaddDPO: add Detrended Price OscillatoraddEMA: add Exponential Moving AverageaddEMV: add Arm's Ease of MovementaddEnvelope: add Moving Average EnvelopeaddEVWMA: add Exponential Volume Weighted Moving AverageaddExpiry: add options or futures expiration linesaddKST: add Know Sure ThingaddLines: add line(s)addMACD: add Moving Average Convergence DivergenceaddMFI: add Money Flow IndexaddMomentum: add MomentumaddOBV: add On-Balance VolumeaddPoints: add point(s)addROC: add Rate of ChangeaddRSI: add Relative Strength IndicatoraddSAR: add Parabolic SARaddSMA: add Simple Moving AverageaddSMI: add Stochastic Momentum IndexaddTDI: add Trend Direction IndexaddTRIX: add Triple Smoothed Exponential OscillatoraddVo: add Volume (if available)addVolatility: add volatilityaddWMA: add Weighted Moving AverageaddWPR: add Williams Percent RaddZigZag: add Zig ZagaddZLEMA: 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.
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.