App-Chart

 view release on metacpan or  search on metacpan

lib/App/Chart/doc/chart.html  view on Meta::CPAN

list and a latest quote downloaded.  Click on “Refresh” to update.
</p>
<p>Stock symbols broadly follow Yahoo Finance conventions, which is the exchange
symbol plus a suffix, like &lsquo;<samp class="samp">.L</samp>&rsquo; for the London Stock Exchange
(see <a class="pxref" href="#Yahoo-Finance">Yahoo Finance</a>).  But Chart is not Yahoo specific, other data sources
have other suffixes.
</p>

<hr>
</div>
</div>
<div class="chapter-level-extent" id="Copying">
<div class="nav-panel">
<p>
Next: <a href="#Installing" accesskey="n" rel="next">Installing</a>, Previous: <a href="#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="#Top" accesskey="u" rel="up">Chart</a> &nbsp; [<a href="#Concept-Index" title="Index" rel="...
</div>
<h2 class="chapter" id="Copying-Conditions"><span>2 Copying Conditions<a class="copiable-link" href="#Copying-Conditions"> &para;</a></span></h2>
<a class="index-entry-id" id="index-Copying"></a>
<a class="index-entry-id" id="index-Conditions-for-copying"></a>
<a class="index-entry-id" id="index-License"></a>

<a class="index-entry-id" id="index-GNU-General-Public-License"></a>
<a class="index-entry-id" id="index-General-Public-License"></a>
<a class="index-entry-id" id="index-GPL"></a>
<a class="index-entry-id" id="index-COPYING"></a>
<p>Chart is Free Software, published under the terms of the GNU General Public
License (version 3 or later).  The file <samp class="file">COPYING</samp> contains the full
license terms (view it under Help/About within the program).
</p>
<a class="index-entry-id" id="index-Distribution"></a>
<a class="index-entry-id" id="index-Redistribution"></a>
<p>Chart is not in the public domain.  It&rsquo;s copyrighted and there are
restrictions on its distribution and redistribution, but these restrictions
are designed to permit everything a cooperating person would want to do.
</p>
<p>Essentially you can give or sell copies to anyone, with or without
modifications, but you must allow everyone else to do the same and you must
clearly identify any modifications.
</p>
<a class="index-entry-id" id="index-Warranty"></a>
<p>Be aware there is no warranty whatsoever for Chart.  This is described in full
in the license terms.  No warranty whatsoever includes no warranty against any
losses or any missed gains as a result of anything Chart does or doesn&rsquo;t do or
show.
</p>
<a class="index-entry-id" id="index-Financial-advice"></a>
<a class="index-entry-id" id="index-Investment-advice"></a>
<p>Note that Chart is only a program for displaying data.  The program and this
manual do not give financial advice.
</p>
<ul class="mini-toc">
<li><a href="#Data-Copying" accesskey="1">Data Copying</a></li>
</ul>
<div class="section-level-extent" id="Data-Copying">
<h3 class="section"><span>2.1 Data Copying<a class="copiable-link" href="#Data-Copying"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Copying_002c-data"></a>
<a class="index-entry-id" id="index-Data-copying"></a>
<a class="index-entry-id" id="index-License_002c-data"></a>

<p>The data that Chart may download or display will be copyright to the creator
of that data and will be provided under terms decided by the creator.  You
must check each data source used to see that you and your intended use are
within the terms (see <a class="pxref" href="#Data-Sources">Data Sources</a>).  The minimum for a source in Chart is
that personal non-commercial use is permitted.  Usually no re-distribution is
permitted.
</p>
<p>The author believes that the manipulations Chart performs on downloaded data
are purely mechanical and do not cause the program&rsquo;s terms to be added to any
results.  Derived forms like the database files, watchlist quotes, screenshots
of graphs, etc, will be subject only to the conditions of the data originators
(cumulatively if data from more than one source is shown).
</p>

