<?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 : Value since c&#111;nditi&#111;n</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Value since c&#111;nditi&#111;n</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 15:14:11 +0000</pubDate>
  <lastBuildDate>Tue, 04 Jul 2006 21:54:40 +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=367</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>Value since c&#111;nditi&#111;n :   Thanks CR but this will return...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1362#1362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=174" rel="nofollow">matt</a><br /><strong>Subject:</strong> 367<br /><strong>Posted:</strong> 04&nbsp;Jul&nbsp;2006 at 9:54pm<br /><br /><P>&nbsp;</P><P>&nbsp;</P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Thanks CR but this will return the 1st marker only if the condition is met on consecutive bars.&nbsp;A condition (e.g. if the slope of a linear regression line over 3 bars&#091;expr1&#093; &gt; 0 &#091;cond2&#093;&nbsp;and&nbsp;I wish to show only the first occurrence of this after crossing a&nbsp;moving average&nbsp;of 200 bars &#091;cond1&#093;) this might occur intermittently as the price varies up and down and triggering markers separated by variable no.s of bars.&nbsp;So the problem arises when using "<SPAN style="COLOR: #0000c0">hist</SPAN><SPAN style="COLOR: black">(criteriaSet,n)=0</SPAN>, if </FONT>condition2&nbsp;occurs more than once after condition1 is met but not exactly n bars from its first occurrence then it will trigger another marker.</P><P>If I could write;</P><P>&nbsp;<FONT color=#0000ff>not </FONT><FONT color=#0000ff>anytrue</FONT>(<FONT size=2>cond2</FONT>,<FONT color=#0000ff>barssince</FONT>(n,<FONT size=2>cond1</FONT>,expr1)); </P><P>then the problem should be solved, however <FONT color=#0000ff>anytrue </FONT>only acccepts an integer as its second variable. Maybe the only way around this problem is for some BC staff wizard to rework the <FONT color=#0000ff>anytrue </FONT>code.</P><P>Anyway thanks for your time so far, if you can think of any other ideas I'd appreciate it.</P><P>Regards,</P><P>Matt</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 04 Jul 2006 21:54:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1362#1362</guid>
  </item> 
  <item>
   <title>Value since c&#111;nditi&#111;n : matt example: 1. The condition...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1361#1361</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=32" rel="nofollow">chart rider</a><br /><strong>Subject:</strong> 367<br /><strong>Posted:</strong> 04&nbsp;Jul&nbsp;2006 at 5:27pm<br /><br /><P>matt</P><P>example:</P><P>1. The condition required:&nbsp;EMA 20 is above EMA 50</P><P>2. The criteria:&nbsp;Close crosses the EMA 10</P><P>The following code will identify the first time the criteria is met each time the condition is true:</P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'">condition</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: black">:=</SPAN> <SPAN style="COLOR: #0000c0">ma</SPAN><SPAN style="COLOR: black">(</SPAN><SPAN style="COLOR: #0000c0">C</SPAN><SPAN style="COLOR: black">,</SPAN> <SPAN style="COLOR: black">20,</SPAN> <SPAN style="COLOR: #0000c0">E</SPAN><SPAN style="COLOR: black">)</SPAN> <SPAN style="COLOR: black">&gt;</SPAN> <SPAN style="COLOR: #0000c0">ma</SPAN><SPAN style="COLOR: black">(</SPAN><SPAN style="COLOR: #0000c0">C</SPAN><SPAN style="COLOR: black">,</SPAN> <SPAN style="COLOR: black">50,</SPAN> <SPAN style="COLOR: #0000c0">E</SPAN><SPAN style="COLOR: black">);</SPAN><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'">criteria</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: black">:=</SPAN> <SPAN style="COLOR: black">condition</SPAN> <SPAN style="COLOR: #0000c0">and</SPAN> <SPAN style="COLOR: #0000c0">cross</SPAN><SPAN style="COLOR: black">(</SPAN><SPAN style="COLOR: #0000c0">C</SPAN><SPAN style="COLOR: black">,</SPAN> <SPAN style="COLOR: #0000c0">ma</SPAN><SPAN style="COLOR: black">(</SPAN><SPAN style="COLOR: #0000c0">C</SPAN><SPAN style="COLOR: black">,</SPAN> <SPAN style="COLOR: black">10,</SPAN> <SPAN style="COLOR: #0000c0">E</SPAN><SPAN style="COLOR: black">));</SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'">criteriaSet</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: black">:=</SPAN> <SPAN style="COLOR: #0000c0">if</SPAN><SPAN style="COLOR: black">(criteria,</SPAN> <SPAN style="COLOR: black">1,</SPAN> <SPAN style="COLOR: #0000c0">max</SPAN><SPAN style="COLOR: black">(</SPAN><SPAN style="COLOR: #0000c0">prev</SPAN> <SPAN style="COLOR: #0000c0">and</SPAN> <SPAN style="COLOR: black">condition,</SPAN> <SPAN style="COLOR: black">0));</SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'">criteriaMarker</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: black">:=</SPAN> <SPAN style="COLOR: black">criteriaSet</SPAN> <SPAN style="COLOR: #0000c0">and</SPAN> <SPAN style="COLOR: #0000c0">hist</SPAN><SPAN style="COLOR: black">(criteriaSet,1)=0;</SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: 'Courier New'">&#091;linestyle</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'">=bar</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: purple; FONT-FAMILY: 'Courier New'">;</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: purple">width</SPAN><SPAN style="COLOR: black">=2</SPAN><SPAN style="COLOR: purple">&#093;</SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'">criteriaMarker;<o:p></o:p></SPAN></P><P>CR</P>]]>
   </description>
   <pubDate>Tue, 04 Jul 2006 17:27:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1361#1361</guid>
  </item> 
  <item>
   <title>Value since c&#111;nditi&#111;n : CB,Basically I want to show a...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1359#1359</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=174" rel="nofollow">matt</a><br /><strong>Subject:</strong> 367<br /><strong>Posted:</strong> 03&nbsp;Jul&nbsp;2006 at 5:12pm<br /><br /><br><br>CB,<br><br>Basically I want to show a marker on the first value triggered by a set of criteria since a specific condition. The criteria (and therefore marker) may occur multiple times after the condition and at varying time periods, however i want to show only the first occurrence. Sorry for being unclear previously.<br><br>Matt<br>]]>
   </description>
   <pubDate>Mon, 03 Jul 2006 17:12:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1359#1359</guid>
  </item> 
  <item>
   <title>Value since c&#111;nditi&#111;n : Matt When I read the first line...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1353#1353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=32" rel="nofollow">chart rider</a><br /><strong>Subject:</strong> 367<br /><strong>Posted:</strong> 30&nbsp;Jun&nbsp;2006 at 8:29pm<br /><br /><P>Matt</P><P>When I read the first line of your post, I thought I understood the question, but then the next few lines confused me.</P><P>Can you give an example of what you are trying to do.</P><P>CR</P>]]>
   </description>
   <pubDate>Fri, 30 Jun 2006 20:29:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1353#1353</guid>
  </item> 
  <item>
   <title>Value since c&#111;nditi&#111;n : Hi, Can anyone please help me...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1352#1352</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=174" rel="nofollow">matt</a><br /><strong>Subject:</strong> 367<br /><strong>Posted:</strong> 30&nbsp;Jun&nbsp;2006 at 4:04pm<br /><br /><P>Hi,</P><P>Can anyone please help me with this?</P><P>I would like to show only the first value since a condition and not subsequent values, which may be separated by variable time periods. Such a formula might be written as:</P><UL><LI>where: condition=variable, such as CROSS(EXPR2,EXPR3) <LI>and, since= any value of expr1 since nth occurence of &nbsp;condition.</LI></UL><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>expr1 :=close;</P><P>expr2&nbsp;:= expr1(condition) and not anytrue(expr1,since(n,condition,expr1));</P><P>expr2;</P></BLOCKQUOTE><P>Unfortunately anytrue can only accept an interger as its second parameter. Is there anyway to return :</P><UL><LI>any value of expr1 since condition and, <LI>pass a variable to the second parameter of anytrue?</LI></UL><P>Thanks in advance.</P>]]>
   </description>
   <pubDate>Fri, 30 Jun 2006 16:04:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=367&amp;PID=1352#1352</guid>
  </item> 
 </channel>
</rss>