<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>BullCharts : True Comparative Strength</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : True Comparative Strength</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 08:53:42 +0000</pubDate>
  <lastBuildDate>Sat, 30 Oct 2010 18:00:25 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.bullcharts.com.au/forum/RSS_post_feed.asp?TID=679</WebWizForums:feedURL>
  <image>
   <title>BullCharts</title>
   <url>http://www.bullcharts.com.au/forum/http://www.bullcharts.com.au/images/bull_logo.gif</url>
   <link>http://www.bullcharts.com.au/forum/</link>
  </image>
  <item>
   <title>True Comparative Strength : Hiya&amp;#039;s   I&amp;#039;ve had...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=679&amp;PID=2602#2602</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=189" rel="nofollow">maximo</a><br /><strong>Subject:</strong> 679<br /><strong>Posted:</strong> 30&nbsp;Oct&nbsp;2010 at 6:00pm<br /><br />Hiya's <DIV>&nbsp;</DIV><DIV>I've had this on the drawing board for a few weeks just needed to get around to coding it.</DIV><DIV>It compares any stock with an index without the use of averages or indicators. ie. It sums the percentage change of both a stock versus an index over N period.</DIV><DIV>&nbsp;</DIV><DIV>The reason for not using any averages may not be clear, but firstly you eliminate lag and at the same time you eliminate the exponential error factor due to averages becoming less accurate with each successive bar.&nbsp;&nbsp; eg. a 14 period average drops the bar 15 bars back from the average so each successive calculation becomes 1/14; 7% less accurate over a longer term.&nbsp; The idea is to have a precise comparison instead of one which degrades over time.</DIV><DIV>&nbsp;</DIV><DIV>Now for some ideas on how to use the indicator.&nbsp;&nbsp; You can suggest them if you have any.</DIV><DIV>One idea is to make your own index of stocks which would be likely to outperform the index comparison.&nbsp;&nbsp; You could construct a rating model for example to seek out the best performers.&nbsp; Example is the ASX20 stocks compared to ASX200, a +ive&nbsp;attribute&nbsp;represents over performing and -ive&nbsp;&nbsp;for under performing. &nbsp;Holding&nbsp;good performers&nbsp;can be&nbsp;an objective for both traders &amp; investors.</DIV><DIV>&nbsp;</DIV><DIV>Rating&nbsp;&nbsp; Stock&nbsp; Weekly Daily</DIV><DIV>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AMP&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -</DIV><DIV>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANZ&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+</DIV><DIV>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BHP&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BXB&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-</DIV><DIV>&nbsp;&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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -</DIV><DIV>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WES&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WOW&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPL&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>note: This is not a recommendation to buy or sell.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;Description</FONT></FONT><FONT size=3>="True Comparative Strength, Max <FONT size=3>(c) Copyright 2010</FONT>"</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>index := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>inputsymbol</FONT></FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3><FONT color=#008b8b size=3>"Compare to"</FONT></FONT><FONT size=3>, </FONT><FONT color=#008b8b size=3><FONT color=#008b8b size=3>"XJO"</FONT></FONT><FONT size=3>);</P><P>lookback:= </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>input</FONT></FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3><FONT color=#008b8b size=3>"period"</FONT></FONT><FONT size=3>,100,1);</P><P>start:=</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>barnumber</FONT></FONT><FONT size=3> &gt; </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>lastvalue</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>barnumber</FONT></FONT><FONT size=3>) - lookback;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;color</FONT></FONT><FONT size=3>=lime green</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT color=#008000 size=3><FONT color=#008000 size=3><P>{ Sum price percentage change relative to lookback period ago }</P></FONT></FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3><P>if</FONT></FONT><FONT size=3>(start,( (((</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>Close</FONT></FONT><FONT size=3>-</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ref</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>Close</FONT></FONT><FONT size=3>,-1)) / </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ref</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>Close</FONT></FONT><FONT size=3>,-1))*100) + </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;color</FONT></FONT><FONT size=3>=blue</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3><P>if</FONT></FONT><FONT size=3>(start,( (((</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>LoadSymbol</FONT></FONT><FONT size=3>(index,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>)-</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ref</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>LoadSymbol</FONT></FONT><FONT size=3>(index,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>),-1)) / </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ref</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>LoadSymbol</FONT></FONT><FONT size=3>(index,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>),-1))*100) + </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3>);</P></FONT></DIV><span style="font-size:10px"><br /><br />Edited by maximo - 30&nbsp;Oct&nbsp;2010 at 7:27pm</span>]]>
   </description>
   <pubDate>Sat, 30 Oct 2010 18:00:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=679&amp;PID=2602#2602</guid>
  </item> 
 </channel>
</rss>