EVOLUTION-MANAGER
Edit File: keltnerChannels.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: Keltner Channels</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 keltnerChannels {TTR}"><tr><td>keltnerChannels {TTR}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Keltner Channels</h2> <h3>Description</h3> <p>Keltner Channels are volatility-based envelopes set above and below a moving average. This indicator is similar to Bollinger Bands, but Keltner Channels use the Average True Range (ATR) to set channel distance. </p> <h3>Usage</h3> <pre> keltnerChannels(HLC, n = 20, maType, atr = 2, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>HLC</code></td> <td> <p>Object that is coercible to xts or matrix and contains High-Low-Close prices. If only a univariate series is given, it will be used. See details.</p> </td></tr> <tr valign="top"><td><code>n</code></td> <td> <p>Number of periods for moving average.</p> </td></tr> <tr valign="top"><td><code>maType</code></td> <td> <p>A function or a string naming the function to be called.</p> </td></tr> <tr valign="top"><td><code>atr</code></td> <td> <p>The number of average true range distances to apply.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Other arguments to be passed to the maType function.</p> </td></tr> </table> <h3>Details</h3> <p>Keltner Channels are a trend following indicator, and can also be used to identify overbought and oversold levels when there is no trend. </p> <p>Chester Keltner is credited with the original version of Keltner Channels in his 1960 book. Linda Bradford Raschke introduced the newer version of Keltner Channels in the 1980s. </p> <h3>Value</h3> <p>A object of the same class as <code>HLC</code> or a matrix (if <code>try.xts</code> fails) containing the columns: </p> <dl> <dt>SMA</dt><dd><p> Simple moving average. </p> </dd> <dt>EMA</dt><dd><p> Exponential moving average. </p> </dd> </dl> <table summary="R valueblock"> <tr valign="top"><td><code>dn</code></td> <td> <p> The lower Keltner Channel. </p> </td></tr> <tr valign="top"><td><code>mavg</code></td> <td> <p> The middle moving average. </p> </td></tr> <tr valign="top"><td><code>up</code></td> <td> <p> The upper Keltner Channel. </p> </td></tr> </table> <h3>Details </h3> <p>Keltner Channels consist of three lines: The middle band is generally a 20-period EMA of the typical price ([high + low + close]/3). The upper and lower bands are multiples of average true range (usually 2) above and below the MA. </p> <p>The middle band is usually calculated using the typical price, but if a univariate series (e.g. Close, Weighted Close, Median Price, etc.) is provided, it will be used instead. </p> <h3>Author(s)</h3> <p>Nick Procyk, Joshua Ulrich </p> <p>References </p> <h3>References</h3> <p>The following site(s) were used to code/document this indicator:<br /> <a href="https://school.stockcharts.com/doku.php?id=technical_indicators:keltner_channels">https://school.stockcharts.com/doku.php?id=technical_indicators:keltner_channels</a><br /> <a href="https://www.linnsoft.com/techind/keltner-channels-keltu-keltd">https://www.linnsoft.com/techind/keltner-channels-keltu-keltd</a><br /> <a href="https://www.investopedia.com/terms/k/keltnerchannel.asp">https://www.investopedia.com/terms/k/keltnerchannel.asp</a><br /> </p> <h3>See Also</h3> <p>See <code><a href="MovingAverages.html">EMA</a></code>, <code><a href="MovingAverages.html">SMA</a></code>, etc. for moving average options; and note Warning section. </p> <h3>Examples</h3> <pre> data(ttrc) kc <- keltnerChannels(ttrc[,c("High","Low","Close")]) </pre> <hr /><div style="text-align: center;">[Package <em>TTR</em> version 0.24.3 <a href="00Index.html">Index</a>]</div> </body></html>