<hr>
</div>
</div>
<div class="chapter-level-extent" id="Installing">
<div class="nav-panel">
<p>
Next: <a href="#Invocation" accesskey="n" rel="next">Invocation</a>, Previous: <a href="#Copying" accesskey="p" rel="prev">Copying Conditions</a>, Up: <a href="#Top" accesskey="u" rel="up">Chart</a> &nbsp; [<a href="#Concept-Index" title="Index" rel=...
</div>
<h2 class="chapter" id="Installing-1"><span>3 Installing<a class="copiable-link" href="#Installing-1"> &para;</a></span></h2>
<a class="index-entry-id" id="index-Installing"></a>

<a class="index-entry-id" id="index-Required-software"></a>
<p>The following programs and libraries are required, see their respective
documentation for installation instructions.
</p>
<ul class="itemize mark-bullet">
<li>Perl 5.10 or higher
<br> <a class="uref" href="http://www.perl.org">http://www.perl.org</a>

</li><li>Gtk 2 libraries, version 2.12 or higher.
<a class="index-entry-id" id="index-Gtk"></a>
<br> <a class="uref" href="http://www.gtk.org">http://www.gtk.org</a>

</li><li>Gtk2-Perl, version 1.200 or higher.
<a class="index-entry-id" id="index-Gtk2_002dPerl"></a>
<br> <a class="uref" href="http://gtk2-perl.sourceforge.net">http://gtk2-perl.sourceforge.net</a>

</li><li>The large number of Perl modules listed in <samp class="file">Makefile.PL</samp>, all of which
are available from CPAN,
<br> <a class="uref" href="http://www.cpan.org">http://www.cpan.org</a>
</li></ul>

<p>Chart uses an <code class="code">ExtUtils::MakeMaker</code> build system.  A basic build and
install can be made as follows.  This will install under &lsquo;<samp class="samp">/usr/local</samp>&rsquo;.
</p>
<div class="example">
<pre class="example-preformatted">perl Makefile.PL
make
make install
</pre></div>

<p>The usual <code class="code">ExtUtils::MakeMaker</code> options and build targets are available.
Here are some other notes,
</p>
<dl class="table">
<dt>Optional Software</dt>
<dd><p>Various optional features and their required Perl modules are set out in the
<code class="code">optional_features</code> section of <samp class="file">META.yml</samp>.  Some of the smart Perl

lib/App/Chart/doc/chart.html  view on Meta::CPAN

true range and the day before&rsquo;s).  RWI low is similar, but using <em class="math">High[K]
- Low[today]</em> for the movement down from past high to today&rsquo;s low.
</p>
<p>The factor <em class="math">sqrt(K)</em> compares the movement to a random walk.  If a
random walk has a 50% chance of going up by one, or a 50% chance of going down
by one, then it can be shown that on average the distance travelled after K
steps is <em class="math">sqrt(K)</em>.  So the formula compares observed distance in
average day&rsquo;s steps compared to the <em class="math">sqrt(K)</em> steps which would be
the expected move if it were random.  Thus 1 is when movement is apparently
random, and higher or lower if some apparently non-random trend or lack of
trend (respectively) appears to be present.
</p>

<hr>
</div>
<div class="section-level-extent" id="Stochastics">
<div class="nav-panel">
<p>
Next: <a href="#TD-Range-Expansion-Index" accesskey="n" rel="next">TD Range Expansion Index</a>, Previous: <a href="#Random-Walk-Index" accesskey="p" rel="prev">Random Walk Index</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> &n...
</div>
<h3 class="section" id="Stochastics-1"><span>10.38 Stochastics<a class="copiable-link" href="#Stochastics-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Stochastics"></a>

<a class="index-entry-id" id="index-Lane_002c-George"></a>
<p>Stochastics are an oscillator and signal line described by George Lane based
on each day&rsquo;s close within the total trading range of past N days.  This
should not be confused with stochastic processes etc in mathematics, the two
are unrelated.
</p>
<a class="index-entry-id" id="index-_0025K-stochastic"></a>
<p>The %K line is the close position within the past N-days trading range
(highest high to lowest low) expressed as a percentage 0 to 100.
</p>
<div class="example">
<pre class="example-preformatted">             close - Nday low
%K = 100 * --------------------
           Nday high - Nday low
</pre></div>

<a class="index-entry-id" id="index-_0025D-stochastic"></a>
<p>An extreme of 0 is reached for a close at the day&rsquo;s low which is also a new
N-day low.  Likewise 100 for a close at the day&rsquo;s high and a new N-day high.
A signal line %D is added by smoothing %K with a simple moving average
(see <a class="pxref" href="#Simple-Moving-Average">Simple Moving Average</a>).
</p>
<div class="example">
<pre class="example-preformatted">%D = SMA[D] of %K
</pre></div>

