| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="76BoxandStockcharts.html">
|
|
|
8 |
<LINK REL="Next" HREF="762BoxPLotsStockchartswithamedianline.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="76BoxandStockcharts.html">Previous</A>
|
|
|
26 |
<A HREF="762BoxPLotsStockchartswithamedianline.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="7_6_1">7.6.1 Stock Charts</A></H3>
|
|
|
29 |
<P> Stock charts is used to display data values where one is interested
|
|
|
30 |
in 4 different values for each data point. This could for example be
|
|
|
31 |
used to display a stocks open,close, min and max value during a
|
|
|
32 |
specific day. Hence the name Stock chart (or Stock plot).</P>
|
|
|
33 |
<P> The figure below illustrates a sample Stock chart plot<DIV class="example">
|
|
|
34 |
<BR> <A href="exframes/frame_stockex1.html" target="blank"><IMG border="0"
|
|
|
35 |
HEIGHT="200" src="img/img/img/img/img/img/stockex1.png" WIDTH="300"></A>
|
|
|
36 |
<BR><B>Figure 68:</B> A simple stock plot <A href="exframes/frame_stockex1.html"
|
|
|
37 |
target="blank">[src]</A>
|
|
|
38 |
<P></P>
|
|
|
39 |
</DIV></P>
|
|
|
40 |
<P> For this type of plot the Y-data array must be consist of a number
|
|
|
41 |
of quadruples of data where each quadruple consists of
|
|
|
42 |
(open,close,min,max). The open and close values determine the min max
|
|
|
43 |
for the middle bar and the min,max determine the end points of the
|
|
|
44 |
"error-lines" at the top and bottom of of each bar.</P>
|
|
|
45 |
<P> Note that the data follows the following rules</P>
|
|
|
46 |
<UL>
|
|
|
47 |
<LI> min < max</LI>
|
|
|
48 |
<LI> min < min(open.close)</LI>
|
|
|
49 |
<LI> max > max(open,close)</LI>
|
|
|
50 |
</UL>
|
|
|
51 |
<P> To separate the two cases where "open > close" or "open < close "
|
|
|
52 |
different colors are used. These colors are specified with the <A href="../ref/StockPlot.html#_STOCKPLOT_SETCOLOR">
|
|
|
53 |
SetColor()</A> method. By default a positive bar (close > open) have a
|
|
|
54 |
fill color of white and for the negative case where (close < open) the
|
|
|
55 |
bars have a red color.</P>
|
|
|
56 |
<P> You can specify the width of the bar by setting the width (in
|
|
|
57 |
pixels) with a call to the method <A href="../ref/StockPlot.html#_STOCKPLOT_SETWIDTH">
|
|
|
58 |
SetWidth()</A></P>
|
|
|
59 |
<P> The final variation of stock plots you can have is to determine
|
|
|
60 |
whether or not the end point for the min,max lines should have the
|
|
|
61 |
horizontal line marking the end of the line or not. This can be
|
|
|
62 |
adjusted with a call to method <A href="../ref/StockPlot.html#_STOCKPLOT_HIDEENDLINES">
|
|
|
63 |
HideEndLine()</A>.</P>
|
|
|
64 |
<HR NOSHADE>
|
|
|
65 |
<A HREF="toc.html">Contents</A>
|
|
|
66 |
<A HREF="76BoxandStockcharts.html">Previous</A>
|
|
|
67 |
<A HREF="762BoxPLotsStockchartswithamedianline.html">Next</A>
|
|
|
68 |
</BODY>
|
|
|
69 |
</HTML>
|