<?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; Excel as a Trading Platform</title>
	<atom:link href="http://exceltrader.net/category/excel-as-a-trading-platform/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>Excel Benchmark 2011: An Excel Speed Test (with trading functions)</title>
		<link>http://exceltrader.net/984/benchmark_et-xls-an-excel-benchmark-for-traders/</link>
		<comments>http://exceltrader.net/984/benchmark_et-xls-an-excel-benchmark-for-traders/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 00:22:00 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Automated trading Systems]]></category>
		<category><![CDATA[Backtesting]]></category>
		<category><![CDATA[Benchmark.xls]]></category>
		<category><![CDATA[Excel as a Trading Platform]]></category>
		<category><![CDATA[Indicators]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[excel speed]]></category>
		<category><![CDATA[processor]]></category>
		<category><![CDATA[smart calculation]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://exceltrader.net/?p=984</guid>
		<description><![CDATA[BenchMark_ET.xls measures Excel performance with 6 trading related Excel/VBA tests. Once the benchmark is complete, your results can be submitted to the Database (just press &#8220;Submit&#8221;). All submitted results are available here (all results are sortable). The default view is most recently submitted result topmost (so your result should be on top until you sort). [...]]]></description>
			<content:encoded><![CDATA[<p>

<style type="text/css">




.analysisBench {
	background-color: #FCF9FA;	
	float: left;
	font-size: 30px;
	height: auto;
	line-height: 35px;
	margin-bottom: 20px;
	margin-left: 20px;
	margin-right: 20px;
	margin-top: 20px;
	padding-bottom: 25px;
	padding-left: 25px;
	padding-right: 25px;
	padding-top: 25px;
	text-align: justify;
	width: auto;
	border: 6px solid #C04749;
}
</style>



<div class="analysisBench">
<p> <strong>Live Analysis of  Benchmark Results</strong></p>
<p>Of 608 Benchmark results, currently the Excel version with  the highest *average Total Score of 50.78 is Excel 2010. Excel 2003 has an average  Total Score of 36.17 . Excel 2002 has an average  Total Score of 30.18 and the worst average Total Score is Excel 2007 at 18.52.</p>
<p>Of the top 30 scores, 90% of the processors brand name is  Intel. Followed by AMD which is the processor in 10% of the top 30 results. The exact processor with the current top score of 118.2620 is Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz. It's likely that this processor is overclocked beyond what is shown on the benchmark <a href="http://exceltrader.net/et2/benchMark.php" target="_new">results page</a> and is not necessarily   the top performing processor at default settings.</p>
<p>Of the six tests used to determine Total score, Test 3 shows  the most variance between Excel Versions. For example the best score for test 3 in Excel 2003 is 56785 while the best test 3 score for 2010 is 7594 so for test three, Excel 2003 performs 747.76% better when only the best scores are considered. Test 3 measures how many ticks can be  displayed on a stock chart within a 30 second time period. The other tests composing Total Score involve more  intensive calculation tests than this charting display test. Although this difference is large, Test 3  should only be considered over Total Score for the most charting intensive  Excel programs where VBA and/or formula based calculations are relatively  minimal. For most Trading applications Total Score which is a composite of the  6 tests is the most useful score to use for evaluating Excel  versions/Processors/OS etc.</p>
<p>Of the 608 current results 136 are below 0. I would not  consider any system scoring below 0 adequate for running an excel based trading  system. A modern system scoring below 0 should be checked for unnecessary startup  programs, spyware, viruses etc. </p>
<p>*Scores below 0 are set to zero for purposes of calculating  average total score. </p>
<p>If your score is low and you’re considering a desktop upgrade, I currently recommend this high benchmark scoring <a href="http://www.amazon.com/gp/product/B004YD6FK8/ref=as_li_tf_tl?ie=UTF8&tag=switrablo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B004YD6FK8" target="_blank">Intel 3.40GHz Quad Core i7-2600 desktop</a><img src="http://www.assoc-amazon.com/e/ir?t=switrablo-20&l=as2&o=1&a=B004YD6FK8" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> and <a href="http://www.amazon.com/gp/product/B0039L50J8/ref=as_li_tf_tl?ie=UTF8&tag=switrablo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B0039L50J8" target="_blank">Microsoft Office Home & Business 2010</a><img src="http://www.assoc-amazon.com/e/ir?t=switrablo-20&l=as2&o=1&a=B0039L50J8" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />. </p>
</div>


<script type="text/javascript" src="http://wms.assoc-amazon.com/20070822/US/js/link-enhancer-common.js?tag=switrablo-20">
</script>
<noscript>
    <img src="http://wms.assoc-amazon.com/20070822/US/img/noscript.gif?tag=switrablo-20" alt="" />
</noscript>





</p>
<p>BenchMark_ET.xls measures Excel performance with 6      trading related Excel/VBA tests. Once the benchmark is complete, your results can be submitted to the Database (just press &#8220;Submit&#8221;). All      submitted results are available <a title="Benchmark results" href="http://exceltrader.net/et2/benchMark.php" target="_blank">here</a> (all results are sortable). The default view is most recently submitted result topmost (so your result should be on top until you sort). System Information is listed along with each test result (processor name, OS, Clock Speed, Cores, Excel Version, File type). A composite Scoring system is in place, but each individual test result is also listed in the results database. All results can be sorted in ascending/descending order by clicking each result&#8217;s title. For best results disable autosave and background error checking in Excel options.</p>
<p><strong>Instructions:</strong></p>
<ol>
<li><a href="/wp-content/uploads/BenchMark_ET.xls">Download Benchmark_ET.xls.</a></li>
<li>Open Benchmark_ET.xls and press the button &#8220;Start Benchmark&#8221;</li>
<li>(optional) Submit and view your results.</li>
</ol>
<div class="mceTemp">
<dl id="attachment_994" class="wp-caption alignnone" style="width: 349px;"> </dl>
<p><a href="http://exceltrader.net/wp-content/uploads/BenET.jpg"><img class="size-full wp-image-994" title="BenET" src="http://exceltrader.net/wp-content/uploads/BenET.jpg" alt="Benchmark for Excel by Exceltrader" width="339" height="398" /></a></p>
<dl id="attachment_994" class="wp-caption alignnone" style="width: 349px;"> </dl>
</div>
<p><em>Below is an explantion of each test:</em></p>
<p><strong><em>Test 1: </em></strong>Data Build Time</p>
<p>Measures the time it takes VBA to create 5 columns * 65535 rows of random tick data.</p>
<p><strong>Test 2: </strong>MACD VBA Calculation</p>
<p>Measures the time it takes VBA to calculate the MACD indicator for the 5 columns * 65535 rows of data created in test one.  (The VBA code for the MACD calculation is <a title="MACD" href="http://exceltrader.net/212/macd/" target="_blank">here</a>.)</p>
<p><strong>Test 3:</strong> Dispayed Ticks (30 Sec)</p>
<p>Measures the number of ticks (price changes) than can be displayed in 30 seconds. <em>In my original benchmark this was the only type of test. The results varied so greatly that newer versions of excel took hours to complete the benchmark while older versions took just minutes making the benchmark annoying to run. By limiting this test to 30 seconds the total time to run the benchmark will be similar among all systems tested.</em></p>
<p><strong>Test 4:</strong> 63000 ticks converted to OHLC</p>
<p>After 63000 ticks are created, this test converts the tick data to OHLC data. The result is measured in time.</p>
<p><strong>Test 5:</strong> Live formula Test</p>
<p>This test begins with with 5000 bars of OHLC and a series of formula based indicators. The last price changes in E5000 as rapidly as possible but waits for all formulas to calculate between each price change.  The benchmark result is the number of price changes that can be completed with formula recalculations within 30 seconds.  Below is the list of indicators calculated with live formulas in this test.</p>
<ol>
<li>SMA (100,200,300)</li>
<li>RSS</li>
<li>RSI</li>
<li>Fisher Transform of RSI</li>
</ol>
<p><strong>Test 6:</strong> Live formula Test</p>
<p>This test is identical to test 5 except that all formulas also refer to and are dependent on the changing cell, E5000. Test 6  compared to Test 5  is meant to test the &#8220;smart recalculation engine&#8221; promoted by Microsoft.  More info can be found in <a title="Smart Recalcuation" href="http://msdn.microsoft.com/en-us/library/aa730921%28v=office.12%29.aspx" target="_blank">this Microsoft article</a> under the section titles &#8220;Understanding Calculation Methods in Excel&#8221;.</p>
<p><strong>Scoring:</strong></p>
<p>A composite scoring system is in place and the result is listed in column two on the results data base page and also at the top of the benchmark results form upon completion. With the exception of test 3 all tests are counted equally. Test 3, which tests displayed ticks on a stock chart is counted 3 times because for trading it&#8217;s an important result to consider<strong>. </strong>To establish the composite score 20 tests were run on various systems and excel versions. The best and worst scores for each test were used to establish the benchmark score. The best scores from the initial tests resulted in a score of 100 and the worst scores resulted in a score of 0 therefore scores greater than 100 and below 0 are possible.  On the results page idle processor speed is shown and overclocked systems may not show the true processor speed. If you see two systems that look the same with significantly different scores, the higher score is likely from an overclocked system. Thanks for trying my Excel benchmark and submitting your system&#8217;s result!<strong><br />
</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/984/benchmark_et-xls-an-excel-benchmark-for-traders/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to retrieve live data for SPY futures in Twsdde.xls</title>
		<link>http://exceltrader.net/724/how-to-retrieve-live-data-for-the-spy-futures-in-twsdde-xls/</link>
		<comments>http://exceltrader.net/724/how-to-retrieve-live-data-for-the-spy-futures-in-twsdde-xls/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 17:33:06 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Excel as a Trading Platform]]></category>
		<category><![CDATA[interactive brokers]]></category>
		<category><![CDATA[twsDde.xls]]></category>
		<category><![CDATA[multiplier]]></category>
		<category><![CDATA[one]]></category>
		<category><![CDATA[spy]]></category>
		<category><![CDATA[twsdde]]></category>

		<guid isPermaLink="false">http://exceltrader.net/?p=724</guid>
		<description><![CDATA[The multiplier column in Twsdde.xls is not used by the code that constructs the links to retrieve data. Filling it in has no affect on the contract received. This creates an issue when attempting to retrieve data for Futures with more than one contract available with the same contract expiration month. As an example, SPY [...]]]></description>
			<content:encoded><![CDATA[<p>The multiplier column in Twsdde.xls is not used by the code that constructs the links to retrieve data. Filling it in has no affect on the contract received. This creates an issue when attempting to retrieve data for Futures with more than one contract available with the same contract expiration month.</p>
<p>As an example, SPY futures are available in contracts with a multiplier of 1000 and 100 on the ONE exchange.</p>
<p>The error message received in this case is &#8220;The contract description specified for SPY is ambiguous;&#8221;</p>
<p>The solution is to first find the local symbol. You can do this by first adding the contract in TWS, right click on the contract name within TWS, then select contract details and select &#8220;details&#8221;.<br />
This will open the page shown below and you can find the local symbol. As shown below, leave out the other parameters such as expiration date as it&#8217;s inherit in the local symbol (and will result in no data).</p>
<p><a href="http://exceltrader.net/wp-content/uploads/sPY.jpg"><img src="http://exceltrader.net/wp-content/uploads/sPY.jpg" alt="" title="sPY" width="760" height="296" class="alignnone size-full wp-image-725" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/724/how-to-retrieve-live-data-for-the-spy-futures-in-twsdde-xls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MACD VBA</title>
		<link>http://exceltrader.net/470/macd-vba/</link>
		<comments>http://exceltrader.net/470/macd-vba/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 21:08:35 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Automated trading Systems]]></category>
		<category><![CDATA[Equities]]></category>
		<category><![CDATA[Excel as a Trading Platform]]></category>
		<category><![CDATA[Free Excel/VBA based Indicators]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[Excel How to: Indicators]]></category>
		<category><![CDATA[MACD]]></category>
		<category><![CDATA[OHLC]]></category>
		<category><![CDATA[stocks]]></category>
		<category><![CDATA[trading]]></category>
		<category><![CDATA[vba]]></category>
		<category><![CDATA[xls]]></category>

		<guid isPermaLink="false">http://www.exceltrader.net/?p=470</guid>
		<description><![CDATA[This post includes links to two example xls files that show both VBA and Formula based calculations for the indicator MACD or Moving Average Convergence Divergence.]]></description>
			<content:encoded><![CDATA[<p>This post includes links to two example xls files that show both VBA and Formula based calculations for the indicator MACD or Moving Average Convergence Divergence.</p>
<p>Both files contain the exact same set of Open High Low Close data. The formula based version is easier to understand and serves as a way to verify that the VBA code that I wrote is correct. Both methods give the same result.  The major benefit of using VBA is that the parameters for MACD can be easy changed from the input boxes. In addition the VBA method shows only the final result rather than take up five columns.</p>
<p>The VBA based version can be downloaded <a href="/wp-content/uploads/macdVBA.xls">here</a>.</p>
<p>The formula version can be downloaded <a href="/wp-content/uploads/MACDformulas.xls">here</a>. Below is the code from the VBA based version.</p>
<p><font face=Times New Roman><SPAN style="color:#00007F">Sub</SPAN> ETmacd() <SPAN style="color:#007F00">'written by Exceltrader www.exceltrader.net</SPAN><br /><SPAN style="color:#00007F">Dim</SPAN> EMAslow As <SPAN style="color:#00007F">Double</SPAN>, EMAf<SPAN style="color:#00007F">As</SPAN>t <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN>, ws <SPAN style="color:#00007F">As</SPAN> Worksheet, LR <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Integer</SPAN><br /><SPAN style="color:#00007F">Dim</SPAN> eMaF() <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN>, eMaS() <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN>, EMAdif(), emaPer() <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN>, MacDper <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN>, coUnt <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Integer</SPAN><br /><SPAN style="color:#00007F">Dim</SPAN> DataRange <SPAN style="color:#00007F">As</SPAN> Range<br /><SPAN style="color:#00007F">Dim</SPAN> ExPSlowWeight <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Double</SPAN><br /><SPAN style="color:#00007F">Dim</SPAN> ExPFastWeight As <SPAN style="color:#00007F">Double</SPAN><br /><SPAN style="color:#00007F">Dim</SPAN> PerWeight As <SPAN style="color:#00007F">Double</SPAN><br /><SPAN style="color:#007F00">'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''</SPAN><br /><SPAN style="color:#007F00">''&#160;&#160;The below three lines are the MACD settings.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ''</SPAN><br /><SPAN style="color:#007F00">''&#160;&#160;The Values can either be changed here or uncomment the inputbox lines to be prompted.''</SPAN><br /><SPAN style="color:#007F00">'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''</SPAN><br />EMAslow = 13 <SPAN style="color:#007F00">'InputBox(Prompt:="Enter Macd Slow settings.", Title:="MACD SLOW", Default:="13")</SPAN><br />EMAfAst = 5 <SPAN style="color:#007F00">'InputBox(Prompt:="Enter Macd Fast settings.", Title:="MACD Fast", Default:="5")</SPAN><br />MacDper = 6 <SPAN style="color:#007F00">'InputBox(Prompt:="Enter Macd Period settings.", Title:="MACD Period", Default:="6")</SPAN><br />ExPSlowWeight = 2 / (EMAslow + 1)<br />PerWeight = 2 / (MacDper + 1)<br />ExPFastWeight = 2 / (EMAfAst + 1)<br /><SPAN style="color:#00007F">Set</SPAN> ws = ThisWorkbook.Worksheets("VBA") <SPAN style="color:#007F00">'or use exact sheet name for example ThisWorkbook.worksheet("Sheet1")</SPAN><br /><SPAN style="color:#007F00">'slow</SPAN><br />&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">With</SPAN> ws<br />&#160;&#160;&#160;&#160;LR = .Cells(Rows.coUnt, "A").End(xlUp).Row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">For</SPAN> <SPAN style="color:#00007F">Each</SPAN> DataRange <SPAN style="color:#00007F">In</SPAN> ws.Range(.Cells(2, "A"), .Cells(LR, "A"))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;coUnt = DataRange.Row + 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#007F00">'fill the eMA slow Array</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ReDim</SPAN> <SPAN style="color:#00007F">Preserve</SPAN> eMaS(1 <SPAN style="color:#00007F">To</SPAN> coUnt)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">If</SPAN> coUnt = EMAslow + 1 <SPAN style="color:#00007F">Then</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#007F00">'get the first value which is the Simple Moving average</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; eMaS(coUnt) = Application.Average(ws.Range(.Cells(2, "E"), .Cells(coUnt, "E")))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ElseIf</SPAN> coUnt > EMAslow <SPAN style="color:#00007F">Then</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;eMaS(coUnt) = (.Cells(coUnt, "E") * ExPSlowWeight) + (eMaS(coUnt - 1) * (1 - ExPSlowWeight))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">Next</SPAN> DataRange<br /> <SPAN style="color:#007F00">'fast</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">For</SPAN> <SPAN style="color:#00007F">Each</SPAN> DataRange <SPAN style="color:#00007F">In</SPAN> ws.Range(.Cells(2, "A"), .Cells(LR, "A"))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;coUnt = DataRange.Row + 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#007F00">'fill the eMA slow Array</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ReDim</SPAN> <SPAN style="color:#00007F">Preserve</SPAN> eMaF(1 <SPAN style="color:#00007F">To</SPAN> coUnt)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">If</SPAN> coUnt = EMAfAst + 1 <SPAN style="color:#00007F">Then</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#007F00">'get the first value which is the Simple Moving average</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; eMaF(coUnt) = Application.Average(ws.Range(.Cells(2, "E"), .Cells(coUnt, "E")))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ElseIf</SPAN> coUnt > EMAfAst <SPAN style="color:#00007F">Then</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;eMaF(coUnt) = (.Cells(coUnt, "E") * ExPFastWeight) + (eMaF(coUnt - 1) * (1 - ExPFastWeight))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">Next</SPAN> DataRange<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ReDim</SPAN> <SPAN style="color:#00007F">Preserve</SPAN> EMAdif(EM<SPAN style="color:#00007F">As</SPAN>low <SPAN style="color:#00007F">To</SPAN> <SPAN style="color:#00007F">UBound</SPAN>(eMaF))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">For</SPAN> coUnt = EM<SPAN style="color:#00007F">As</SPAN>low + 1 <SPAN style="color:#00007F">To</SPAN> <SPAN style="color:#00007F">UBound</SPAN>(eMaF)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;EMAdif(coUnt) = eMaF(coUnt) - eMaS(coUnt)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">Next</SPAN> coUnt<br /><SPAN style="color:#007F00">'MacD Period</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">Dim</SPAN> x <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Integer</SPAN>, y <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Integer</SPAN>, z As <SPAN style="color:#00007F">Integer</SPAN>, Avee As <SPAN style="color:#00007F">Double</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;y = EMAslow + MacDper - 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">For</SPAN> x = y <SPAN style="color:#00007F">To</SPAN> <SPAN style="color:#00007F">UBound</SPAN>(EMAdif) - 2<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#007F00">'get the SMA for first value</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">If</SPAN> x = y <SPAN style="color:#00007F">Then</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">For</SPAN> z = EMAslow + 1 <SPAN style="color:#00007F">To</SPAN> EMAslow + MacDper&#160;&#160;<SPAN style="color:#007F00">'(EMAslow + MacDper - 1)</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Ave = Ave + EMAdif(z)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">Next</SPAN> z<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ReDim</SPAN> emaPer(x <SPAN style="color:#00007F">To</SPAN> LR)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;emaPer(x) = Ave / MacDper<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">ElseIf</SPAN> x > y <SPAN style="color:#00007F">Then</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;emaPer(x) = (EMAdif(x + 1) * PerWeight) + (emaPer(x - 1) * (1 - PerWeight))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<SPAN style="color:#00007F">Next</SPAN> x<br />&#160;&#160;x = Empty: y = Empty: z = Empty<br />&#160;&#160;x = <SPAN style="color:#00007F">LBound</SPAN>(emaPer)<br />&#160;&#160;y = <SPAN style="color:#00007F">UBound</SPAN>(emaPer)<br />&#160;&#160;<SPAN style="color:#00007F">For</SPAN> z = x <SPAN style="color:#00007F">To</SPAN> y - 1<br />&#160;&#160;.Cells(z + 1, "J") = EMAdif(z + 1) - emaPer(z)<br />&#160;&#160;<SPAN style="color:#00007F">Next</SPAN> z<br /> <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br /><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN> <SPAN style="color:#007F00">'written by Exceltrader www.exceltrader.net</SPAN><br /></FONT></p>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/470/macd-vba/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Data Converter to Convert OHLC Data to a larger timeframe.</title>
		<link>http://exceltrader.net/414/data-converter-to-convert-ohlc-data-to-a-larger-timeframe/</link>
		<comments>http://exceltrader.net/414/data-converter-to-convert-ohlc-data-to-a-larger-timeframe/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 22:39:56 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Automated trading Systems]]></category>
		<category><![CDATA[Backtesting]]></category>
		<category><![CDATA[Equities]]></category>
		<category><![CDATA[Excel as a Trading Platform]]></category>
		<category><![CDATA[S&P futures]]></category>
		<category><![CDATA[Data Conversion]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Forex]]></category>
		<category><![CDATA[futures]]></category>
		<category><![CDATA[live data]]></category>
		<category><![CDATA[OHLC]]></category>
		<category><![CDATA[stocks]]></category>
		<category><![CDATA[timeframe]]></category>
		<category><![CDATA[trading]]></category>
		<category><![CDATA[vba]]></category>
		<category><![CDATA[xls]]></category>

		<guid isPermaLink="false">http://www.exceltrader.net/?p=410</guid>
		<description><![CDATA[If you have ever wanted to take your existing Open High Low Close historical trading data and convert it into larger time frame, the following Excel VBA based data converter I wrote may do the trick. DataConverter.xls allows you to configure the Number of OHLC bars that should be condensed down into a single bar. [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever wanted to take your existing Open High Low Close historical trading data and convert it into larger time frame, the following Excel VBA based data converter I wrote may do the trick.</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/DataConverter.GIF"><img class="alignnone size-full wp-image-411" title="DataConverter" src="http://www.exceltrader.net/wp-content/uploads/DataConverter.GIF" alt="DataConverter" width="592" height="349" /></a></p>
<p>DataConverter.xls allows you to configure the Number of OHLC bars that should be condensed down into a single bar. You also can list the file name, sheet, and columns where your data is located.  The data will almost instantly be transformed into the higher time frame you have requested.</p>
<p>Instructions:</p>
<ol>
<li>Download      <a href="/wp-content/uploads/DataConverter.xls">DataConverter.xls</a> (*last updated 1/1/2011)</li>
<li>Open      DataConverter.xls. (Quickstart!: Skip the directions below. Just Open file and press &#8220;Convert&#8221; to see how it works with default settings.</li>
<li>If      you have OHLC Data in a workbook, open that file (you can also just use      the default sample data that is contained on the sample data sheet in      DataConverter.xls)</li>
<li>Enter      the Column letter for each type of data (Time/date, Open, High, Low,      Close, Volume)</li>
<li>Enter the Name of the WorkBook and worksheet that contain the data. For example, to convert 1 Minute bars to 4 minute bars, simply enter 4. To convert 3 minute bars to 15 minute bars enter 5 (5*3=15) etc etc.</li>
<li>Finally press the &#8220;Convert&#8221; Button.  The converted data will appear in a new workbook. Save as desired.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/414/data-converter-to-convert-ohlc-data-to-a-larger-timeframe/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Constant Volume Charts added</title>
		<link>http://exceltrader.net/403/constant-volume-charts-added/</link>
		<comments>http://exceltrader.net/403/constant-volume-charts-added/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 02:39:27 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Excel as a Trading Platform]]></category>
		<category><![CDATA[Excel/VBA Automated Trading Platform]]></category>
		<category><![CDATA[S&P futures]]></category>
		<category><![CDATA[Updates/Change log]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Automated trading Systems]]></category>
		<category><![CDATA[backtest]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[Charts]]></category>
		<category><![CDATA[Constant Volume bars]]></category>
		<category><![CDATA[constant volume chart]]></category>
		<category><![CDATA[ib]]></category>
		<category><![CDATA[interactive brokers]]></category>
		<category><![CDATA[live data]]></category>
		<category><![CDATA[OHLC]]></category>
		<category><![CDATA[S&P 500]]></category>
		<category><![CDATA[trading]]></category>
		<category><![CDATA[twsDde.xls]]></category>

		<guid isPermaLink="false">http://www.exceltrader.net/?p=403</guid>
		<description><![CDATA[I have added the option of constant volume  bar charts (as alternative to time based) for the The constant volume bar option, updates a new bar after a certain amount of volume has completed. This amount should be entered into D3 of the &#8220;Live&#8221; sheet. Checks are in place to prompt if the values are [...]]]></description>
			<content:encoded><![CDATA[<p>I have added the option of constant volume  bar charts (as alternative to time based) for the <a href="http://exceltrader.net/atsxls-ib-automated-trading-charting-and-backtesting/">Excel/VBA based automated trading platform</a></p>
<p>The constant volume bar option, updates a new bar after a certain amount of volume has completed. This amount should be entered into D3 of the &#8220;Live&#8221; sheet. Checks are in place to prompt if the values are not entered and the constant volume is set to override the default time based bars.</p>
<p>Below is an example of Constant volume bar charting. You will notice that each bar contains roughly the same amount of volume.</p>
<p><a href="http://www.exceltrader.net/wp-content/uploads/CV.GIF"><img class="alignnone size-full wp-image-404" title="CV" src="http://www.exceltrader.net/wp-content/uploads/CV.GIF" alt="CV" width="293" height="598" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/403/constant-volume-charts-added/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Excel as a Trading Platform</title>
		<link>http://exceltrader.net/147/microsoft-excel-as-a-trading-platform/</link>
		<comments>http://exceltrader.net/147/microsoft-excel-as-a-trading-platform/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 14:34:51 +0000</pubDate>
		<dc:creator>ExcelTrader</dc:creator>
				<category><![CDATA[Excel as a Trading Platform]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[trading]]></category>

		<guid isPermaLink="false">http://www.exceltrader.net/?p=147</guid>
		<description><![CDATA[In this article I discuss the pros and cons of Excel as a trading platform. A little History Over the last 16 years of trading, I have used a lot of trading platforms: broker platforms, third party vendor platforms and small applications written by private programmers. One thing all these platforms have had in common [...]]]></description>
			<content:encoded><![CDATA[<p><em>In this article I discuss the pros and cons of Excel as a trading platform.</em></p>
<p><strong>A little History</strong></p>
<p>Over the last 16 years of trading, I have used a lot of trading platforms: broker platforms, third party vendor platforms and small applications written by private programmers. One thing all these platforms have had in common is that at some point I had a simple task or feature that was not already built in or impossible to implement.</p>
<p>As a long time user of Microsoft Excel, Excel became an obvious choice once Interactive Brokers began supporting excel with their API. I am not a programmer by formal education; however the learning curve for programming VBA for Excel is very fast. The key for me was buying a few great Excel books and using them for reference.</p>
<p><strong>Why Excel may not be the best choice:</strong></p>
<ul>
<li>Even standard (free) broker platforms a capable of a lot. If your trading strategies are not complex for example you only want to be able to enter stop losses and limit orders before going to work, there would be little reason to use excel as a trading platform.</li>
</ul>
<ul>
<li> Excel can be a little too slow for scalping (entering and exiting within seconds), occasionally I have seen lag of a few seconds before excel begins sending the order.</li>
</ul>
<ul>
<li> Although the learning curve is quick it does require a lot of time to program, error proof and test your work.</li>
</ul>
<ul>
<li> For non Windows users or users wanting to change to another operating system, Excel would not be a likely choice.</li>
</ul>
<p><strong>Why Excel may be the best choice:</strong></p>
<ul>
<li>Most people have at least some familiarity with Microsoft Excel. Any previous experience greatly decreases the learning curve.</li>
</ul>
<ul>
<li>You can do almost anything in Microsoft excel. There has never been anything that I wanted to do in Excel that was impossible. I may have initiallythought it was impossible, but in the end I always found a way.</li>
</ul>
<ul>
<li> There are fantastic resources to get help writing code. I have often asked questions on the Mr. Excel forums and received fast answers from professional programmers.</li>
</ul>
<ul>
<li> Contrary to what many believe, you can create great charts in Microsoft excel. (The charts I post on this blog are in Excel!)<br />
Save Money! If you already own it then you save a lot of money by not having to pay for expensive trading platforms or charting programs</li>
</ul>
<p><strong>Is it the best choice?</strong><br />
For someone with little or no programming experience but who wants to implement complex trading strategies with a high degree (limitless?) of complexity and customization Excel may be the perfect choice. It certainly has been for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://exceltrader.net/147/microsoft-excel-as-a-trading-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