<p>The default periods in chart are 14 days for %K, and 3 days smoothing for %D.
The %K line is drawn in red and the %D line in green.
</p>
<a class="index-entry-id" id="index-Fast-stochastics"></a>
<a class="index-entry-id" id="index-Slow-stochastics"></a>
<p>%K and %D just described are called the &ldquo;fast&rdquo; stochastics.  Corresponding
&ldquo;slow&rdquo; stochastics are formed by smoothing %K with a simple moving average,
and calculating %D from that smoothed series.  The extra smoothing is the
&ldquo;slow days&rdquo; parameter in Chart.  The default is 0 for no slowing, a value of
3 is often used.
</p>
<p>Incidentally, a value of 1 for the slowing is the same as no slowing, because
a 1-period SMA of course doesn&rsquo;t change the data.
</p>

<hr>
</div>
<div class="section-level-extent" id="TD-Range-Expansion-Index">
<div class="nav-panel">
<p>
Next: <a href="#Trend-Intensity-Index" accesskey="n" rel="next">Trend Intensity Index</a>, Previous: <a href="#Stochastics" accesskey="p" rel="prev">Stochastics</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> &nbsp; [<a href="#Co...
</div>
<h3 class="section" id="TD-Range-Expansion-Index-1"><span>10.39 TD Range Expansion Index<a class="copiable-link" href="#TD-Range-Expansion-Index-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-TD-range-expansion-index"></a>
<a class="index-entry-id" id="index-Range-expansion-index"></a>
<a class="index-entry-id" id="index-TDREI"></a>

<a class="index-entry-id" id="index-DeMark_002c-Tom"></a>
<p>The range expansion index by Tom DeMark is designed to identify price
exhaustion which may be the end of a move up or down.
</p>
<p>The calculation is somewhat similar to an RSI (see <a class="pxref" href="#Relative-Strength-Index">Relative Strength Index</a>) but looks at 2-day changes in the daily high and daily low values and
smooths with a 5-day SMA (see <a class="pxref" href="#Simple-Moving-Average">Simple Moving Average</a>).  Changes are ignored
if the current day in not either within or covering price action from 5 or 6
days ago.  That test effectively holds the indicator around zero while prices
are making breakaway runs.
</p>
<p>DeMark regarded values above <em class="math">+45</em> or below <em class="math">-45</em> as overbought or
oversold.  Such a reading maintained for up to five days suggests a reversal,
except that if it remains there for 6 or more days then the signal may be
unreliable and trading should be avoided.
</p>

<hr>
</div>
<div class="section-level-extent" id="Trend-Intensity-Index">
<div class="nav-panel">
<p>
Next: <a href="#Trendscore" accesskey="n" rel="next">Trendscore</a>, Previous: <a href="#TD-Range-Expansion-Index" accesskey="p" rel="prev">TD Range Expansion Index</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> &nbsp; [<a href=...
</div>
<h3 class="section" id="Trend-Intensity-Index-1"><span>10.40 Trend Intensity Index<a class="copiable-link" href="#Trend-Intensity-Index-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Trend-intensity-index"></a>
<a class="index-entry-id" id="index-TII"></a>

<a class="index-entry-id" id="index-Pee_002c-M_002e-H_002e"></a>
<p>The trend intensity index (TII) by M. H. Pee measures the strength of a
trend, by looking at what proportion of the past 30 days prices have been
above or below the level of today&rsquo;s 60-day simple moving average
(see <a class="pxref" href="#Simple-Moving-Average">Simple Moving Average</a>).
</p>
<p>The 60-day average is as of today, not its past values at each of
those past 30 days.  For each day the deviation <em class="math">close-avg</em> is
taken.  Positive amounts are up deviations, and negative amounts have
the sign discarded and are down deviations.
</p>
<div class="example">
<pre class="example-preformatted">up   = /  close - average   if close &gt; average
       \        0           otherwise

down = /  average - close   if average &lt; close
       \        0           otherwise
</pre></div>



( run in 0.929 second using v1.01-cache-2.11-cpan-39bf76dae61 )