EVOLUTION-MANAGER
Edit File: KST.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: Know Sure Thing</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 KST {TTR}"><tr><td>KST {TTR}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Know Sure Thing</h2> <h3>Description</h3> <p>The Know Sure Thing (KST) is a smooth, summed, rate of change indicator. Developed by Martin Pring. </p> <h3>Usage</h3> <pre> KST( price, n = c(10, 10, 10, 15), nROC = c(10, 15, 20, 30), nSig = 9, maType, wts = 1:NROW(n), ... ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>price</code></td> <td> <p>Price series that is coercible to xts or matrix.</p> </td></tr> <tr valign="top"><td><code>n</code></td> <td> <p>A vector of the number of periods to use in the MA calculations.</p> </td></tr> <tr valign="top"><td><code>nROC</code></td> <td> <p>A vector of the number of periods to use in the ROC calculations.</p> </td></tr> <tr valign="top"><td><code>nSig</code></td> <td> <p>The number of periods to use for the KST signal line.</p> </td></tr> <tr valign="top"><td><code>maType</code></td> <td> <p>Either: </p> <ol> <li><p> A function or a string naming the function to be called. </p> </li> <li><p> A <em>list</em> with the first component like (1) above, and additional parameters specified as <em>named</em> components. See Examples. </p> </li></ol> </td></tr> <tr valign="top"><td><code>wts</code></td> <td> <p>A vector the same length as <code>n</code>, of the weight for each period (need not sum to one).</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Other arguments to be passed to the <code>maType</code> function in case (1) above.</p> </td></tr> </table> <h3>Details</h3> <p>For each day (week, month, etc.), the KST calculates the ROC over several periods. Those ROCs are smoothed using the given moving averages, then multiplied by their respective weighting values. The resulting values are summed for each day (month, week, etc.). </p> <h3>Value</h3> <p>A object of the same class as <code>price</code> or a vector (if <code>try.xts</code> fails) containing the Know Sure Thing values. </p> <h3>Note</h3> <p>The KST indicates bullish/bearish momentum as it crosses above/below its moving average. Because the KST tends to lead price action, look for trend confirmation in the price. </p> <p>The default arguments are for the daily KST. There is also the Long-Term KST, with arguments: <code>n=c(9, 12, 18, 24)</code> - where the periods are months, not days - and the moving average periods are 6, 6, 6, and 9 months, respectively. </p> <h3>Author(s)</h3> <p>Joshua Ulrich </p> <h3>References</h3> <p>The following site(s) were used to code/document this indicator:<br /> <a href="https://web.archive.org/web/20110715112957/http://www.pring.com/movieweb/daily_kst.htm">https://web.archive.org/web/20110715112957/http://www.pring.com/movieweb/daily_kst.htm</a><br /> <a href="https://web.archive.org/web/20100101162707/http://www.pring.com/movieweb/KST_MCM.htm">https://web.archive.org/web/20100101162707/http://www.pring.com/movieweb/KST_MCM.htm</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. See <code><a href="changes.html">ROC</a></code> for the rate-of-change function. See <code><a href="MACD.html">MACD</a></code> for a generic oscillator. </p> <h3>Examples</h3> <pre> data(ttrc) kst <- KST(ttrc[,"Close"]) kst4MA <- KST(ttrc[,"Close"], maType=list(list(SMA),list(EMA),list(DEMA),list(WMA))) </pre> <hr /><div style="text-align: center;">[Package <em>TTR</em> version 0.24.3 <a href="00Index.html">Index</a>]</div> </body></html>