<?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 : Coloured MACD</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Coloured MACD</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 13:25:17 +0000</pubDate>
  <lastBuildDate>Tue, 06 Sep 2011 03:22:41 +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=735</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>Coloured MACD :  Thanks MaximoThis will give...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=735&amp;PID=2798#2798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=213" rel="nofollow">lmbull</a><br /><strong>Subject:</strong> 735<br /><strong>Posted:</strong> 06&nbsp;Sep&nbsp;2011 at 3:22am<br /><br />Thanks Maximo<br>This will give me the model for what I want. The visual color change is easier for my eye to pickup.<br><img src="http://www.bullcharts.com.au/forum/smileys/smiley32.gif" border="0" alt="Clap" title="Clap" /><br><span style="font-size:10px"><br /><br />Edited by lmbull - 06&nbsp;Sep&nbsp;2011 at 3:24am</span>]]>
   </description>
   <pubDate>Tue, 06 Sep 2011 03:22:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=735&amp;PID=2798#2798</guid>
  </item> 
  <item>
   <title>Coloured MACD : Yep Yep    { MACD indicator...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=735&amp;PID=2797#2797</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> 735<br /><strong>Posted:</strong> 05&nbsp;Sep&nbsp;2011 at 6:26pm<br /><br />Yep Yep<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#008000 size=3><FONT color=#008000 size=3><P>{ MACD indicator with histogram }</P></FONT></FONT><FONT size=3></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;description</FONT></FONT><FONT size=3>="One of the simplest and most reliable indicators, MACD uses 2 moving averages.</P><P>compares two moving averages of prices, with 9 day Exponential Moving average as a signal."</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P><P>&#091;target</FONT></FONT><FONT size=3>=Default</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>category</FONT></FONT><FONT size=3>=Moving Average</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>dp</FONT></FONT><FONT size=3>=4</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P><P>&#091;horzline</FONT></FONT><FONT size=3>=0</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</FONT></FONT><FONT size=3> </P><P>n1 := </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>"Short moving average"</FONT></FONT><FONT size=3>,12,1);</P><P>n2 := </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>"Long moving average"</FONT></FONT><FONT size=3>,26,1);</P><P>ns := </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>"Signal periods"</FONT></FONT><FONT size=3>,9,1);</P></FONT><FONT color=#008000 size=3><FONT color=#008000 size=3><P>{Note: The true MACD is not quite a 12 &amp; 26 exponential moving average }</P></FONT></FONT><FONT size=3><P>r1 := 2/(n1+1);</P><P>r2 := 2/(n2+1);</P><P>ma12 := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>*r1 + </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>previous</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>)*(1-r1);</P><P>ma26 := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>*r2 + </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>previous</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>)*(1-r2);</P><P>res := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>wait</FONT></FONT><FONT size=3>(ma12 - ma26,25);</P><P>signal := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ma</FONT></FONT><FONT size=3>(res,ns,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>E</FONT></FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;Name</FONT></FONT><FONT size=3>=MACD</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>color</FONT></FONT><FONT size=3>=dodger blue</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>res;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;name</FONT></FONT><FONT size=3>=Signal</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>color</FONT></FONT><FONT size=3>=red</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>signal;</P><P>histogram:=res - signal;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;Name</FONT></FONT><FONT size=3>=Histogram Up</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=Histogram</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>width</FONT></FONT><FONT size=3>=2</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>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=#0000c0 size=3><FONT color=#0000c0 size=3><P>if</FONT></FONT><FONT size=3> (histogram &gt; </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>hist</FONT></FONT><FONT size=3>(histogram,1),histogram,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>undefined</FONT></FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;Name</FONT></FONT><FONT size=3>=Histogram Down</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=Histogram</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>width</FONT></FONT><FONT size=3>=2</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>color</FONT></FONT><FONT size=3>=crimson</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> (histogram &lt;=</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>hist</FONT></FONT><FONT size=3>(histogram,1),histogram,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>undefined</FONT></FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 05 Sep 2011 18:26:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=735&amp;PID=2797#2797</guid>
  </item> 
  <item>
   <title>Coloured MACD :   I was wondering if it was...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=735&amp;PID=2794#2794</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=213" rel="nofollow">lmbull</a><br /><strong>Subject:</strong> 735<br /><strong>Posted:</strong> 29&nbsp;Aug&nbsp;2011 at 1:33pm<br /><br />I was wondering if it was possible to have the MACD to change colour from bar to bar ?<br>For example in the following manner:<br><br>If (&#091;bar that just closed&#093; &gt;= &#091;previous bar&#093;) then color&#091;bar that just closed&#093; = blue<br>If (&#091;bar that just closed&#093; &lt; &#091;previous bar&#093;) then color&#091;bar that just closed&#093; = red<br><br>This would make it easier to see a change in momentum.<br><br>Eg of bars changing colour :-<br><img src="uploads/213/MACD_Eg.PNG" height="185" width="706" border="0" alt="Color MACD" title="Color MACD" /><br><span style="font-size:10px"><br /><br />Edited by lmbull - 29&nbsp;Aug&nbsp;2011 at 2:12pm</span>]]>
   </description>
   <pubDate>Mon, 29 Aug 2011 13:33:15 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=735&amp;PID=2794#2794</guid>
  </item> 
 </channel>
</rss>