<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Amibroker e-ratio code</title>
	<atom:link href="http://www.automated-trading-system.com/e-ratio-amibroker-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/</link>
	<description>Systematic Trading research and development, with a flavour of Trend Following</description>
	<lastBuildDate>Thu, 11 Mar 2010 21:17:03 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rajiv</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-800</link>
		<dc:creator>Rajiv</dc:creator>
		<pubDate>Tue, 19 Jan 2010 02:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-800</guid>
		<description>Thanks for the heads up. I will do some more research. The only advantage TradersStudio has is that I could use Metastock data. Anyway, there are some other software to consider: Multi Charts (uses Easy Language), Ninja Trader, and Nuro Shell. Multi Charts is a bit pricy though -- close to $1600.  Personally, I think that AB of MS is a good enough software. Besides a mechanical system, one needs  money management skills and the discipline. I am leaning toward combining at least  three different systems -- trend, mean reversion and divergence.</description>
		<content:encoded><![CDATA[<p>Thanks for the heads up. I will do some more research. The only advantage TradersStudio has is that I could use Metastock data. Anyway, there are some other software to consider: Multi Charts (uses Easy Language), Ninja Trader, and Nuro Shell. Multi Charts is a bit pricy though &#8212; close to $1600.  Personally, I think that AB of MS is a good enough software. Besides a mechanical system, one needs  money management skills and the discipline. I am leaning toward combining at least  three different systems &#8212; trend, mean reversion and divergence.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-797</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Mon, 18 Jan 2010 23:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-797</guid>
		<description>@Rajiv
little warning: TradersStudio does not offer any free trial... Also I have been wondering for a little while now, whether I made the right choice (I was also considering Trading Blox but was put up by the price difference: $3,000 for Trading Blox) so I might revisit this :(</description>
		<content:encoded><![CDATA[<p>@Rajiv<br />
little warning: TradersStudio does not offer any free trial&#8230; Also I have been wondering for a little while now, whether I made the right choice (I was also considering Trading Blox but was put up by the price difference: $3,000 for Trading Blox) so I might revisit this :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajiv</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-796</link>
		<dc:creator>Rajiv</dc:creator>
		<pubDate>Mon, 18 Jan 2010 16:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-796</guid>
		<description>Thanks. The only problem is that I am not even sure how to request an invite i.e. he does not even give that option. Thanks again for the fantastic blog. I use Metastock and AB currently. After reading your blog, I may look at TraderStudio. Also, check out StrataSearch. It&#039;s essentially a software designed mostly to mix and match various systems. I am testing it right now, and the only complain I have is that the learning curve seems a bit steep.</description>
		<content:encoded><![CDATA[<p>Thanks. The only problem is that I am not even sure how to request an invite i.e. he does not even give that option. Thanks again for the fantastic blog. I use Metastock and AB currently. After reading your blog, I may look at TraderStudio. Also, check out StrataSearch. It&#8217;s essentially a software designed mostly to mix and match various systems. I am testing it right now, and the only complain I have is that the learning curve seems a bit steep.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-795</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Mon, 18 Jan 2010 14:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-795</guid>
		<description>Hi Raj,
Thanks for the comments. I checked the ASX blog and it appears that - as you mention it - it has changed to an &quot;invite-only&quot; status (ie I cant access it either any more). It actually seemed &quot;abandonned&quot; when I found it (ie last update was from 2007 I believe) so I am not sure what&#039;s up with it. I guess you could request an invite and check it out... ;-)</description>
		<content:encoded><![CDATA[<p>Hi Raj,<br />
Thanks for the comments. I checked the ASX blog and it appears that &#8211; as you mention it &#8211; it has changed to an &#8220;invite-only&#8221; status (ie I cant access it either any more). It actually seemed &#8220;abandonned&#8221; when I found it (ie last update was from 2007 I believe) so I am not sure what&#8217;s up with it. I guess you could request an invite and check it out&#8230; ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-794</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Mon, 18 Jan 2010 14:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-794</guid>
		<description>Looks like ASX Gorilla&#039;s blog is by invitation only. Any idea, how one gets invited to this? Thanks for the wonderful blog. I have you in my Google Reader.</description>
		<content:encoded><![CDATA[<p>Looks like ASX Gorilla&#8217;s blog is by invitation only. Any idea, how one gets invited to this? Thanks for the wonderful blog. I have you in my Google Reader.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-502</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Thu, 12 Nov 2009 18:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-502</guid>
		<description>Dave - your explanation seems to make sense and as this is part of the code I reused from the Gorilla ASX, I cant confirm on top of my head why this was implemented that way.

I&#039;ll definitely try your suggestion (ie +1) and revert back with code update if required (after my football game that is...)
Thanks again!</description>
		<content:encoded><![CDATA[<p>Dave &#8211; your explanation seems to make sense and as this is part of the code I reused from the Gorilla ASX, I cant confirm on top of my head why this was implemented that way.</p>
<p>I&#8217;ll definitely try your suggestion (ie +1) and revert back with code update if required (after my football game that is&#8230;)<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-501</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 12 Nov 2009 17:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-501</guid>
		<description>Jez,
Follow up on  NumTrades++. I suspect reason for putting the expression at start of loop was to get proper denominator in, AvgMAE=AccumMAE/NumTrades and AvgMFE=AccumMFE/NumTrades

But this still gives different values than placing the Numtrades++ at end of both loops and adding 1 to the denominator, ie Numtrades+1.
Thanks
Dave</description>
		<content:encoded><![CDATA[<p>Jez,<br />
Follow up on  NumTrades++. I suspect reason for putting the expression at start of loop was to get proper denominator in, AvgMAE=AccumMAE/NumTrades and AvgMFE=AccumMFE/NumTrades</p>
<p>But this still gives different values than placing the Numtrades++ at end of both loops and adding 1 to the denominator, ie Numtrades+1.<br />
Thanks<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-499</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Thu, 12 Nov 2009 17:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-499</guid>
		<description>Dave - Thanks for the input. I&#039;ll check it out later</description>
		<content:encoded><![CDATA[<p>Dave &#8211; Thanks for the input. I&#8217;ll check it out later</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-498</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 12 Nov 2009 17:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-498</guid>
		<description>Jez,
NumTrades++. I usually use this at end of loop, not the beginning. IE Step #1=Bar 0, not bar 1. In your code its in two places. Changing it from top to bottom of loop does not change ATR values per signal but does change subsequent AccumMAE ,AvgMFE,eratio, and EntryATR in first trade on single ticker test.
Thanks
Dave</description>
		<content:encoded><![CDATA[<p>Jez,<br />
NumTrades++. I usually use this at end of loop, not the beginning. IE Step #1=Bar 0, not bar 1. In your code its in two places. Changing it from top to bottom of loop does not change ATR values per signal but does change subsequent AccumMAE ,AvgMFE,eratio, and EntryATR in first trade on single ticker test.<br />
Thanks<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-493</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Wed, 11 Nov 2009 21:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-493</guid>
		<description>Hi David,

If you look at the code, the following line produces that Debug output:
_TRACE(&quot;Symbol &quot; + sig.Symbol + &quot; Number of Trades &quot; + VarGet(&quot;TradeATR&quot; + NumTrades));

The string is output as &quot;number of trades&quot; but the VarGet function actually retrieves the ATR value, hence not a round number - this was copied from the original code and is slightly misleading so Ihave updated the code linked to in this post.

Cheers and good luck with the &quot;quant end of things&quot; ;-)

Jez</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>If you look at the code, the following line produces that Debug output:<br />
_TRACE(&#8221;Symbol &#8221; + sig.Symbol + &#8221; Number of Trades &#8221; + VarGet(&#8221;TradeATR&#8221; + NumTrades));</p>
<p>The string is output as &#8220;number of trades&#8221; but the VarGet function actually retrieves the ATR value, hence not a round number &#8211; this was copied from the original code and is slightly misleading so Ihave updated the code linked to in this post.</p>
<p>Cheers and good luck with the &#8220;quant end of things&#8221; ;-)</p>
<p>Jez</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Fitch</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-492</link>
		<dc:creator>David Fitch</dc:creator>
		<pubDate>Wed, 11 Nov 2009 21:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-492</guid>
		<description>Jez,
Working through your AFL . Found it intriguing. While I&#039;m told it &quot;Edge&quot; doesn&#039;t help EOD systems, I&#039;d like to find for myself. To put my questions in context, I&#039;m a long time user of AB but have only recently been drug kicking and screaming into the quant end of things and in particular, CBT.
 
That said, why are there trades in the _Trace field that are not round numbers, 1,2,3. But instead 1.6551, 1.0570 ?
Just get&#039;n my head around what&#039;s happening here.
Thanks
Dave</description>
		<content:encoded><![CDATA[<p>Jez,<br />
Working through your AFL . Found it intriguing. While I&#8217;m told it &#8220;Edge&#8221; doesn&#8217;t help EOD systems, I&#8217;d like to find for myself. To put my questions in context, I&#8217;m a long time user of AB but have only recently been drug kicking and screaming into the quant end of things and in particular, CBT.</p>
<p>That said, why are there trades in the _Trace field that are not round numbers, 1,2,3. But instead 1.6551, 1.0570 ?<br />
Just get&#8217;n my head around what&#8217;s happening here.<br />
Thanks<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-485</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Tue, 10 Nov 2009 18:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-485</guid>
		<description>Nuanda,

Well spotted! Very thorough checking ;-)
You are exactly right and I think this was a slight bug in the ASX gorilla version:

The ATR is expressed in dollar terms while the MAE/MFE is expressed as a percentage of price (in Amibroker). As a result you need to calculate the MAE/MFE in dollar terms to &quot;compare apples and apples&quot;; and you do that by multiplying the ATR(pct) with the Entry Price divided by 100.</description>
		<content:encoded><![CDATA[<p>Nuanda,</p>
<p>Well spotted! Very thorough checking ;-)<br />
You are exactly right and I think this was a slight bug in the ASX gorilla version:</p>
<p>The ATR is expressed in dollar terms while the MAE/MFE is expressed as a percentage of price (in Amibroker). As a result you need to calculate the MAE/MFE in dollar terms to &#8220;compare apples and apples&#8221;; and you do that by multiplying the ATR(pct) with the Entry Price divided by 100.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuanda</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-484</link>
		<dc:creator>Nuanda</dc:creator>
		<pubDate>Tue, 10 Nov 2009 15:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-484</guid>
		<description>it&#039;s not clear to me why you are multiplying by the entry price compared to the original code.

your version
-------------------
trade.GetMAE()*trade.EntryPrice/(100*EntryATR)
trade.GetMFE()*trade.EntryPrice/(100*EntryATR)

ASX Gorilla&#039;s version
-------------------
trade.GetMAE()/EntryATR
trade.GetMFE()/EntryATR

I have the feeling your version is an enhancement since it&#039;s comparing MAE/MFE in dollar amount versus the ATR which is also espressed in dollar amount. Correct me if I&#039;m wrong.

Regards,

Paolo</description>
		<content:encoded><![CDATA[<p>it&#8217;s not clear to me why you are multiplying by the entry price compared to the original code.</p>
<p>your version<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
trade.GetMAE()*trade.EntryPrice/(100*EntryATR)<br />
trade.GetMFE()*trade.EntryPrice/(100*EntryATR)</p>
<p>ASX Gorilla&#8217;s version<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
trade.GetMAE()/EntryATR<br />
trade.GetMFE()/EntryATR</p>
<p>I have the feeling your version is an enhancement since it&#8217;s comparing MAE/MFE in dollar amount versus the ATR which is also espressed in dollar amount. Correct me if I&#8217;m wrong.</p>
<p>Regards,</p>
<p>Paolo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Woodshedder</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-481</link>
		<dc:creator>Woodshedder</dc:creator>
		<pubDate>Tue, 10 Nov 2009 14:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-481</guid>
		<description>Cool. That explanation makes sense. I&#039;ll have to plug the code in to AmiBroker and give it a try.
Thanks again!</description>
		<content:encoded><![CDATA[<p>Cool. That explanation makes sense. I&#8217;ll have to plug the code in to AmiBroker and give it a try.<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-480</link>
		<dc:creator>Jez</dc:creator>
		<pubDate>Tue, 10 Nov 2009 12:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-480</guid>
		<description>Thanks woodshedder!

I find that the e-ratio is a better evaluation of the &quot;potential&quot; of a trade/signal in Risk/Reward term as it uses Maximum Excursions (both on upside and downside)
For example you could have both trades that complete with 1% profit when stopping at N days, but one the trades could be dropping to -10% for most of its life while the other one could stay at around +5%. If they both finish at +1%, a simple average would not differentiate and highlight that the second trade/signal offers more potential.
The e-ratio would tell you a bit more about how the trade &quot;behaved&quot; during its life - and the e-ratio profile over different days allows you to get a feel for the best duration of the edge. It is not a &quot;holy grail&quot; metrics but I think a useful &quot;prism&quot; through which you can look at a signal in a back-test.
Below is the link to explain the basics of the e-ratio.
http://www.automated-trading-system.com/e-ratio-trading-edge/</description>
		<content:encoded><![CDATA[<p>Thanks woodshedder!</p>
<p>I find that the e-ratio is a better evaluation of the &#8220;potential&#8221; of a trade/signal in Risk/Reward term as it uses Maximum Excursions (both on upside and downside)<br />
For example you could have both trades that complete with 1% profit when stopping at N days, but one the trades could be dropping to -10% for most of its life while the other one could stay at around +5%. If they both finish at +1%, a simple average would not differentiate and highlight that the second trade/signal offers more potential.<br />
The e-ratio would tell you a bit more about how the trade &#8220;behaved&#8221; during its life &#8211; and the e-ratio profile over different days allows you to get a feel for the best duration of the edge. It is not a &#8220;holy grail&#8221; metrics but I think a useful &#8220;prism&#8221; through which you can look at a signal in a back-test.<br />
Below is the link to explain the basics of the e-ratio.<br />
<a href="http://www.automated-trading-system.com/e-ratio-trading-edge/" rel="nofollow">http://www.automated-trading-system.com/e-ratio-trading-edge/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Woodshedder</title>
		<link>http://www.automated-trading-system.com/e-ratio-amibroker-code/comment-page-1/#comment-479</link>
		<dc:creator>Woodshedder</dc:creator>
		<pubDate>Tue, 10 Nov 2009 00:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=901#comment-479</guid>
		<description>Good stuff Jez. I&#039;m going to add you to the blogroll to remind myself to check your blog regularly.

I haven&#039;t fully explored the e ratio, but I&#039;m wondering, how is it different from just plotting the avg. % trade over an n-bar exit?

Thanks for the code Jez!</description>
		<content:encoded><![CDATA[<p>Good stuff Jez. I&#8217;m going to add you to the blogroll to remind myself to check your blog regularly.</p>
<p>I haven&#8217;t fully explored the e ratio, but I&#8217;m wondering, how is it different from just plotting the avg. % trade over an n-bar exit?</p>
<p>Thanks for the code Jez!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
