<?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>Quantum Fading &#187; Simulations</title>
	<atom:link href="http://blog.quantumfading.com/tag/simulations/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quantumfading.com</link>
	<description>Leveraged ETF Research and News</description>
	<lastBuildDate>Fri, 08 Jan 2010 05:00:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>When History Repeats Itself &#8211; Part 1 &#8211; 2004 to 2007 Bull Market</title>
		<link>http://blog.quantumfading.com/2010/01/08/when-history-repeats-itself-part-1-2004-to-2007-bull-market/</link>
		<comments>http://blog.quantumfading.com/2010/01/08/when-history-repeats-itself-part-1-2004-to-2007-bull-market/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 05:00:37 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Historical]]></category>
		<category><![CDATA[Simulations]]></category>

		<guid isPermaLink="false">http://blog.quantumfading.com/?p=173</guid>
		<description><![CDATA[While most traders and investors seem to be aware of the effects of decay and compounding with leveraged ETFs over multi-day periods, few likely understand how they might work over multi-year horizons. Most of the 3x ETFs have been around for about just a year, and nearly all 2x ETFs never experienced the entire previous [...]]]></description>
			<content:encoded><![CDATA[<p>While most traders and investors seem to be aware of the effects of <a href="http://blog.quantumfading.com/2009/06/01/leveraged-decay/" target="_self">decay</a> and <a href="http://blog.quantumfading.com/2009/06/25/leveraged-etfs-and-compounding/" target="_self">compounding</a> with leveraged ETFs over multi-day periods, few likely understand how they might work over multi-year horizons. Most of the 3x ETFs have been around for about just a year, and nearly all 2x ETFs never experienced the entire previous bull market. In the interest of attempting to understand the long term characteristics of leveraged ETFs, it is possible to simulate their performance over long time horizons by using non leveraged ETFs that track similar indexes as their leveraged counterpart.</p>
<p>Today’s post will demonstrate the estimated and <em><strong>hypothetical</strong></em> performance of several popular 2x and 3x leveraged ETFs during the course of the 2004 to 2007 market. To make it a bit easier to visualize their performance, the daily returns from the historical period have been added to the last day of 2009. (The first days of 2010 have been ignored). In other words, if leveraged ETF XXX is at 10.0 at the end of 2009, and the simulated performance for the year of 2004 was 10%, the chart will show XXX at 11.0 at the end of 2010. If history were to repeat itself and we have a bull market similar to the 2004-2007 period, perhaps some of these leveraged ETFs might have similar performance characteristics as these charts.</p>
<p><strong>S&amp;P500</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/SPX.png" alt="" width="580" height="350" /></p>
<p><strong>SSO</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/SSO.png" alt="" width="580" height="350" /></p>
<p><strong>SDS<br />
</strong><img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/SDS.png" alt="" width="580" height="350" /></p>
<p><strong>UYG</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/UYG.png" alt="" width="580" height="350" /></p>
<p><strong>SKF</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/SKF.png" alt="" width="580" height="350" /></p>
<p><strong>FAS</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/FAS.png" alt="" width="580" height="350" /></p>
<p><strong>FAZ</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/FAZ.png" alt="" width="580" height="350" /></p>
<p><strong>TNA</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/TNA.png" alt="" width="580" height="350" /></p>
<p><strong>TZA</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/TZA.png" alt="" width="580" height="350" /></p>
<p><strong>ERX</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/ERX.png" alt="" width="580" height="350" /></p>
<p><strong>ERY</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/ERY.png" alt="" width="580" height="350" /></p>
<p><strong>EDC<br />
</strong><img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/EDC.png" alt="" width="580" height="350" /></p>
<p><strong>EDZ</strong><br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0014/EDZ.png" alt="" width="580" height="350" /></p>
<p><strong>Analysis<br />
</strong>Generally speaking, the bull leveraged ETFs clearly succeed when volatility is low and the underlying index achieves significant gains. Even though ERX tracks a relatively volatile index (compared to the S&amp;P 500), the index’s gains were so significant that ERX would have likely experienced significant gains during the last bull market. Alternately, ERY suffers from both significant decay and also decline due to being the inverse of a bullish index. Although these charts put leveraged bull ETFs in a good light, these results are only hypothetical, and future posts on this topic will show the losses (or gains) leveraged ETFs can experience in other scenarios.</p>
<p>If you like these simulations, you can see similar simulations (as well as more data) using <a href="http://blog.quantumfading.com/software/qleveragesim/" target="_self">QLeverageSim</a>, which is a free utility for helping traders and investors understand the characteristics of leveraged ETFs.</p>
<p><span style="color: #ff0000;">Disclaimer: The results described in this post are purely hypothetical and are not an indication or guarantee of any index’s or leveraged ETF’s future performance. The leveraged ETF simulations are using data from ETFs that track similar but not the same index (such as using XLF data for FAS’s simulation). The resulting simulation data is thus inherently faulty since the leveraged ETFs track different indexes. The simulation results also do not account for fees and other costs.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quantumfading.com/2010/01/08/when-history-repeats-itself-part-1-2004-to-2007-bull-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QLeverageSim 1.3 Released</title>
		<link>http://blog.quantumfading.com/2009/09/16/qleveragesim-13-released/</link>
		<comments>http://blog.quantumfading.com/2009/09/16/qleveragesim-13-released/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 02:11:47 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[QLeverageSim]]></category>
		<category><![CDATA[Simulations]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.quantumfading.com/?p=140</guid>
		<description><![CDATA[I spent a few hours this past weekend adding a few features to QLeverageSim (which is free). The new features will eventually be covered in more detail on this blog and a user manual still needs to be written, but until then there is an overview of the new features below.  This is the list [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a few hours this past weekend adding a few features to QLeverageSim (which is free). The new features will eventually be covered in more detail on this blog and a user manual still needs to be written, but until then there is an overview of the new features below.  This is the list of changes:</p>
<p>ADDED: Decay indicator with configurable history<br />
ADDED: Leverage Factor chart<br />
ADDED: An icon for the software<br />
ADDED: Index RSI estimation chart<br />
ADDED: Drawdown chart (for leveraged ETF and estimation of index&#8217;s drawdown)<br />
ADDED: Ability to &#8216;append&#8217; the visible data to the end of a symbol&#8217;s data cache (explained below)<br />
ADDED: Checkboxes to show/hide chart series (future versions will remember settings)<br />
ADDED: EEM, UPRO, SPXU to the symbol list<br />
CHANGED: Data is now downloaded from Yahoo Finance<br />
CHANGED: Adjusted Close data is now used (now FAS/FAZ finally work)<br />
FIXED: Series Leverage % label was sometimes wrong.</p>
<p><a href="http://blog.quantumfading.com/software/qleveragesim/">Click here for the download page.</a> (Requires .NET 3.5 SP1)</p>
<p><strong>Decay Indicator</strong></p>
<p>This feature deserves a blog entry of its own (and it will get one eventually). Rather than show a chart of total decay for the visible data, there is now a configurable indicator that shows the amount of decay over a particular history. For example, a chart of FAS with a 20 day decay indicator shows how FAS was decaying at about 15-20% per month in January through April, but since June it has been decaying at about 1-2% per month. The decay has reduced significantly due to the lack of volatility relative to earlier this year.</p>
<p><img class="alignnone" src="http://www.quantumfading.com/blogposts/0012/decay.png" alt="" width="554" height="330" /></p>
<p>A decay measurement can be conceptualized as an approximation of &#8220;the amount of loss a leveraged ETF would experience if the underlying index is flat.&#8221; In the FAS chart, the ETF has been having significant gains since the index has been gaining significantly. However, if the index were to be flat over a 20 day period, FAS would have experienced roughly a 2% drop. The decay indicator is purely historical and is not intended to be used as a future indicator of performance. Decay is effectively another representation of historical daily volatility.</p>
<p><strong>Leverage Factor Chart</strong></p>
<p>It been covered on numerous blogs and articles how compounding in leveraged ETFs can work to a trader&#8217;s advantage during upward trends with low volatility. What ends up happening during these strong uptrends is that compounding can make a leveraged ETF outperform its daily leverage target. Using FAS as another example, since the March bottom there has been enough upward movement in the index such that FAS has gained at a multiple of roughly 4.42x of the underlying index. QLeverageSim&#8217;s Leverage chart shows the progress of the leveraged ETF&#8217;s leverage factor. It also works for simulations using SPY, IWM, XLF, etc. Try those and see the incredible leverage factors during bull markets.</p>
<p><img class="alignnone" src="http://www.quantumfading.com/blogposts/0012/leverage.png" alt="" width="552" height="327" /></p>
<p><strong>Drawdown Chart</strong></p>
<p>To make it a bit easier to visualize pullbacks and potential entry points, a chart of the drawdown % of both the leveraged ETF and the index (estimation) can be displayed. Here is a chart that shows the pullbacks in TNA and its underlying Russell 2000 index.</p>
<p><img class="alignnone" src="http://www.quantumfading.com/blogposts/0012/drawdown.png" alt="" width="550" height="324" /></p>
<p><strong>Data Appending</strong></p>
<p>This feature could be somewhat controversial and potentially dangerous, but I like the capabilities that it provides. Basically the feature allows the performance data of the currently visible chart to be appended to the end of the current symbol&#8217;s data. As an example, consider a trader who wants to simulate what might happen to SPY if we were to experience another drop in the market similar to the last bear drop in 2002. To do this, a user would display the region they want to copy for appending and then click Edit-Append Visible Data.</p>
<p><img class="alignnone" src="http://www.quantumfading.com/blogposts/0012/append1.png" alt="" width="565" height="423" /></p>
<p>Once the data is appended, their SPY chart will contain the same performance characteristics of the 2002 drop at the end of their most recent data.</p>
<p><img class="alignnone" src="http://www.quantumfading.com/blogposts/0012/append2.png" alt="" width="565" height="423" /></p>
<p>Another potential use of &#8216;appending&#8217; is to approximate the kind of market activity that would be required to result in RSI&#8217;s reaching a particular value. A less sophisticated trader looking to sell when RSI reaches 70 might try appending/resetting data to see what kind of future data would be required to reach their target value. This technique is certainly not recommended, but since all indicators and values are updated accordingly with the appended data, the feature does allow for traders to &#8216;play&#8217; with market data to see how past performance applied to the future would affect the resulting values of leveraged ETFs and indicators. As a warning, since RSI is dependent on both time and strength, there is no guarantee that a particular ETF value in the future will result in a particular RSI value. It depends on the ETF&#8217;s path to that point.</p>
<p><strong>FAQ</strong></p>
<p><em>What does QLeverageSim do?</em><br />
QLeverageSim is a basic (free) utility that can simulate leveraged ETFs from historical data of 1x ETFs. It also displays other information and indicators such as amount of decay, drawdown, effective leverage, gains, and RSI.</p>
<p><em>Does QLeverageSim make trade suggestions or place trades?</em><br />
No. QLeverageSim is for simulations and analysis of historical data only.</p>
<p><em>What is the purpose of QLeverageSim?</em><br />
QLeverageSim was designed for the sole purpose of helping traders understand the characteristics of leveraged ETFs in a variety of different market scenarios such as trending up, trending down, sideways, volatile, calm, bull and bear.</p>
<p><em>Who should use QLeverageSim?</em><br />
Traders and investors who want to understand the performance characteristics of swing trading or long term investing in leveraged ETFs.</p>
<p><em>How accurate are the simulations and calculations?</em><br />
Nearly all calculations could be done in excel and give the same results. However, no simulation or calculation includes transaction fees, costs, or taxes.</p>
<p><em>How much does QLeverageSim cost?</em><br />
It is free.</p>
<p><em>Who wrote the QLeverageSim software?</em><br />
Kevin Kerr (me) over the course of several weekends.</p>
<p><em>What is needed to run QLeverageSim software?</em><br />
A windows PC with .NET Framework 3.5 SP1 installed.</p>
<p><em>Where does QLeverageSim get its data?</em><br />
finance.yahoo.com</p>
<p><em>Is there a user manual or guide that explains the various indicators and charts?</em><br />
A user manual will be written eventually, but currently one does not exist. The decay calculations are best described in the Measuring Leveraged ETF Decay article. Any questions or comments can be sent to my first name (Kevin) at quantumfading.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quantumfading.com/2009/09/16/qleveragesim-13-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Historical Data Randomization Using the Frequency Domain (Preview)</title>
		<link>http://blog.quantumfading.com/2009/08/24/historical-data-randomization-using-the-frequency-domain-preview/</link>
		<comments>http://blog.quantumfading.com/2009/08/24/historical-data-randomization-using-the-frequency-domain-preview/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 04:00:10 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Backtesting]]></category>
		<category><![CDATA[Frequency Domain]]></category>
		<category><![CDATA[Randomization]]></category>
		<category><![CDATA[Simulations]]></category>

		<guid isPermaLink="false">http://blog.quantumfading.com/?p=122</guid>
		<description><![CDATA[Identifying a Strategy&#8217;s Risks
Recently I decided to try to stress test one of my own personal strategies (it is a 100% mechanical mean reversion strategy). I wanted to see how this strategy might perform in a variety of market conditions, such as a random but similar market crash of 2008. Ultimately, I wanted control over [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><strong>Identifying a Strategy&#8217;s Risks</strong></p>
<p align="left">Recently I decided to try to stress test one of my own personal strategies (it is a 100% mechanical mean reversion strategy). I wanted to see how this strategy might perform in a variety of market conditions, such as a random but similar market crash of 2008. Ultimately, I wanted control over randomizing historical data such that I can perform tests against infinite sets of data such as:</p>
<p align="left">1.  Crashes similar to 2008<br />
2.  Crashes 5% worse than 2008<br />
3.  Crashes 10% worse than 2008 (etc.)<br />
4.  Bull markets<br />
5.  Bear markets<br />
6.  Sideways markets<br />
7.  Volatile and nonvolatile</p>
<p align="left">Unfortunately, historical ETF data only goes back about a decade or so. Hence the data is somewhat limited for finding a variety of such scenarios. In some discussions with a friend (PhD in electronics), it was brought up that I should take a look at performing randomization in the frequency domain rather than the time domain. Since we are both more familiar with digital signal processing rather than statistics, it was only natural for us. I will explain the details of the technique in the next post covering this research.</p>
<p align="left"><strong>Charting the Randomized Data</strong></p>
<p align="left">I was not expecting much from the results, but a few tests and tweaks gave me data that was exactly what I was looking for. Here are some demonstrations. (<span style="color: #339966;">green is original data</span>, <span style="color: #ff0000;">red is a random data set</span>)</p>
<p><strong>Crash similar/worse than 2008<br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0010/1.png" alt="" width="583" height="273" /></strong></p>
<div><strong><br />
Crash much worse than 2008<br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0010/2.png" alt="" width="581" height="275" /></strong></div>
<p><strong><br />
<strong>Strong bull market (followed by a severe crash)<br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0010/3.png" alt="" width="580" height="273" /></strong></p>
<p></strong></p>
<div><strong><br />
<strong>Volatile market<br />
<img class="alignnone" src="http://www.quantumfading.com/blogposts/0010/4.png" alt="" width="576" height="231" /></strong></strong></div>
<p><strong> </p>
<p></strong></p>
<p> </p>
<p align="left">Performing frequency modifications gives control over how the data is manipulated. By adding randomness to the low frequencies, steep bear and bull markets can be created. By adding randomness to high frequencies, volatile markets can be created. It is much like how an equalizer for a stereo system controls the amount of bass (bull/bear markets) and treble (volatility).</p>
<p align="left"><strong>Purpose of Frequency Domain Randomization</strong></p>
<p align="left">The reason I am interested in this research is <em>not to optimize</em> a strategy against a variety of random historical data sets, but rather to <em>identify risks</em>. For example, my personal strategy has a weakness of fully scaling in too early during strongly trending markets. By changing some parameters to my strategy, I was able to not only maintain the original performance on the original data set, but also significantly reduce drawdowns during significant trends in the random data sets (like a 2008 bear market that drops by 75%).</p>
<p>I will provide more details of the research as it develops.  If the technique proves useful, I can add it to QLeverageSim or just create a standalone utility for generating the random data.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quantumfading.com/2009/08/24/historical-data-randomization-using-the-frequency-domain-preview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
