<?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 : Bull&#083;cript bracket matching</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : Tips and Tricks : Bull&#083;cript bracket matching</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 09:08:10 +0000</pubDate>
  <lastBuildDate>Wed, 06 Apr 2005 11:24:55 +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=185</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>Bull&#083;cript bracket matching : Much of the power of BullScript...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=185&amp;PID=691#691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=3" rel="nofollow">Peter</a><br /><strong>Subject:</strong> 185<br /><strong>Posted:</strong> 06&nbsp;Apr&nbsp;2005 at 11:24am<br /><br />Much of the power of BullScript (and most scripting languages) comesfrom the ability to be able to use the results of one function as theinput of another. Ie, putting one function inside another. This iscalled <span style="font-style: italic;">nesting</span>. <br><br>However, nesting can quickly cause a script to become difficult toread, as you can end up with many levels of brackets. The BullScripteditor has a <span style="font-style: italic;">bracket matching</span> feature to make it easier to read nested scripts.<br><br>When viewing a script, place the cursor just <span style="font-style: italic;">before</span>an opening bracket. The bracket will become pink (or red in ver 2.4.1or older), and the corresponding closing bracket will also become pink.Alternatively you can place the cursor <span style="font-style: italic;">after</span> the closing bracket to see the starting bracket.<br><br><img src="uploads/Peter/2005-04-06_111958_brackets.gif" border="0"><br><br>In the example above, the cursor has been placed just after the "if".Notice that the following bracket and the corresponding closing bracketare highlighted.<br><br>If the brackets belong to a function, and that function has severalparameters, then the commas are also highlighted. This makes it easierto identify what script is being used for each of the parameters.<br><br>By looking at the highlighted brackets and commas in the example above, it can be more easily seen that:<br><ol>  <li><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">V &lt; hist(V,1)</span>&nbsp;&nbsp; is the condition of the "if" function.</li>  <li><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">Previous(1000) + (((expr - hist(expr,1)) / hist(expr,1))*Previous(1000))</span>&nbsp; is the script used if the condition is true.</li>  <li><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">Previous(1000)</span> is the script used if the condition is false.<br>  </li></ol>]]>
   </description>
   <pubDate>Wed, 06 Apr 2005 11:24:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=185&amp;PID=691#691</guid>
  </item> 
 </channel>
</rss>