App-Chart

 view release on metacpan or  search on metacpan

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

<pre class="example-preformatted">chart --download TSCO.L RNO.PA FBU.NZ BMW.DE
</pre></div>

<p>The TreeView in the dialog has an irritating animated arrow when expanding or
collapsing a symlist.  You can fix that for Chart and other Gtk2 by adding to
your <samp class="file">~/.gtkrc-2.0</samp> file
</p>
<div class="example">
<pre class="example-preformatted">gtk-enable-animations = 0
</pre></div>


<hr>
</div>
<div class="section-level-extent" id="Main-Window">
<div class="nav-panel">
<p>
Next: <a href="#View-Style" accesskey="n" rel="next">View Style</a>, Previous: <a href="#Open" accesskey="p" rel="prev">Open</a>, Up: <a href="#Display" accesskey="u" rel="up">Display</a> &nbsp; [<a href="#Concept-Index" title="Index" rel="index">Ind...
</div>
<h3 class="section" id="Main-Window-1"><span>6.2 Main Window<a class="copiable-link" href="#Main-Window-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Main-window"></a>
<a class="index-entry-id" id="index-Window_002c-main"></a>
<a class="index-entry-id" id="index-Graph"></a>

<a class="index-entry-id" id="index-OHLC"></a>
<a class="index-entry-id" id="index-Weekly"></a>
<a class="index-entry-id" id="index-Monthly"></a>
<a class="index-entry-id" id="index-Ctrl_002dD"></a>
<a class="index-entry-id" id="index-Ctrl_002dW"></a>
<a class="index-entry-id" id="index-Ctrl_002dM"></a>
<p>The default display is daily open/high/low/close candlesticks with volume
below.  <kbd class="key">Ctrl-W</kbd> selects a weekly display, or <kbd class="key">Ctrl-M</kbd> monthly.
<kbd class="key">Ctrl-D</kbd> goes back to daily.
</p>
<a class="index-entry-id" id="index-Scroll"></a>
<a class="index-entry-id" id="index-Centre"></a>
<a class="index-entry-id" id="index-Page_002dUp"></a>
<a class="index-entry-id" id="index-Page_002dDown"></a>
<a class="index-entry-id" id="index-Ctrl_002dC"></a>
<a class="index-entry-id" id="index-Button_002d1"></a>
<p>The scroll bars move the visible portion.  Arrow keys <kbd class="key">Up</kbd>, <kbd class="key">Down</kbd>,
etc move by a step, or control-arrows and <kbd class="key">Page-Up</kbd>/<kbd class="key">Page-Down</kbd> move
by a page.  Mouse <kbd class="key">Button-1</kbd> drags the graph within the window.
<kbd class="key">Ctrl-C</kbd> centres it vertically in the window, if you lose track when
paging around.
</p>
<a class="index-entry-id" id="index-Zoom"></a>
<a class="index-entry-id" id="index-Z"></a>
<a class="index-entry-id" id="index-Shift_002dZ"></a>
<a class="index-entry-id" id="index-W"></a>
<a class="index-entry-id" id="index-Shift_002dW"></a>
<p><kbd class="key">Z</kbd> and <kbd class="key">Shift-Z</kbd> zoom in and out vertically.  <kbd class="key">W</kbd> and
<kbd class="key">Shift-W</kbd> zoom in and out horizontally (&lsquo;<samp class="samp">W</samp>&rsquo; stands for &ldquo;wider&rdquo;).
The initial vertical scaling is based on apparent price volatility, so active
stocks take the full window (or more), and sedate stocks are shown fairly
flat.
</p>
<a class="index-entry-id" id="index-Latest"></a>
<p>During trading, the current day&rsquo;s open/high/low/last so far is shown in yellow
(to emphasise it&rsquo;s a latest quote).  This is always in OHLC style, even on a
candlestick chart.  The figure drawn looks like
</p>
<div class="example">
<pre class="example-preformatted">  |
  |
  +--
  |
  +-----
  |
  +--
  |
--+
  |
  |
</pre></div>

<p>The left line is the open as usual.  The long line on the right is the last
trade, and the surrounding shorter lines are the current bid and offer.  The
last trade might be equal to the bid or offer, overlapping it, or they might
surround the last, as shown here.  In any case this figure gives the current
day visually.
</p>

<hr>
</div>
<div class="section-level-extent" id="View-Style">
<div class="nav-panel">
<p>
Next: <a href="#Dividends" accesskey="n" rel="next">Dividends and Splits</a>, Previous: <a href="#Main-Window" accesskey="p" rel="prev">Main Window</a>, Up: <a href="#Display" accesskey="u" rel="up">Display</a> &nbsp; [<a href="#Concept-Index" title=...
</div>
<h3 class="section" id="View-Style-1"><span>6.3 View Style<a class="copiable-link" href="#View-Style-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Style"></a>
<a class="index-entry-id" id="index-View-style"></a>
<a class="index-entry-id" id="index-Dialog_002c-view-style"></a>

<a class="index-entry-id" id="index-Edit_002fViewstyle"></a>
<a class="index-entry-id" id="index-OHLC-1"></a>
<a class="index-entry-id" id="index-Candles"></a>
<a class="index-entry-id" id="index-Line-style"></a>
<a class="index-entry-id" id="index-HL_002c-line-style"></a>
<a class="index-entry-id" id="index-Solid_002c-line-style"></a>
<a class="index-entry-id" id="index-Splits_002c-adjustment"></a>
<a class="index-entry-id" id="index-Stock-splits_002c-adjustment"></a>
<a class="index-entry-id" id="index-Dividends_002c-adjustment"></a>
<a class="index-entry-id" id="index-Futures_002c-rollover"></a>
<a class="index-entry-id" id="index-Rollover"></a>
<a class="index-entry-id" id="index-Indicator"></a>
<p>The Edit/Viewstyle dialog has options for the line style (OHLC, candles, etc),
whether to adjust for stock splits (default yes), dividends (default no), and
futures rollovers (default yes), and selections to enable various indicators.
</p>
<p>Candlestick figures are shown in green for close above the open, or red for
close below the open.  This is instead of traditional hollow and solid,
because hollow is hard to see when zoomed out to fit maximum data on the
screen.  If there&rsquo;s no opening prices, candlesticks fallback to OHLC figures
(just high/low and close).  If there&rsquo;s no high/low either, then candlesticks,
OHLC and HL styles all fall back to a plain line.
</p>
<a class="index-entry-id" id="index-Indicator-1"></a>
<a class="index-entry-id" id="index-Average"></a>
<p>Various averages (see <a class="pxref" href="#Averages">Averages</a>) or channels (see <a class="pxref" href="#Channels-and-Boxes">Channels and Boxes</a>) can be applied in the main window, and an indicator

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

<li><a href="#QStick">QStick</a></li>
<li><a href="#R_002dSquared-Index">R-Squared Index</a></li>
<li><a href="#RAVI">RAVI</a></li>
<li><a href="#Relative-Strength-Index">Relative Strength Index</a></li>
<li><a href="#Relative-Volatility-Index">Relative Volatility Index</a></li>
<li><a href="#Inertia-1">Inertia</a></li>
<li><a href="#Random-Walk-Index">Random Walk Index</a></li>
<li><a href="#Stochastics">Stochastics</a></li>
<li><a href="#TD-Range-Expansion-Index">TD Range Expansion Index</a></li>
<li><a href="#Trend-Intensity-Index">Trend Intensity Index</a></li>
<li><a href="#Trendscore">Trendscore</a></li>
<li><a href="#True-Strength-Index">True Strength Index</a></li>
<li><a href="#TRIX">TRIX</a></li>
<li><a href="#EMA-of-EMA-of-EMA-1">EMA of EMA of EMA</a></li>
<li><a href="#Twiggs-Money-Flow">Twiggs Money Flow</a></li>
<li><a href="#Ulcer-Index">Ulcer Index</a></li>
<li><a href="#Ultimate-Oscillator">Ultimate Oscillator</a></li>
<li><a href="#Vertical-Horizontal-Filter">Vertical Horizontal Filter</a></li>
<li><a href="#Volatility-Ratio">Volatility Ratio</a></li>
<li><a href="#Williams-_0025R">Williams %R</a></li>
<li><a href="#Williams-Accumulation_002fDistribution">Williams Accumulation/Distribution</a></li>
<li><a href="#Zig-Zag-Indicator">Zig Zag Indicator</a></li>
</ul>
<hr>
<div class="section-level-extent" id="Accumulation_002fDistribution">
<div class="nav-panel">
<p>
Next: <a href="#Accumulative-Swing-Index" accesskey="n" rel="next">Accumulative Swing Index</a>, Previous: <a href="#Indicators" accesskey="p" rel="prev">Indicators</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> &nbsp; [<a href=...
</div>
<h3 class="section" id="Accumulation_002fDistribution-1"><span>10.1 Accumulation/Distribution<a class="copiable-link" href="#Accumulation_002fDistribution-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Accumulation_002fdistribution"></a>
<a class="index-entry-id" id="index-Index_002c-accumulation_002fdistribution"></a>

<a class="index-entry-id" id="index-Chaikin_002c-Marc"></a>
<p>The Accumulation/Distribution index by Marc Chaikin is a cumulative total
volume, with volume each day added or subtracted in proportion to where the
close is between that day&rsquo;s high and low.  For <var class="var">c</var>, <var class="var">h</var>, <var class="var">l</var>,
<var class="var">v</var> and with ADprev as yesterday&rsquo;s Acc/Dist the formula is
</p>
<div class="example">
<pre class="example-preformatted">                       C - L
AD = ADprev + V * (2 * ----- - 1)
                       H - L
</pre></div>

<p>When the close is at the high the factor is <em class="math">+1</em> and the full volume is
added in, when the close is at the low the factor is <em class="math">-1</em> and the full
volume is subtracted.  In between is in proportion, so for instance a close at
75% of the range would be a factor <em class="math">+0.5</em>, or a close midway would be a
factor 0 for no change to the Acc/Dist.
</p>
<p>The starting point (ie. the zero point) for the running total is arbitrary.
In Chart it&rsquo;s merely the segment of data first displayed.
</p>
<p>The name accumulation/distribution comes from the idea that during
accumulation buyers are in control and the price will be bid up through the
day, or will make a recovery after being sold down, in any case finishing near
the high.  Vice versa for distribution.
</p>
<p>Acc/Dist is somewhat similar to On-Balance Volume (see <a class="pxref" href="#On_002dBalance-Volume">On-Balance Volume</a>).
But Acc/Dist looks at close within that day&rsquo;s range, whereas OBV looks just at
close-to-close up or down.  An Acc/Dist calculation within an N-day window can
be made too, see <a class="ref" href="#Chaikin-Money-Flow">Chaikin Money Flow</a>.
</p>

<hr>
</div>
<div class="section-level-extent" id="Accumulative-Swing-Index">
<div class="nav-panel">
<p>
Next: <a href="#Aroon" accesskey="n" rel="next">Aroon</a>, Previous: <a href="#Accumulation_002fDistribution" accesskey="p" rel="prev">Accumulation/Distribution</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> &nbsp; [<a href="#Co...
</div>
<h3 class="section" id="Accumulative-Swing-Index-1"><span>10.2 Accumulative Swing Index<a class="copiable-link" href="#Accumulative-Swing-Index-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Accumulative-swing-index"></a>
<a class="index-entry-id" id="index-ASI"></a>
<a class="index-entry-id" id="index-Index_002c-accumulative-swing"></a>

<a class="index-entry-id" id="index-Wilder_002c-J_002e-Welles-2"></a>
<p>The accumulative swing index (ASI) by J. Welles Wilder forms a cumulative
total of certain swing index values which are a tricky weighted combination of
close-to-close, open-to-close, and high-to-low range amounts each day.
</p>
<p>The close-to-close dominates the swing index, so the ASI broadly follows the
shape of the price curve.  Wilder recommended looking for trend lines and
breakouts in the ASI to confirm price trend lines.
</p>
<p>The starting point (ie. the zero point) for the running total is arbitrary.
In Chart it&rsquo;s merely the segment of data first displayed.  Wilder&rsquo;s
calculation applied a scaling factor based on the daily limit move, but this
is not done in Chart.  The shape of the resulting curve is not changed by
that.
</p>
<a class="anchor" id="Swing-Index"></a><p>The raw swing index values can be viewed with the &ldquo;Swing
Index&rdquo; (which is under &ldquo;Low Priority&rdquo; in the indicator lists because it&rsquo;s
of little direct use).
</p>

<hr>
</div>
<div class="section-level-extent" id="Aroon">
<div class="nav-panel">
<p>
Next: <a href="#Average-True-Range" accesskey="n" rel="next">Average True Range</a>, Previous: <a href="#Accumulative-Swing-Index" accesskey="p" rel="prev">Accumulative Swing Index</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> ...
</div>
<h3 class="section" id="Aroon-1"><span>10.3 Aroon<a class="copiable-link" href="#Aroon-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Aroon"></a>

<a class="index-entry-id" id="index-Chande_002c-Tushar-1"></a>
<p>The Aroon indicator by Tushar Chande shows the length of time since the
highest or lowest close among the past N days&rsquo; closes.  There are three lines:
Aroon Up for the high, Aroon Down for the low, and the Aroon Oscillator.
</p>
<p>Aroon Up and Down are both expressed as percentages 0 to 100.  If today is a
new N-day high then Aroon Up is 100, and for each day that passes (without a
fresh N-day high) it drops by 100/N, down to 0 for no new highs in the past N
days.  Conversely for Aroon Down for new N-day lows.
</p>
<p>The Aroon Oscillator is simply the difference between the Up and Down lines,
</p>
<div class="example">
<pre class="example-preformatted">AroonOsc = AroonUp - AroonDown

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

giving Dorsey&rsquo;s original 1993 definition of RVI on closing prices.
</p>
<div class="example">
<pre class="example-preformatted">S = Stddev[10 days]

U = /  S   if price &gt; prev price
    \  0   otherwise

                EMA[W14] of U
RVIorig = 100 * -------------
                EMA[W14] of S
</pre></div>

<p>In 1995 Dorsey revised his idea, to apply RVI to the daily highs and daily
lows and average the result, thus the following, which is the RVI used in
Chart.
</p>
<div class="example">
<pre class="example-preformatted">      RVIorig of highs + RVIorig of lows
RVI = ----------------------------------
                      2
</pre></div>

<p>When a data source doesn&rsquo;t provide high/low values just the closes are used,
which ends up as Dorsey&rsquo;s original.  The stddev period of 10 days and the
default EMA of 14 days are parameters (see <a class="pxref" href="#View-Style">View Style</a>).  The EMA period
follows J. Welles Wilder&rsquo;s reckoning (see <a class="pxref" href="#Wilder-EMA-period">Wilder EMA period</a>), the same
as an RSI.
</p>
<a class="anchor" id="Inertia"></a></div>
<div class="section-level-extent" id="Inertia-1">
<h3 class="section"><span>10.36 Inertia<a class="copiable-link" href="#Inertia-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Inertia"></a>

<p>Dorsey also smoothed the RVI with a 20-day least squares moving average
(LSQMA, see <a class="pxref" href="#Endpoint-Moving-Average">Endpoint Moving Average</a>) and called the result the inertia
indicator.  The 20-day smoothing period is a parameter.
</p>
<p>An LSQMA can of course also be applied to an RVI directly, this can be good to
see how it smooths.  But inertia is offered as a separate selection since the
smoothed line tends to follow the raw RVI quite closely, making it hard to see
which is which.
</p>

<hr>
</div>
<div class="section-level-extent" id="Random-Walk-Index">
<div class="nav-panel">
<p>
Next: <a href="#Stochastics" accesskey="n" rel="next">Stochastics</a>, Previous: <a href="#Relative-Volatility-Index" accesskey="p" rel="prev">Relative Volatility Index</a>, Up: <a href="#Indicators" accesskey="u" rel="up">Indicators</a> &nbsp; [<a h...
</div>
<h3 class="section" id="Random-Walk-Index-1"><span>10.37 Random Walk Index<a class="copiable-link" href="#Random-Walk-Index-1"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Random-walk-index"></a>
<a class="index-entry-id" id="index-Index_002c-random-walk"></a>
<a class="index-entry-id" id="index-RWI"></a>

<p>The random walk index (RWI) by E. Michael Poulos is a measure of how much
price ranges over N days differ from what would be expected by a random walk
(randomly going up and down).  A bigger than expected range suggests a trend.
</p>
<p>The index is in two parts, an RWI high which looks at upward movement and an
RWI low for downward movement.  In Chart RWI high is shown in green, and RWI
low in red.  The RWI high looks at terms like
</p>
<div class="example">
<pre class="example-preformatted">High[today] - Low[K]     1
-------------------- * ------
   Average TR [K]      sqrt(K)
</pre></div>

<p>which is the move from the low K days ago up to today&rsquo;s high, scaled by an
average of the true range (TR, see <a class="pxref" href="#True-Range">True Range</a>).  Such terms are calculated
for each number of days 2, 3, etc, up to the given RWI parameter N, and the
maximum is the RWI.  The first term for instance is today&rsquo;s high less
yesterday&rsquo;s low, compared to a two-day average of the true range (yesterday&rsquo;s
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>

<p>The percentage of the total up amounts out of total up and down amounts is
then the trend intensity index,
</p>
<div class="example">
<pre class="example-preformatted">                  total up
TDI = 100 * ---------------------
            total up + total down
</pre></div>

<p>The extreme of 100 occurs when all closes in the past 30 days have been above
today&rsquo;s 60-day moving average level, and conversely the extreme of 0 when all
below that level.
</p>
<p>Visually the index is like looking at the area under the graph of prices.  The
area above a horizontal line at today&rsquo;s 60-day moving average is the up
amounts, the area below it is the down amounts, and the index is the fraction
of the up out of the total.
</p>
<p>Pee recommended entering trades when levels of 80 on the upside or 20 on the

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

<dd><p>Message strings are translated into the selected language, when a translation
is available.  Gtk has a good set of translations for the standard menus and
dialogs, but for Chart specifics there&rsquo;s almost nothing yet.
</p>
</dd>
<dt><a class="index-entry-id" id="index-Commodity-name-translations"></a>
<a class="index-entry-id" id="index-Name-translations"></a>
<a class="index-entry-id" id="index-Weblink"></a>
<a id="index-Stock-name-translations"></a><span>Stock and commodity names<a class="copiable-link" href="#index-Stock-name-translations"> &para;</a></span></dt>
<dd><p>Names are downloaded in the selected or highest preference language, when
there&rsquo;s a choice.  Weblinks to company information or the exchange home page
likewise.
</p>
</dd>
<dt><a class="index-entry-id" id="index-UTF_002d8"></a>
<a id="index-Annotation-locale"></a><span>Annotations<a class="copiable-link" href="#index-Annotation-locale"> &para;</a></span></dt>
<dd><p>Annotation notes (see <a class="pxref" href="#Annotations">Annotations</a>) can be entered with unicode characters.
</p>
</dd>
</dl>

<ul class="mini-toc">
<li><a href="#Locale-Selection" accesskey="1">Locale Selection</a></li>
</ul>
<div class="section-level-extent" id="Locale-Selection">
<h3 class="section"><span>17.1 Locale Selection<a class="copiable-link" href="#Locale-Selection"> &para;</a></span></h3>
<a class="index-entry-id" id="index-Locale-selection"></a>

<a class="index-entry-id" id="index-Language"></a>
<a class="index-entry-id" id="index-LANG"></a>
<p>On a typical Unix/POSIX-style system the locale is selected with the
<code class="env">LANG</code> environment variable, set to a language code and optional territory
and charset.  For example US English,
</p>
<div class="example">
<pre class="example-preformatted">LANG=en_US
export LANG
</pre></div>

<p>This is often set by the system administrator, but you can do it yourself in
your <samp class="file">~/.profile</samp> (see <a data-manual="bashref" href="http://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html">Bash Startup Files</a> in <cite class="cite">Bash Features</cite>).
</p>
<a class="index-entry-id" id="index-Language-codes"></a>
<a class="index-entry-id" id="index-Country-codes"></a>
<p>Language and country codes can be found in <a data-manual="gettext" href="https://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes">Language Codes</a> in <cite class="cite">GNU
<code class="command">gettext</code> utilities</cite>, and <a data-manual="gettext" href="https://www.gnu.org/software/gettext/manual/gettext.html#Country-Codes">Country Codes</a> in <cite class="cite">GNU
<code class="command">gettext</code> utilities</cite>.  Usually there&rsquo;s only a few combinations
available on a system, run &lsquo;<samp class="samp">locale -a</samp>&rsquo; to see them.
</p>
<a class="index-entry-id" id="index-LANGUAGE"></a>
<p>Additionally, on a GNU system the <code class="env">LANGUAGE</code> environment variable gives a
list of language preferences for message translations (see <a data-manual="libc" href="https://www.gnu.org/software/libc/manual/html_mono/libc.html#Using-gettextized-software">User influence on <code class="code">gettext</code></a> in <cite class="ci...
Reference Manual</cite>).  For example to have Italian preferred, otherwise Spanish,
otherwise English,
</p>
<div class="example">
<pre class="example-preformatted">LANGUAGE=it_IT:es:en
export LANGUAGE
</pre></div>

<p>Chart looks at <code class="env">LANGUAGE</code> too (on all systems) for the preferred language
for stock and commodity names.
</p>

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

<p><a class="uref" href="http://www.gnu.org/software/emacs/">http://www.gnu.org/software/emacs/</a>
</p>
<a class="index-entry-id" id="index-chartprog_002eel"></a>
<a class="index-entry-id" id="index-XEmacs"></a>
<p><samp class="file">chartprog.el</samp> shows the Chart watchlist and gets quotes within Emacs
(see <a data-manual="emacs" href="https://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Top">The Emacs Editor</a> in <cite class="cite">The Emacs Editor</cite>).  It&rsquo;s designed for Emacs 21 and
higher, and also works with XEmacs 21 if you have the UTF-8 coding system (see
below).
</p>
<a class="index-entry-id" id="index-Autoload-chartprog_002eel"></a>
<a class="index-entry-id" id="index-chartprog_002dloaddefs_002eel"></a>
<a class="index-entry-id" id="index-_002eemacs"></a>
<p>The Debian package has the following setups already.  Otherwise, the best way
to use <samp class="file">chartprog.el</samp> is with autoloads for the commands.
<samp class="file">chartprog-loaddefs.el</samp> is a small file which sets this up.  Add the
following to your <samp class="file">.emacs</samp> file (see <a data-manual="emacs" href="https://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Init-File">The Init File
<samp class="file">~/.emacs</samp></a> in <cite class="cite">The Emacs Editor</cite>),
</p>
<div class="example lisp">
<pre class="lisp-preformatted">(require 'chartprog-loaddefs)
</pre></div>

<a class="index-entry-id" id="index-load_002dpath"></a>
<a class="index-entry-id" id="index-site_002dlisp"></a>
<p>The build system currently doesn&rsquo;t install <samp class="file">chartprog.el</samp> into
<samp class="file">site-lisp</samp>, so you should copy it and <samp class="file">chartprog-loaddefs.el</samp> to
somewhere in your <code class="code">load-path</code> (see <a data-manual="emacs" href="https://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Lisp-Libraries">Libraries of Lisp
Code for Emacs</a> in <cite class="cite">The Emacs Editor</cite>).
</p>



<ul class="mini-toc">
<li><a href="#Watchlist-and-Quotes" accesskey="1">Watchlist and Quotes</a></li>
<li><a href="#UTF_002d8" accesskey="2">UTF-8</a></li>
<li><a href="#Lisp" accesskey="3">Lisp</a></li>
<li><a href="#Simple-Emacs-Spreadsheet" accesskey="4">Simple Emacs Spreadsheet</a></li>
</ul>
<div class="section-level-extent" id="Watchlist-and-Quotes">
<h3 class="section"><span>18.1 Watchlist and Quotes<a class="copiable-link" href="#Watchlist-and-Quotes"> &para;</a></span></h3>

<a class="index-entry-id" id="index-chart_002dwatchlist"></a>
<p><kbd class="kbd">M-x chart-watchlist</kbd> displays the Favourites list in a buffer.  Key
<kbd class="key">a</kbd> adds a symbol.  <kbd class="kbd">C-k</kbd> and <kbd class="kbd">C-y</kbd> kill and yank symbols.
<kbd class="key">g</kbd> refreshes the quotes.  <kbd class="key">L</kbd> selects a different list (like the
Alerts list).  The usual <kbd class="kbd">C-h m</kbd> mode help shows other key bindings.



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