<?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>Au.Tra.Sy blog - Automated trading System &#187; comparison</title>
	<atom:link href="http://www.automated-trading-system.com/tag/comparison/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automated-trading-system.com</link>
	<description>Systematic Trading research and development, with a flavour of Trend Following</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:58:33 +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 apply Leverage?</title>
		<link>http://www.automated-trading-system.com/how-to-apply-leverage/</link>
		<comments>http://www.automated-trading-system.com/how-to-apply-leverage/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 15:16:42 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[fees]]></category>
		<category><![CDATA[leverage]]></category>
		<category><![CDATA[notional funding]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2091</guid>
		<description><![CDATA[Several CTAs or fund managers offer a standard version of their fund, along with a leveraged version (called enhanced risk, 2x or 3x fund, etc.). However a simple performance comparison of the leveraged option against the standard option usually makes it obvious that the former does not offer a simple performance multiplier of latter. I [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2092" class="wp-caption aligncenter" style="width: 510px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/Leverage_WilWheaton2.jpg" alt="picture credits: WilWheaton@flickr" title="Leverage_WilWheaton2" width="500" height="172" class="size-full wp-image-2092" /><p class="wp-caption-text">picture credits: WilWheaton@flickr</p></div>
<p>Several CTAs or fund managers offer a standard version of their fund, along with a <strong>leveraged version</strong> (called enhanced risk, 2x or 3x fund, etc.). However a simple performance comparison of the leveraged option against the standard option usually makes it obvious that the former does not offer a simple performance multiplier of latter.</p>
<p>I was looking at Conquest Capital Group and their MFS fund (based on the Trend Following benchmark used in their paper <a href="http://www.automated-trading-system.com/betafication-alpha-commoditization-trend-following/">discussed here</a>), which offers two such options: their standard fund and a 3x option.</p>
<p>The main fund, since inception (2004), returns 56% (net of fees) with a max drawdown of 14%. Their 3x leveraged option, over the same period, returns 85% with a max drawdown of 47%. The <em>risk</em> is indeed tripled, but the <em>reward</em> falls fairly short of it. When removing the fees on both funds (1% for the standard fund and 3% on the leveraged fund), the performances are 66% vs. 120%. This is just an example. Most CTAs are similar in that respect and it highlights some effects of leverage.<span id="more-2091"></span></p>
<h3>Leverage is not a magic bullet</h3>
<p>A similar concept has become more mainstream with the recent apparition of leveraged ETFs and the realisation by <em>some</em> investors of the large volatility decay that they incur (when they are held on a long term-basis, i.e. anything longer than intra-day). Check the long-term charts of FAS and FAZ (3x leveraged bullish and bearish financial ETFs): the only long-term profitable trade would be to short both, to cash in on the volatility decay while being hedged (since Nov 08 they are down respectively 58% and 98%).</p>
<p>This is simply due to the design of these instruments, which aim to replicate and triple the daily returns of the tracked benchmark. This highlights a fact about leverage: <strong>multiplying the arithmetic returns will not result in the same multiplication of the geometric returns</strong>.</p>
<h3>Leverage with Position Sizing</h3>
<p>A typical way of leveraging a trading strategy is to increase the position size, and the resulting risk and return for each trade.</p>
<p>Assuming a fractional betting strategy for position sizing, the leverage dictated by the value of the fraction of capital risked on each trade will impact the overall average geometric return. Theories describing this phenomenon are the <a href="http://en.wikipedia.org/wiki/Kelly_criterion" target="_blank" rel="nofollow">Kelly criterion</a> and <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince" target="_blank" rel="nofollow">Ralph Vince&#8217;s Optimal f</a>.</p>
<p>One of the main implications of this type of Money Management is that, for every strategy, there is an optimal fractional position size to maximize the (past) geometric return (and future if you assume that the past is a good representation of the future). Any fractional position size higher than this optimal value would result in a lower return.</p>
<p>Any strategy (with its resulting stream of returns) has an <strong>embedded maximum leverage</strong>, which can be defined with the optimal f.</p>
<h3>Notional funding: another type of Leverage</h3>
<p>Notional funding can be compared to trading with <em>imaginary money</em>. Typically, CTAs also offer notional funding: they trade your account based on an agreed notional amount, which is different from the actual funds in the account. For example, you could send 100k to your CTA and instruct them to trade it as if it were a 300k account. Or you could do the same thing with your own trading system.</p>
<p>One could intuitively think that this is exactly the same thing as tripling the position size but there is a difference.</p>
<p>Let&#8217;s consider this simple example with a strategy producing two consecutive trades of +10% and -5%:</p>
<p>The notional-funded account would close at 300 x 1.10 x 0.95 = 313.50. This would result in a gain of 13.50 on actual funds of 100: +13.50%, which is exactly triple the return one would get on a fully-funded, unleveraged account (100 x 1.10 x 0.95 = 104.50 for a 4.5% return)</p>
<p>Leveraging by tripling the position size on an account of 100 would result in two consecutive trades of +30% and -15%. Final balance would be: 100 x 1.30 x 0.85 = 110.50 &#8211; or a +10.50% return.</p>
<p>Initially, notional funding appears a better solution to the leverage issue as it does not suffer from the <em>volatility decay</em> or erosion of returns introduced by increasing position size.</p>
<h3>Issues with Notional Funding: Cost</h3>
<p>But funding always comes at a cost, pretty much in the same way as an overdraft gets charged by your bank. Another way to look at notional funding is to compare it to borrowing trading capital. The higher ratio of your notional account you borrow (higher leverage), the more the <em>cost of borrowing</em> will impede your trading returns.</p>
<p>In practice, you do not really borrow any funds (only by the power of imagination) but this practice still ends up impacting your return when you start taking into consideration the return on margin.</p>
<h3>Impact of Margin Interest on Trend Following Returns</h3>
<p>This <a href="http://docs.edhec-risk.com/EID-2008-Doc/documents/Evaluating_Trend-Following_Commodity_Index.pdf<br />
" target="_blank" rel="nofollow">paper from EDHEC Risk (PDF)</a> looks at Trend Following/Managed Futures performance and presents an interesting breakdown of the overall return of such strategy. Assuming interest being paid at T-bill rates on the margin used for trading, it represents the bulk of the returns compared to actual Trend Following gains and rebalancing gains.</p>
<p>This is one of the reasons for the <em>hidden cost</em> of notional funding: a notional-funded account would enjoy the same Trend Following and rebalancing gains as a fully-funded account of the same size, but only a fraction of the return on margin (which is based on the <em>actual</em> account size).</p>
<p>To illustrate that point, below is a chart showing the impact of fees and margin interest on an arbitrary performance curve:</p>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/Fees_Margin1.png" alt="my caption" title="Fees_Margin" width="475" height="299" class="size-full wp-image-2096" />
<p>Notice the fairly sizable difference between taking return on margin into account or not (red v. blue curves). The green curve adds fees at 1% annually. The return on margin was assumed to be the T-bill rate for that month.</p>
<h3>Risk and Margin Requirements</h3>
<p>Another issue of Notional funding used as leverage are the constraints imposed by the underlying strategy.</p>
<p>Any strategy requires a minimum margin commitment to support the positions. Effectively the <strong>Margin-to-Equity</strong> ratio will dictate the <strong>maximum leverage</strong> one can use to trade a strategy.</p>
<p>The <strong>Drawdown</strong> is also a leverage-limiting factor: the more risk the strategy generates (higher drawdowns), the less leverage can be applied. If a strategy regularly exhibits drawdowns at the 40% level, there is a always the possibility that such drawdown appears at the beginning of trading the strategy. Based on the level of leverage, a notional-funded account might not have the time to build enough equity cushion to withstand the drawdown, which would result in the actual account funds going to 0 or a margin call.</p>
<p>Note that in this case, the sequence of trade returns has an impact on the outcome: if the strategy produces gains of 100% followed by a drawdown of 40% a 3x leverage via notional funding would still result in a gain of 60% (300 x 2 x 0.6 = 360, or a profit of 60 with actual funds of 100). If the 40% drawdown appears first, the notional account would shrink to 180, which would result in a negative actual account balance (trading would have to be stopped before then).</p>
<h3>Leverage Comparisons</h3>
<p>With these considerations and the benefit of hindsight, here is a comparison between the same arbitrary strategy as above (fees and interest included) traded with:</p>
<ul>
<li>no leverage</li>
<li>6x leverage using notional funding</li>
<li>6x leverage using position sizing</li>
</ul>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/6xLeverage.png" alt="my caption" title="6xLeverage" width="482" height="332" class="size-full wp-image-2093" />
<p>The notional funding <em>appears</em> to be the better option. However the position sizing leverage is independent of the order in the sequence of returns &#8211; as opposed to the notional funding leverage. If that nasty current drawdown (which is the largest one historically) had appeared at the beginning of trading and carried on further to reach 17%, the notional-funded account would have been wiped out.</p>
<p>The next chart highlights the impact of leverage on the difference between the two types of leverage for that specific strategy:</p>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/Performance_V_Leverage.png" alt="my caption" title="Performance_V_Leverage" width="472" height="319" class="size-full wp-image-2094" />
<p>The target curve represents a simple multiplier (equal to the leverage factor) of the unleveraged performance (which, as we have shown is not attainable). The position sizing leverage clearly exhibits the behaviour discussed in Optimal f theories with the return breaking down past the optimal value.</p>
<p>Hopefully, this gives you a few ideas about how to work leverage in your trading strategies or when sending funds to CTAs. Taking the time to look into it has cleared up a few points for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/how-to-apply-leverage/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Thinking of buying Trading Blox?</title>
		<link>http://www.automated-trading-system.com/trading-blox-teaser-review/</link>
		<comments>http://www.automated-trading-system.com/trading-blox-teaser-review/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 11:59:29 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Backtest]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[amibroker]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[rollover]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[tradersstudio]]></category>
		<category><![CDATA[Trading Blox]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1422</guid>
		<description><![CDATA[Well, I am&#8230; Regular readers might think that I suffer from backtesting-software-indecision-itis. Having first settled for TradersStudio, I then evaluated (and purchased) AmiBroker and found that it was 25 times faster than TradersStudio (at least for the calculation of the e-ratio). However, AmiBroker is not really geared towards true portfolio allocation testing with Futures and [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I am&#8230;<br />
<a href="http://www.tradingblox.com/" target="_blank" rel="nofollow"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/TradingBloxLogo.jpg" alt="TradingBloxLogo" title="TradingBloxLogo" width="235" height="90" class="aligncenter size-full wp-image-1424" /></a></p>
<p>Regular readers might think that I suffer from <em>backtesting-software-indecision-itis</em>. Having <a href="http://www.automated-trading-system.com/tradersstudio-systems-testing-software/">first settled for TradersStudio</a>, I then evaluated (and purchased) AmiBroker and found that it was <a href="http://www.automated-trading-system.com/amibroker-tradersstudio-speed-comparison/">25 times faster than TradersStudio</a> (at least for the <a href="http://www.automated-trading-system.com/tag/e-ratio/">calculation of the e-ratio</a>). However, AmiBroker is not really geared towards true portfolio allocation testing with Futures and could not just <em>replace</em> TradersStudio &#8211; so I purchased it as a (cheap: $199) complement to it.</p>
<h3>Why TradersStudio in the first place?</h3>
<p>During my first round of evaluation, I did hesitate between TradersStudio and <a href="http://www.tradingblox.com/" target="_blank" rel="nofollow">Trading Blox</a>. At the time, it appeared that there was not a huge difference in functionality but a substantial price difference ($499 for TradersStudio, $3,000 for the full version of Trading Blox Builder). And this is how the choice was made.</p>
<p>However, I never really got past my TraderStudio&#8217;s first (not so good) impressions. Ultimately, I find the platform awkward to work with, documentation rather poor and the user community is very small.</p>
<p>So I decided to give Trading Blox another go and test their latest trial version (v3.3), and give you a <em>teaser</em> review of it.</p>
<h3>Trading Blox: friendly, efficient, fast, professional</h3>
<p>Trading Blox is vastly superior in terms of <span id="more-1422"></span>user interface &#8220;friendliness&#8221; and efficiency (love that script management/edit screen!). This makes the documentation lookup less necessary (and in any case, it is rather better).</p>
<p>The simulation runs are also very fast (300 stepped parameter tests under 7 minutes) and the software comes pre-packed with about a dozen ready-coded systems including the famous Turtle Trading system.</p>
<p>Finally, the numerous backtest options (slippage, commission, rollover slippage, volume, interest, etc.) should simulate trading reality much more closely.</p>
<p>Overall, it feels that the difference between Trading Blox and TradersStudio can be summed up by <em>Pro vs. Amateur</em>: both good at what they do, but playing in different leagues.</p>
<h3>User community</h3>
<p><a href="http://www.tradingblox.com/forum/" target="_blank" rel="nofollow">Trading Blox forum</a> is very good, with top-notch contributors. I joined it a few months ago and the discussion there is top-level, be it on all aspects of trading in general, backtesting, Data problems, Trading Blox questions, etc. It also has a <em>marketplace</em> where users can exchange code/systems, etc. This forum played a big part in my decision to re-consider Trading Blox (TradersStudio&#8217;s own forum and yahoo user group are barely ticking&#8230;).</p>
<h3>In closing: screenshots</h3>
<p>I feel I am about to give in and &#8220;cut my losses short&#8221; with TradersStudio and redeploy my resources towards Trading Blox. In the end, it is a &#8220;time vs dollar trade&#8221; and I feel that the initial outlay will give a great payback (in time savings and progress made). After all, automated trading is a business and one should not shy away from the essential investments.</p>
<p>Tomorrow, I should post a detailed system test using Trading Blox; but for now please find below some screenshots of the software (click to zoom in):<br />
<div id="attachment_1434" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/TradingBloxSampleResults.htm" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/ResultReports-150x150.png" alt="Result Reports" title="ResultReports" width="150" height="150" class="size-thumbnail wp-image-1434" /></a><p class="wp-caption-text">Result Reports</p></div><br />
<div id="attachment_1431" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/GeneralOptions.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/GeneralOptions-150x150.png" alt="rich choice in general options" title="GeneralOptions" width="150" height="150" class="size-thumbnail wp-image-1431" /></a><p class="wp-caption-text">rich choice in general options</p></div><br />
<div id="attachment_1432" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/SystemEditor.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/SystemEditor-150x150.png" alt="System Editor" title="SystemEditor" width="150" height="150" class="size-thumbnail wp-image-1432" /></a><p class="wp-caption-text">System Editor</p></div><br />
<div id="attachment_1433" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/BloxEditor.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/BloxEditor-150x150.png" alt="Blox Editor" title="BloxEditor" width="150" height="150" class="size-thumbnail wp-image-1433" /></a><p class="wp-caption-text">Blox Editor</p></div><br />
<div id="attachment_1435" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/ResultsScatterPlot_P0.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/ResultsScatterPlot_P0-150x150.png" alt="Heat map for stepped parameter" title="ResultsScatterPlot_P0" width="150" height="150" class="size-thumbnail wp-image-1435" /></a><p class="wp-caption-text">Heat map for stepped parameter</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/trading-blox-teaser-review/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Moving Median: a better indicator than Moving Average?</title>
		<link>http://www.automated-trading-system.com/moving-median-better-indicator-than-moving-average/</link>
		<comments>http://www.automated-trading-system.com/moving-median-better-indicator-than-moving-average/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 12:52:45 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[average]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[crossover]]></category>
		<category><![CDATA[median]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[robust]]></category>
		<category><![CDATA[Trend Following]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1237</guid>
		<description><![CDATA[While searching for robustness, you might come across the term of robust statistical estimator: the median, for instance, is a robust measure of central tendency, while the mean (average) is not (the latter is much more sensitive to outliers). Robustness in trading is a tough beast to tame and understand. The more &#8220;robust&#8221; the research [...]]]></description>
			<content:encoded><![CDATA[<p>While searching for robustness, you might come across the term of <em>robust statistical estimator</em>: the median, for instance, is a robust measure of central tendency, while the mean (average) is not (the latter is much more sensitive to outliers).</p>
<p>Robustness in trading is a <a href="http://www.automated-trading-system.com/robustness-definitions/">tough beast to tame and understand</a>. The more &#8220;robust&#8221; the research and development process, the better (read: <em>robust</em>) the results ought to be, right? With this in mind, I decided to test robust &#8220;tools&#8221; within the actual mechanical trading strategy itself.</p>
<p>The moving average indicator is so ubiquitous in trading that most folks (me included) use it without second thoughts. Its legacy probably dates from the era of expensive and complicated computing (it is relatively inexpensive to compute), so I wanted to revisit its hegemony &#8211; and give it a run for its money: by pitching it against a <em>moving median</em> indicator (on the basis of better statistical robustness for the latter).</p>
<p><em>Could it be that a moving median is actually a better indicator than the moving average?&#8230;</em><span id="more-1237"></span></p>
<h3>The experiment</h3>
<p>To find out I used a basic and simple mechanical trading strategy: the <strong>Moving Average Crossover</strong>. This trading systems is always in the market, buys when the fast moving average crosses <em>over</em> the slow moving average and sells short when the fast average crosses <em>under</em> the slow average.</p>
<p>The second system would be a <strong>Moving Median Crossover</strong>. You guessed it: the same system, but replacing the average by the median.</p>
<p>The markets tested were a random collection of 17 Futures daily prices (proportionally back-adjusted contracts) &#8211; all going back as far as CSI history goes (1920&#8242;s for Wheat!):</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
      CSI Num.
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
      &nbsp;Futures Contract
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
      1st Date
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
5
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Pork Bellies (Floor+Electronic Combined)-CME
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
20/09/1963
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
25
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Swiss Franc-CME-(Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
16/05/1972
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
26
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;British Pound-CME(Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
01/01/1970
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
41
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;T-Bill-U.S. 3 Mth-CME(Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
01/06/1976
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
64
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Canadian Dollar-CME(Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
16/05/1972
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
65
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Japanese Yen-CME(Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
16/05/1972
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
150
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;T-Note-U.S. 10 Yr w/Prj A-CBT(Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
05/03/1982
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
290
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;S&#038;P 500-CME(Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
01/03/1950
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
412
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Corn-CBT (Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
01/03/1949
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
413
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Wheat-CBT (Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
01/03/1922
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
856
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Crude Oil-Light-NYMEX(Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
30/03/1983
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
859
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Platinum-NYMEX(Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
14/01/1964
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
868
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Silver-COMEX(Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
21/06/1963
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
869
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Natural Gas-Henry Hub-NYMEX(Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
03/04/1990
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
1148
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Cocoa-NYCE(Floor+Electronic Combined)
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
30/12/1965
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;" align = "right">
1150
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
&nbsp;Orange Juice-Frozen-NYCE (Floor+Electronic Combined)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding-left:2px; font-size: 0.7em;">
26/10/1966
    </td>
</tr>
</table>
<p>&nbsp;<br />
The money management for both systems is to trade each instrument in a separate independent sub-account, fully funded (i.e. no leverage used) with profit re-invested. All commissions or slippage are ignored.</p>
<p>The main interest of the experiment is the robustness of each indicator. To quantify this, each system is run over <strong>9 combinations of parameters for the Golden Cross</strong> (fast indicator values: <strong>45, 50 and 55 days</strong>; slow indicator values: <strong>180, 200 and 220 days</strong>). A measure of the robustness of the indicator is the uniformity of the results over the 9 combinations.</p>
<h3>The results</h3>
<p>Below are the total returns for both systems over each parameter set:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px;">
      Params<br />(Slow/Fast)
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px;">
      Average Sys.
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px;">
      Median Sys.
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
180 / 45
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">621.35%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">391.33%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
180 / 50
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">682.41%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">71.48%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
180 / 55
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">805.35%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">304.81%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
200 / 45
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">849.72%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">327.43%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
200 / 50
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">968.72%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">216.40%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
200 / 55
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">1,506.61%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">773.04%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
220 / 45
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">2,506.34%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">1,156.11%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
220 / 50
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">3,207.70%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">535.93%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
220 / 55
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">2,486.55%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">577.39%</div>
</td>
</tr>
</table>
<p>&nbsp;<br />
At first glance, it appears that the Moving Median indicator significantly under-performs the standard Moving Average indicator for these crossover systems.</p>
<p>Let&#8217;s look a bit deeper at the results with some basic statistical analysis:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Stats
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Average Sys.
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Median Sys.
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Mean Return
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">1514.97%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">483.77%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;">
Std. Dev.
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">970.08%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">326.67%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Coefficient of Variation
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.64
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.68
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;">
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Median Return
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">968.72%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">391.33%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;">
Median Absolute Deviation
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">347.37%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">174.93%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Coefficient of Variation
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.36
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.45
    </td>
</tr>
</table>
<p>&nbsp;<br />
The calculation confirms the under-performance of the Moving Median Crossover system. What about robustness you ask? Well, the Moving Median still scores worse than the Moving Average on both measures of uniformity/dispersion: the standard <a id="aptureLink_HPSun04jsJ" class='aptureEnhance' href="http://en.wikipedia.org/wiki/Coefficient%20of%20variation" target="_blank" rel="nofollow">Coefficient of Variation</a> (0.64 v 0.68) and its alternative cousin based on Median and <a href="http://en.wikipedia.org/wiki/Median_absolute_deviation" target="_blank" rel="nofollow">Median Absolute Deviation</a> (0.36 v 0.45): The Moving Average System produces more uniform (robust?) results!</p>
<p>Below is also a histogram of all 288 individual returns (per market per parameter combination, i.e. Wheat 180/45, Wheat 200/50, Silver 200/50, etc.):</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/IndividualReturns.png" alt="IndividualReturns" title="IndividualReturns" width="495" height="370" class="alignnone size-full wp-image-1264" /></p>
<p>There is clearly more blue presence on the left side of the chart and more red one on the right side&#8230;</p>
<h3>A potential explanation</h3>
<p>Using some <em>inductive logic</em> (warning: this might be dangerous when dealing with data from <em>Extremistan<sup>*</sup></em>), I started eye-balling the charts in search for some clues as to why the Median under-performs the Average. Below is an example of what I found:</p>
<div id="attachment_1269" class="wp-caption alignnone" style="width: 506px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/Cocoa-Crossover.png" alt="Crossovers for Cocoa 2004-2010" title="Cocoa-Crossover" width="496" height="339" class="size-full wp-image-1269" /><p class="wp-caption-text">Crossovers for Cocoa 2004-2010</p></div>
<p>The chart above only shows Moving Averages and Moving Medians (the prices have been removed to make the picture clearer). Average and Median seem to closely follow each other both on slow and fast sides. Indeed the bulk of the trades take place at roughly the same time (i.e. they both detect large trends fairly similarly).</p>
<p>However, if we zoom in over that red-circled congested area:</p>
<div id="attachment_1270" class="wp-caption aligncenter" style="width: 428px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/Crossover-zommedin.png" alt="Zoomed-in portion of Cocoa chart" title="Crossover-zommedin" width="418" height="279" class="size-full wp-image-1270" /><p class="wp-caption-text">Zoomed-in portion of Cocoa chart</p></div>
<p>We can see that the Median Crossover system generates more signals than the Moving Average one (9 v 5). Trend following systems notoriously make big bucks in large moves but lose money in trend-less, range-bound markets &#8211; like the one being zoomed into. If the Moving Median Crossover system is more active in these sort of markets it will generate more losing trades while capturing similar big winners to the Moving Average Crossover system.</p>
<p>Intuitively, it could be hypothesized that the Moving Average evolves in a smoother manner and will generate smoother curves with less erratic moves and consequently less losing trades during trend-less markets &#8211; while the Moving Median does not generate a significant edge in detecting large trends.</p>
<p>One test is hardly enough to provide siginificant evidence, however this should give us some insights in the nature of the Moving Median indicator. The first insights being no increase in robustness and a drop in performance (when comparing total returns).</p>
<p>&nbsp;<br />
&nbsp;<br />
<sup>*</sup><em>Extremistan</em>: concept popularised by Nassim Taleb to describe the &#8220;province&#8221; where the total can be conceivably impacted by a single observation (e.g. financial data, wealth distribution). The opposite is Mediocristan: the province dominated by the mediocre, with few extreme successes or failures. No single observation can meaningfully affect the aggregate (e.g. human height and weight distribution). The bell curve is grounded in Mediocristan. There is a qualitative difference between Gaussians and scalable laws, much like gas and water.</p>
<p>For more info on Taleb&#8217;s terms, check his <a href="http://www.automated-trading-system.com/fooled-by-randomness-taleb" target="_blank" rel="no follow">Fooled by Randomness</a> <a href="http://www.fooledbyrandomness.com/glossary.pdf" target="_blank" rel="no follow">glossary (PDF)</a>.<!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/moving-median-better-indicator-than-moving-average/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to decide on a Backtesting and Trading Platform</title>
		<link>http://www.automated-trading-system.com/backtesting-trading-platform/</link>
		<comments>http://www.automated-trading-system.com/backtesting-trading-platform/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 11:31:55 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Backtest]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[amibroker]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[CSI]]></category>
		<category><![CDATA[eSignal]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[Futures]]></category>
		<category><![CDATA[introducing broker]]></category>
		<category><![CDATA[NinjaTrader]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[tradersstudio]]></category>
		<category><![CDATA[tradestation]]></category>
		<category><![CDATA[Zen Fire]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=760</guid>
		<description><![CDATA[As an automated trader you probably need the following components: Broker Account &#8211; The starting point to trade in the markets Live Market Data &#8211; To feed to your trading robot so that it can generate trading signals. Most brokers provide market data with proprietary or third-party technology- although market data can also be obtained [...]]]></description>
			<content:encoded><![CDATA[<p>As an automated trader you probably need the following components:</p>
<ul>
<li><strong>Broker Account</strong> &#8211; The starting point to trade in the markets</li>
<li><strong>Live Market Data</strong> &#8211; To feed to your trading robot so that it can generate trading signals. Most brokers provide market data with proprietary or third-party technology- although market data can also be obtained from an independent vendor (e.g. eSignal).</li>
<li><strong>Order Routing</strong> &#8211; To transmit your orders to the exchange. These can be proprietary to the executing broker or third-party based (e.g. Zen Fire).</li>
<li><strong>Broker Trading Platform</strong> &#8211; To access your account information, place orders, etc.</li>
<li><strong>Charting Platform</strong> &#8211; Sometimes the broker platform charting capabilities are mediocre and an independent charting platform is required (e.g. eSignal)</li>
<li><strong>Signal Generation Platform</strong> &#8211; The actual trading robot: it analyses market data, account and positions information and implements the automated trading strategies to generate trade management signals (i.e. Buy / Sell / Exit, etc.).</li>
<li><strong>Excecution Platform</strong> &#8211; Receives trade signals and forwards them to the order routing.</li>
<li><strong>Platform Hosting</strong> &#8211; You can host the trading robot on your local machine, host it in a dedicated rented server or entrust a specialised broker to host and run your trading robot.</li>
<li><strong>Historical Market Data</strong> &#8211; Used as source for back-testing trading strategies</li>
<li><strong>Strategy Development Application</strong> &#8211; Allows for coding, optimisation, back-test and result analysis of trading strategies.</li>
<li><strong>Statistical Analysis package</strong> &#8211; for in-depth statistical analysis of back-testing results.</li>
</ul>
<p>Some of these distinctions are physical, some are logical. For example, TradeStation packs many of the points above into one system: a broker account and a trading platform that allows you to:<span id="more-760"></span><br />
Access live market data + Visualise price charts + Automate trading strategies that generate signals + Route the trading signals as orders on the exchange + Access account information + Store historical data + Back-test strategies</p>
<p>Sounds like it fits the bill perfectly, doesn&#8217;t it?<br />
Well let&#8217;s look at the areas you need to consider when deciding on your automated platform.</p>
<h3>Type of broker</h3>
<p>Different issues to consider: is the broker a clearing broker, a non-clearing FCM or an introducing broker? If the latter is it an independent introducing broker or a guaranteed introducing broker (backed by a clearer)? It would seem that the closer to the exchange  you broker is (in terms of relationship), the better/safer it is. See <a href="http://www.automated-trading-system.com/anatomy-futures-transaction/">Anatomy of a Futures transaction</a> for more detail on the different types of brokers.</p>
<h3>Markets supported</h3>
<p>Every broker offers access to different products and different markets. For example Interactive Brokers offers one of most complete coverage (worldwide Futures, Options, Equites and Forex) all &#8220;housed&#8221; under the same Universal Account. Other brokers only offer access to specific products/markets.</p>
<h3>Latency/Speed</h3>
<p>For some type of trading strategy, this can have a large impact and various platforms/feeds offer different levels of performance. This has led to specialist companies such as Zen Fire or Trading Technologies &#8211; which locate their servers very close to the exchange &#8211; achieving speed and reliability for data feed and order routing. They offer their services to brokers who can in turn offer it to their clients.</p>
<h3>Development Language</h3>
<p>This is mostly a matter of personal preference, experience and expertise. TradeStation has been around for longer and a big collection of Easy Language scripts are available for re-use while NinjaTrader, for example, uses C# and CQG Trader their own language.</p>
<h3>Strategy Complexity vs. Platform Functionality</h3>
<p>Most of the automated trading platforms that offer back-testing functionality lack sophistication of dedicated applications such as Mechanica, TraderStudio or Trading Blox. For example portfolio testing is usually not available in the live trading platforms. This might work for some simple strategies but not for more complex Money Management ones.</p>
<h3>Hosting</h3>
<p>You can run the trading robot on your machine, which makes you subject to power and connection failures or you can choose to rent a server to host your robot. Some brokers also offer trading strategy hosting and execution on their own servers.</p>
<h3>Charting</h3>
<p>Some specialised platforms offer better charting capabilities than the standard trading platforms and can be used as a standalone charting application. Some, such as eSignal, also offer a data feed.</p>
<h3>Costs</h3>
<p>An obvious one but between platform costs, execution costs, hardware, etc. there exists a wide range between bottom-end and top-end offerings.</p>
<h3>What/how to choose?</h3>
<p>While researching for this article I have come across <em>many</em> different packages offering different solutions. One of the best ways to help you decide on a solution that makes sense to <em>you</em> is to list <em>your goals</em> and cross-check each platform against them <a href="http://home.comcast.net/~countertrender/AI_for_the_Individual_Trader.pdf" target="_blank" rel="nofollow">in this fashion (PDF doc)</a>.</p>
<p>There are endless possibilities for combining all the differenty packages. Just for fun I tried to &#8220;virtually build&#8221; the opposite of an all-in-one package such as TradeStation (which will probably not address most automated trader goals) &#8211; here is one &#8220;wacky&#8221; implementation.<br />
<div id="attachment_762" class="wp-caption aligncenter" style="width: 460px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2009/10/wacky-architecture.png" alt="wacky ATS architecture" title="wacky-architecture" width="450" height="450" class="size-full wp-image-762" /><p class="wp-caption-text">A trader decides to use TradeStation as a signal generating platform. However she does not want to use TradeStation data feed and instead decides to go for the eSignal package integrating the broker Dorman Trading and the Zen-Fire connection for market data and a charting platform. In order to route the market data to TradeStation, she needs a bridge application - OwnData from TS Support for example. The backup feed solution would be TradeStation data feed. For the execution side of things, our trader decides to send the trading signals generated by TradeStation to NinjaTrader, which can route the orders to the exchange through a broker. The primary route is through Velocity Futures broker using Trading Technologies order routing, while the secondary route is through Interactive Brokers via their TWS trading platform and API! Additionally, the strategy research and testing is performed with Mechanica using CQG tick data while the results are analysed using R.</p></div></p>
<h3>Conclusion</h3>
<p>Sorry to end up on a cliche but there are no silver bullet to making the choice. If you take away one point is that you need to list your own requirements clearly and make the choice for yourself based on them.</p>
<p>Check that <a href="http://www.elitetrader.com/vb/showthread.php?threadid=108534<br />
" target="_blank" rel="nofollow">60-page thread at EliteTrader</a> if you want an endless discussion as to which is the best platform/architecture&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/backtesting-trading-platform/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Amibroker vs TradersStudio: comparison</title>
		<link>http://www.automated-trading-system.com/amibroker-v-tradersstudio-comparison/</link>
		<comments>http://www.automated-trading-system.com/amibroker-v-tradersstudio-comparison/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 10:18:38 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Backtest]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[afl]]></category>
		<category><![CDATA[amibroker]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[tradersstudio]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=981</guid>
		<description><![CDATA[A couple of weeks ago I downloaded Amibroker to see if it could compute the e-ratio much faster than TradersStudio (it did!). The result of the speed comparison is there and the Amibroker code for the e-ratio is there. I thought it might be interesting to do a comparison of how easy it is to [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago I downloaded Amibroker to see if it could <a href="http://www.automated-trading-system.com/e-ratio-trading-edge/">compute the e-ratio</a> much faster than TradersStudio (it did!). The result of the speed comparison is <a href="http://www.automated-trading-system.com/amibroker-tradersstudio-speed-comparison/">there</a> and the Amibroker code for the e-ratio is <a href="http://www.automated-trading-system.com/e-ratio-amibroker-code/">there</a>.<br />
I thought it might be interesting to do a comparison of how easy it is to get on with both platforms as a new user.</p>
<h3>Software and manuals</h3>
<p>You can download a fully-functioning Amibroker demo (you cannot with TraderStudio and even when you buy it you have to wait for CDs by post!) which contains some limitations (i.e no more than 5 markets back-tested at a time, etc.).<br />
The manuals are all online and very thorough, complemented with additional articles, presentations and other materials. This makes it very handy (again compared to TradersStudio printed 300 page manual &#8211; yet incomplete) as you can search them electronically to look for exactly what you need.<span id="more-981"></span></p>
<h3>Large Community</h3>
<p>The Amibroker community seems much wider and as a result there is <em>loads</em> of available scripts for re-use. There is actually a whole <a href="http://www.amibroker.com/library/list.php" target="_blank" rel="nofollow">library</a> hosted on amibroker website.<br />
There is also much, much more information available on the internet. As a sample test I googled &#8220;Amibroker Donchian&#8221; vs. &#8220;TradersStudio Donchian&#8221;: 23,200 results vs. 17 (including this blog!).<br />
Finally the <a href="http://finance.groups.yahoo.com/group/amibroker/" target="_blank" rel="nofollow">yahoo group</a> is much more active. There are about 10 times more daily messages (although the TradersStudio one can go days without getting a single message). As an example I posted a question related to the custom backtester and got a useful answer the next day.</p>
<h3>The platform</h3>
<p>It takes a bit of time to get used to the concept and principles of Amibroker. It is quite different from TradersStudio. For example, all afl files are self-contained and might implement indicator, system, back-test procedure, scan and exploration code all at once (although only one part really runs at once &#8211; alightly confusing at first). In TradersStudio you can also define functions to be called in other code files; this does not appear possible in Amibroker (you would have to copy/paste the code over and over again). Both platforms allow you to build COM dlls to code up your functions.</p>
<p>The GUI is different but I would not say better or worse than TradersStudio.The charting forms a more central part of the Amibroker platform and just firing up a chart with several indicators is pretty quick. At first glance the money management/portfolio allocation does not appear very rich in Amibroker (in terms of functionality) but I would have to do more testing to confirm this.<br />
<div id="attachment_987" class="wp-caption alignnone" style="width: 310px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2009/11/amibroker.jpg" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2009/11/amibroker-300x246.jpg" alt="AmiBroker screenshot" title="amibroker screenshot" width="300" height="246" class="size-medium wp-image-987" /></a><p class="wp-caption-text">AmiBroker screenshot</p></div></p>
<p>The language to create your own indicators, systems, etc. (AFL: Amibroker Formula Language) is based on C and not very hard to pick up especially with the very useful in-line help &#8211; it does help to read the tutorials first (!) to get a grasp of the main keywords/built-in functions.</p>
<h3>Data loading</h3>
<p>Loading the <a href="http://www.automated-trading-system.com/unfair-advantage-api-code-c-extract-futures-continuous-data/">data extracted from CSI Unfair Advantage</a> was fairly straight-forward and there seems to be a bunch of ready-made interfaces with other data vendors in addition to the Amiquote utility &#8211; which allows you import quotes in Amibroker. It seems that there is more flexibility in the type of data fields that can be loaded.</p>
<h3>Conclusion</h3>
<p>Overall I was pretty pleased at what I was able to achieve in a short amount of time. For some reason I found it very hard to <em>get into</em> TradersStudio whereas Amibroker was easier to tackle (once you understand its working concept).<br />
Obviously I have not explored all the functionalities of either software and this is definitely not an exhaustive review. As a result of all this I will be buying a copy of Amibroker to complement (or replace?) TradersStudio. I am sure both platforms each have their pros and cons so having both is probably a good idea (and not a very costly one since Amibroker costs only $200!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/amibroker-v-tradersstudio-comparison/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

