EVOLUTION-MANAGER
Edit File: TA.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Add Technical Indicator to Chart</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for TA {quantmod}"><tr><td>TA {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Add Technical Indicator to Chart </h2> <h3>Description</h3> <p>Functions to add technical indicators to a chart. </p> <h3>Details</h3> <p>The general mechanism to add technical analysis studies or overlays to a financial chart created with <code>chartSeries</code>. </p> <p>Functionality marked with a ‘*’ is via the <span class="pkg">TTR</span> package. </p> <p>General TA charting tool functions: </p> <ul> <li><p>addTAadd data as custom indicator </p> </li> <li><p>dropTAremove technical indicator </p> </li> <li><p>moveTAmove a technical indicator </p> </li> <li><p>swapTAswap two technical indicators </p> </li></ul> <p>Current technical indicators include: </p> <ul> <li><p>addADXadd Welles Wilder's Directional Movement Indicator* </p> </li> <li><p>addATRadd Average True Range * </p> </li> <li><p>addAroonadd Aroon Indicator * </p> </li> <li><p>addAroonOscadd Aroon Oscillator * </p> </li> <li><p>addBBands:add Bollinger Bands * </p> </li> <li><p>addCCIadd Commodity Channel Index * </p> </li> <li><p>addCMFadd Chaiken Money Flow * </p> </li> <li><p>addChADadd Chaiken Accumulation Distribution Line * </p> </li> <li><p>addChVoladd Chaiken Volatility * </p> </li> <li><p>addCMOadd Chande Momentum Oscillator * </p> </li> <li><p>addDEMAadd Double Exponential Moving Average * </p> </li> <li><p>addDPOadd Detrended Price Oscillator * </p> </li> <li><p>addEMAadd Exponential Moving Average * </p> </li> <li><p>addEMVadd Arm's Ease of Movement * </p> </li> <li><p>addEnvelopeadd Moving Average Envelope </p> </li> <li><p>addEVWMAadd Exponential Volume Weighted Moving Average * </p> </li> <li><p>addExpiryadd options or futures expiration lines </p> </li> <li><p>addKSTadd Know Sure Thing * </p> </li> <li><p>addLinesadd line(s) </p> </li> <li><p>addMACD:add Moving Average Convergence Divergence * </p> </li> <li><p>addMFIadd Money Flow Index * </p> </li> <li><p>addMomentumadd Momentum * </p> </li> <li><p>addOBVadd On-Balance Volume * </p> </li> <li><p>addPointsadd point(s) </p> </li> <li><p>addROC:add Rate of Change * </p> </li> <li><p>addRSIadd Relative Strength Indicator * </p> </li> <li><p>addSARadd Parabolic SAR * </p> </li> <li><p>addSMAadd Simple Moving Average * </p> </li> <li><p>addSMIadd Stochastic Momentum Index * </p> </li> <li><p>addTDIadd Trend Direction Index * </p> </li> <li><p>addTRIXadd Triple Smoothed Exponential Oscillator * </p> </li> <li><p>addVoadd Volume if available </p> </li> <li><p>addVolatilityadd volatility * </p> </li> <li><p>addWMAadd Weighted Moving Average * </p> </li> <li><p>addWPRadd Williams Percent R * </p> </li> <li><p>addZigZagadd Zig Zag * </p> </li> <li><p>addZLEMAadd ZLEMA * </p> </li></ul> <p>See the individual functions for specific implementation and argument details. Details of the underlying TTR implementations can be found in <span class="pkg">TTR</span>. </p> <p>The primary changes between the add*** version of an indicator and the <span class="pkg">TTR</span> base function is the absense of the data argument in the former. </p> <p>Notable additions include <code>on</code>, <code>with.col</code>. </p> <h3>Value</h3> <p>Called for its side effects, an object to class <code>chobTA</code> will be returned invisibly. If called from the <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> command line the method will draw the appropriate indicator on the current chart. </p> <h3>Note</h3> <p>Calling any of the above methods from within a function or script will generally require them to be wrapped in a <code>plot</code> call as they rely on the context of the call to initiate the actual charting addition. </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>References</h3> <p> Josh Ulrich - TTR package </p> <hr /><div style="text-align: center;">[Package <em>quantmod</em> version 0.4.20 <a href="00Index.html">Index</a>]</div> </body></html>