<?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 : alltrue....</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : alltrue....</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 08:53:38 +0000</pubDate>
  <lastBuildDate>Wed, 10 Aug 2005 21:52:59 +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=281</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>alltrue.... : that is perfect, exactly how I...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=281&amp;PID=994#994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=53" rel="nofollow">etrader</a><br /><strong>Subject:</strong> 281<br /><strong>Posted:</strong> 10&nbsp;Aug&nbsp;2005 at 9:52pm<br /><br /><P>that is perfect, exactly how I was imagining,&nbsp;many thanks Tim.</P><P>etrader</P>]]>
   </description>
   <pubDate>Wed, 10 Aug 2005 21:52:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=281&amp;PID=994#994</guid>
  </item> 
  <item>
   <title>alltrue.... : I have to say, I&amp;#039;m glad you&amp;#039;re...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=281&amp;PID=992#992</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=5" rel="nofollow">Tim Allen</a><br /><strong>Subject:</strong> 281<br /><strong>Posted:</strong> 10&nbsp;Aug&nbsp;2005 at 5:23pm<br /><br />I have to say, I'm glad you're not using that scan practically - you'd never buy anything! I had to tone it down to just 5 previous days in order to test my solution. :)<br /><br />Anyway, something that might not be incredibly obvious: although a criterion such as "Close &gt; hist(close, 1)" is a 'boolean' value, that is it can be either True or False, you can actually treat booleans as numbers: a True boolean value is equivalent to '1' and a False boolean value is equivalent to 0.<br /><br />Thus, the script you're looking for is:<br /><br /><table width="99%"><tr><td class="BBquote">sum(Close &gt; hist(Close, 1), 10) &gt; 9;</td></tr></table><br />The way it works is this:<ul><li>it evaluates the condition "Close &gt; hist(Close,1)" for each of the past 10 bars, returning a 'True' or 'False' for each of those. </li><li>it adds all those values together, which effectively gives you a count of the number of 'successes' found - the number of times your condition was found to be true. </li><li>it compares this count to your minimum number of successes (9).</li></ul>I hope that all makes sense - coming from a maths/computer science background, sometimes I get caught up in the jargon and forget to explain myself properly. If you've got any questions, please ask!]]>
   </description>
   <pubDate>Wed, 10 Aug 2005 17:23:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=281&amp;PID=992#992</guid>
  </item> 
  <item>
   <title>alltrue.... :  (alltrue(Close &amp;gt; hist(Close,...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=281&amp;PID=988#988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=53" rel="nofollow">etrader</a><br /><strong>Subject:</strong> 281<br /><strong>Posted:</strong> 10&nbsp;Aug&nbsp;2005 at 2:40pm<br /><br /><FONT color=#ff00ff size=3><P>(</FONT><FONT size=3>alltrue(</FONT><FONT color=#0000c0 size=3>Close</FONT><FONT size=3> &gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>Close</FONT><FONT size=3>, 1),10)</FONT><FONT color=#ff00ff size=3>)</FONT></P><P><FONT face=Arial color=#000000 size=3>this script is finding me any stocks that close higher 10 days in a row. If I use "anytrue" it would find me stocks that closed higher any of the 10 previous days. &#091;this is only an easy way to explain the&nbsp;example, not a scan i use practically&#093;</FONT></P><P><FONT face=Arial size=3>My question is: Can I script to find stocks that are "alltrue" as above, with the exception of 'any' 1 of the 10 days. In this case, 90% of the #days I am scanning must meet the criteria &#091;ie. 9 out of 10 days are true&#093;.</FONT></P><P><FONT face=Arial size=3>Sometimes my scans feel too tight, and miss the odd good move. To capture these without increasing the output results too much,&nbsp;I think a solution as above might work for me...</FONT></P><P><FONT face=Arial size=3>cheers etrader</FONT></P><span style="font-size:10px"><br /><br />Edited by etrader</span>]]>
   </description>
   <pubDate>Wed, 10 Aug 2005 14:40:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=281&amp;PID=988#988</guid>
  </item> 
 </channel>
</rss>