<?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 : Bar Charts and Bull&#083;cript</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : Tips and Tricks : Bar Charts and Bull&#083;cript</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 15:05:35 +0000</pubDate>
  <lastBuildDate>Thu, 06 Jan 2005 10:13:14 +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=96</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>Bar Charts and Bull&#083;cript : The linestyle attribute in BullScript...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=96&amp;PID=335#335</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> 96<br /><strong>Posted:</strong> 06&nbsp;Jan&nbsp;2005 at 10:13am<br /><br />The linestyle attribute in BullScript allows a wide variety of stylesto be applied to your formulas. A common representation of a plot is todraw it as a bar chart.<br><br>Figure 1 shows a simple calculation, the difference between two movingaverages, drawn using three different line styles. By default it isdrawn using a line style (1a). By using the &#091;linestyle=Bar&#093; attribute,a bar chart is drawn that connects each bar to zero (1b). Alternativelythe Grounded Bar style draws each bar to the bottom of the pane (1c).<br><br>Figure 1.<br><img src="uploads/Peter/2005-01-06_095651_bars1.gif" border="0"><br><br>BullScript for Fig 1a<br><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);"></span><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">ma(C,10)-ma(C,20);</span><br><br>BullScript for Fig 1b<br><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">&#091;linestyle=Bar&#093;</span><br style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);"><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">ma(C,10)-ma(C,20);</span><br><br>BullScript for Fig 1c<br><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">&#091;linestyle=Grounded Bar&#093;</span><br style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);"><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">ma(C,10)-ma(C,20);</span><br><br><br>More complicated bar charts are also possible. For example, you maywish to have the bars connect to a value other than zero. This is donein figure 2a, where a stochastic has been drawn with bars connecting to50.<br><br>This is possible using the Fill Bar style. The Fill Bar style appliesto results in pairs. That is, the two calculations that follow the FillBar style both get used in the one plot. A bar is drawn from the firstresult to the second result. By setting one of the two results to afixed number (eg 50), the bars will always be connected to that number.<br><br>Figure 2.<br><img src="uploads/Peter/2005-01-06_100500_bars2.gif" border="0"><br><br>BullScript for Fig 2a<br><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);"></span><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">&#091;linestyle=Fill Bars&#093;<br>stoch;<br>50;</span><br><br>The Fill Bars line style also allows colours to be applied depending onwhich of the two results is greater. When we are just using a fixednumber as in 2a, this means the colour highlights which side of 50 thebar is on. To apply colours, a colour attribute it put in front of eachof the two values. The colour of each bar is whatever the colour of thegreater value is.<br><br><br>BullScript for Fig 2b<br><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);"></span><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">&#091;linestyle=Fill Bars&#093;<br>&#091;color=Green&#093; stoch;<br>&#091;color=Red&#093; 50;</span><br><br>Whenever the stochastic is higher than 50, the green is used. Whenever50 is higher than the stochastic (ie the stochastic is below 50), redis used.<br><br>The Fill Bars style does not require one of the results to be fixed.Figure 2c shows one moving average connected to another. Again, thecolour of the higher moving average is shown.<br><br>BullScript for Fig 2c<br><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);"></span><span style="font-family: courier new,courier,mono; color: rgb(0, 0, 153);">&#091;linestyle=Fill Bars&#093;<br>&#091;color=Green&#093; ma(C,10);<br>&#091;color=Red&#093; ma(C,20);</span><br><br>A number of other fills (such as solid and stepped fills) can beapplied in a similar way. The Fill Bar can also be used creatively forother purposes. For example, it is used to draw the left and rightedges of boxes in the Darvas boxes indicator.<br><br>For further information, refer to the LineStyle attribute reference in the BullScript Help for more details.<br><br>]]>
   </description>
   <pubDate>Thu, 06 Jan 2005 10:13:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=96&amp;PID=335#335</guid>
  </item> 
 </channel>
</rss>