How to Create Overlaid Charts
Last updated
Was this helpful?
Last updated
Was this helpful?
When comparing two stocks or other ticker symbols, it helps to display the price bars for the two symbols overlaid on the same price plot. To overlay charts in the SharpCharts Workbench, you add a Price indicator for the second symbol and position it "Behind Price" so that it is overlaid on the main price plot.
For more head-to-head performance comparisons, you can convert both symbols to plot performance data instead of raw price data.
Learn More: The Price Indicator | Overlaid Charts | Performance Comparison SharpCharts
The brief interactive demo below shows you how to add a Price indicator to your SharpCharts and position it "Behind Price". The more in-depth tutorial walks you step-by-step through creating a chart comparing the Dow and the S&P 500 on a single price plot, then walks through converting it to a Performance chart.
This interactive demo will show you step-by-step how to add a price plot for a second ticker symbol to your SharpChart by adding a Price indicator and positioning it "Behind Price" to overlay it on the main price plot.
Click on the blue Continue button below to start the interactive demo.
In this step-by-step tutorial, we'll use a Price indicator positioned behind the main price plot to create a SharpChart comparing the Dow Jones Industrial Average ($INDU) with the S&P 500 Large Caps ($SPX). Then we'll explore using the Price Performance indicator and Performance chart type to compare the two based on performance rather than raw price data.
There are several ways to create a new SharpChart, but the easiest is to enter the symbol in the Create-a-Chart box at the top of the page and then click Go.
To simplify the chart, let's remove any Indicators and Overlays from the default chart. The quickest way to do that is to click the Clear All link in the Overlays section, then repeat the process with the Clear All link in the Indicators section.
Note: You may want to make other changes to the chart, such as changing the size or the color scheme. In this example, we're using the “Spruce” color scheme.
You can use the Price indicator to add additional ticker symbols to your chart. In this example, we'll add $SPX to the chart.
Select Price from one of the empty indicator dropdowns, and in the Parameters box enter the ticker symbol you want to chart. In this case, we will use $SPX for the S&P 500. Ensure the Position dropdown is set to Behind Price so that the $SPX data will appear on the same chart panel as the primary $INDU data.
Once these changes have been made, your chart should look similar to the one below.
Notice that $INDU is charted using candlesticks, and $SPX using a line. This is like comparing apples to oranges. Usually, people use line charts for both ticker symbols to make comparing the data easier.
To change the $INDU candlesticks to a line, simply change the Type dropdown to Line (thin).
Change the Volume dropdown to Off to remove the volume bars from the chart. This makes for a less cluttered chart, but more importantly, it allows the vertical scale on the left side of the chart to display the $SPX values instead of the volume values.
Once you've made these changes, the final overlaid comparison chart should look something like this:
This chart style allows you to visually compare the behavior of the Dow Jones Industrial Average and the S&P 500 indexes. It should come as no surprise that they move in very similar ways. StockCharts subscribers can change the color and style of the lines for more clarity.
SharpCharts can also be used to create overlaid Price Performance comparison charts. These charts allow you to compare each index's percent gain/loss. Here are the easy steps to convert this chart into a Price Performance comparison chart.
Change the Type dropdown for the main ticker symbol to Performance. Then, change the Indicator from Price to Price - Performance.
The final overlaid Price Performance chart should look similar to the one below.
Now both lines start at 0% and move up and down based on the percentage change rather than the price. In this case, we can see that the Dow has outperformed the S&P 500 over the time period covered by the chart.