<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ExcelTrader&#187; data series</title>
	<atom:link href="http://exceltrader.net/tag/data-series/feed/" rel="self" type="application/rss+xml" />
	<link>http://exceltrader.net</link>
	<description>Excel Based Stock and Futures Trading tools.</description>
	<lastBuildDate>Wed, 18 Jan 2012 18:01:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to add an indicator to Simulator.xls Chart (or any Excel Stock Chart).</title>
		<link>http://exceltrader.net/158/add-indicator-excel/</link>
		<comments>http://exceltrader.net/158/add-indicator-excel/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 23:37:02 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Charts]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[Automated trading Systems]]></category>
		<category><![CDATA[data series]]></category>
		<category><![CDATA[Excel How to: Indicators]]></category>
		<category><![CDATA[stock]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[trading]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://www.exceltrader.net/?p=158</guid>
		<description><![CDATA[If you have ever tried to add a simple moving average (or any data series) to a stock chart you may have noticed that after adding the series, the chart got all messed up! Here is a short tutorial and an example file showing how to add a simple moving average to a stock chart. [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever tried to add a simple moving average (or any data series) to a stock chart you may have noticed that after adding the series, the chart got all messed up!</p>
<p>Here is a short tutorial and an example file showing how to add a simple moving average to a stock chart. I am going to use the Simulator.xls as and example. It should be noted that all the unused columns on the BarData sheet (currently K-IV) of the simulator can be used to add indicators of your choice.</p>
<p>Trick number one. the =NA() trick</p>
<p>To plot a simple moving average (SMA), the formula is =AVERAGE(E132:E150)</p>
<p>So that would go in R150 on BarData Sheet.</p>
<p>There is a problem though. Excel will try to plot something when there is not enough data to average or even when there is an error. Here is an example of a chart we are trying to avoid.</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind11.jpg"><img class="aligncenter size-full wp-image-160" title="ind11" src="http://www.exceltrader.net/wp-content/uploads/ind11.jpg" alt="ind11" width="282" height="744" /></a></p>
<p>The keep the chart clean, I want to generate the error NA# whenever I do not want anything plotted.</p>
<p>so to keep things looking right, change the formula in R150 to =IF(ISBLANK(E132),NA(),AVERAGE(E132:E150))</p>
<p>which means:</p>
<p>&#8220;If there is not enough data for this simple moving average, then give me NA# (so excel does not plot anything) otherwise just calculate the average.&#8221;</p>
<p>Next just drag and copy this formula from R150 up to R19 (the first cell where it is possible to have enought data to calculate the average!)</p>
<p>Now all that is left is to add this moving average to the chart. It&#8217;s surprisingly tricky though.</p>
<p>1. Right click on the chart and select &#8220;source data&#8221;</p>
<p>the following screen comes up. Click on &#8220;add&#8221; and fill it in as follows. (make sure there are some numbers in column R)</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind2.jpg"><img class="aligncenter size-full wp-image-161" title="ind2" src="http://www.exceltrader.net/wp-content/uploads/ind2.jpg" alt="ind2" width="413" height="463" /></a></p>
<p>2. Select OK and take a look at the chart. Things should look funny on the chart now. Don&#8217;t worry about it, just find the data series &#8220;indicator&#8221;. It should be somewhere on the chart. In my case it plotted this price moving average on the secondary axis which is volume!</p>
<p>Hover your mouse around the volume series looking for &#8220;indicator&#8221;. Right click on the &#8220;indicator&#8221; series and <span style="font-weight: bold;">change it to primary</span> <span style="font-weight: bold;">axis</span> from secondary axis (which will be hidden somewhere down in the volume bars if it&#8217;s on the secondary axis. It can be hard to find/click on, if it is you may want to zoom in)</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind31.jpg"><img class="aligncenter size-full wp-image-163" title="ind31" src="http://www.exceltrader.net/wp-content/uploads/ind31.jpg" alt="ind31" width="461" height="406" /></a></p>
<p>Now &#8220;indicator&#8221; should be plotted up there with price, but now the price chart will be all messed up!!!!!! (see how the first bar is missing parts!)</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind4.jpg"><img class="aligncenter size-full wp-image-164" title="ind4" src="http://www.exceltrader.net/wp-content/uploads/ind4.jpg" alt="ind4" width="198" height="222" /></a></p>
<p>Next you once again need to hover your mouse around the price series looking for &#8220;indicator&#8221; when indicator is visible, right click on it and select &#8220;chart type&#8221;.</p>
<p>The following screen comes up and just select XY (Scatter) as shown and press OK.</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind5.jpg"><img class="aligncenter size-full wp-image-165" title="ind5" src="http://www.exceltrader.net/wp-content/uploads/ind5.jpg" alt="ind5" width="535" height="412" /></a></p>
<p>Now the chart will look normal again.</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind6.jpg"><img class="aligncenter size-full wp-image-166" title="ind6" src="http://www.exceltrader.net/wp-content/uploads/ind6.jpg" alt="ind6" width="193" height="173" /></a></p>
<p>The last step is to properly format this scatter chart to look like a line. For the last time find the &#8220;indicator&#8221; series on the chart and right click on it. This time select &#8220;format data series&#8221; and set it as follows.<a href="http://www.exceltrader.net/wp-content/uploads/ind7.jpg"><img class="aligncenter size-full wp-image-167" title="ind7" src="http://www.exceltrader.net/wp-content/uploads/ind7.jpg" alt="ind7" width="605" height="414" /></a></p>
<p>Select &#8220;OK&#8221; and the resulting indicator should like like this.</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/ind8.jpg"><img class="aligncenter size-full wp-image-168" title="ind8" src="http://www.exceltrader.net/wp-content/uploads/ind8.jpg" alt="ind8" width="378" height="911" /></a></p>
<p>One final tip.</p>
<p>Use google! If you are wanting to add a <a href="http://exceltrader.net/506/stochastics-indicator-vba-and-formula-versions/">stochastic</a> indicator for example, but don&#8217;t know how to calculate it. Try the following search:</p>
<p>stochastic filetype:xls</p>
<p>This will return tons of Excel files described with the word stochastic. There is a good chance that you will find a nice example there. If you have no luck, next you should search investopedia.com, which often explains the calculations.</p>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/158/add-indicator-excel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

