View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default Creating a High-Low-Close chart with multiple series?

Using a line chart, you can offset one set by half a day. Suppose it's the
secondary axis you want to offset. First, go to Chart menu Chart Options
Axes tab and check the box for secondary category axis (time scale or auto
option), Then double click the secondary X axis, change the minimum to a day
earlier, and uncheck the Value Axis Crosses Between Dates box.

The offset by 1/2 day is confusing, because the points from series B are
directly between those of series A, so it's hard to match them in your mind.
Here's another approach.

You have columns for Date, H-L-C of stock A, and H-L-C of stock B. Add a
column for high minus close of stock B and another column for close minus
low of stock B. Also add a fraction (e.g., 0.1) to the dates. (Type 0.1 in a
cell, copy the cell, select the dates, use Edit menu Paste Special
Operation Add.)

Make a HLC chart using the stock A data and the dates. Even though the dates
have the added fraction, the chart plots the integer value of each date,
because a stock chart uses the line chart's category or date axis. Copy the
close data for stock B, select the chart, use Edit menu Paste Special
New Series. Select this series, go to Chart menu Chart Type, and convert
it to an XY chart type, markers only. Double click this series and on the
Axis tab, choose Primary. The points are plotted on the date axis, but as an
XY series, the exact value of the date is plotted, so it's offset by 0.1
days from the other series. Format the marker as a small dash, and add the
(high minus close) column as positive and the (close minus low) column as
negative custom Y error bars. Format the error bars so they have no end cap.
Format the first stock with one color small dash marker and high-low lines,
and the other stock with a different color small dash marker and error bars.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"SonzAMonz" wrote in message
...
Hi Jon -

Similar to TC, I want to create a high-low-close chart to compare 2 sets
of
data (similar to how you can juxtapose 2 or more sets of data in bar
charts).


I tried your suggestions below, but I couldn't get Excel to allow me to
create a stock chart with 6 series. Also, I am trying to get the 2 data
sets
to be next to each other and not on top of one another on the x-axis.

Any ideas? Thanks!

~Sonz

"Jon Peltier" wrote:

TC -

You can only have one set of high-low lines per axis group, and it's
these high-low
lines which provide the vertical lines. What you need to do is put all
six series
into the chart, then format one set of three to be plotted on the
secondary axis
(double click a series, and on the Axis tab, select Secondary). Then
format the
secondary axis Close series (select it using the drop down on the Chart
toolbar,
because it's not visible) so it uses the short right pointing dash as its
marker,
and on the Options tab of the formatting dialog, check High-Low Lines.

An alternative approach is to plot only the Close data for the stocks of
interest,
and compute two sets of line lengths for each: one for High-Close and the
other for
Close-Low. Use these ranges as the ranges for custom Y error bars.

Read about error bars he

http://peltiertech.com/Excel/ChartsHowTo/ErrorBars.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______