<?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 : Gotcha</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Gotcha</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 13:26:21 +0000</pubDate>
  <lastBuildDate>Fri, 18 Aug 2006 18:00:35 +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=380</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>Gotcha : Hi All, Tried to use the following...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=380&amp;PID=1408#1408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=186" rel="nofollow">NeilW</a><br /><strong>Subject:</strong> 380<br /><strong>Posted:</strong> 18&nbsp;Aug&nbsp;2006 at 6:00pm<br /><br /><P>Hi All,</P><P>Tried to use the following piece of code and it did not perform the way I expected. When plotted onto a nice uptrend i.e. BHP end of March 06. It shows some "D"'s in the middle of the trend yet the fast MA is always above the slow MA???</P><P>Little did I know that "UpTrend" is actually a function and you can do what ever you like to it and it does not give the slightest hint that it is a reserved word/function and does whatever it likes.</P><P>So, always check any of your variable names you create and ensure that they are not used already by the compiler.</P><P>Neil.</P><FONT color=#800080 size=3><P><FONT color=#800080 size=3>&#091;target</FONT><FONT color=#000000 size=3>=Price</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>FastMA := </FONT><FONT color=#0000c0 size=3>input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Fast MA Value"</FONT><FONT size=3>,4,0);</P><P>SlowMA := </FONT><FONT color=#0000c0 size=3>input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Slow MA Value"</FONT><FONT size=3>,9,0);</P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT color=#000000 size=3>=NoPlot</FONT><FONT color=#800080 size=3>&#093;</P><P>Uptrend := False;</P></FONT><FONT size=3><P>MA1 := </FONT><FONT color=#0000c0 size=3>MA</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,FastMA,</FONT><FONT color=#0000c0 size=3>E</FONT><FONT size=3>);</P><P>MA2 := </FONT><FONT color=#0000c0 size=3>MA</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,SlowMA,</FONT><FONT color=#0000c0 size=3>E</FONT><FONT size=3>);</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3><FONT color=#000000>( MA1 &gt; MA2,UpTrend = True,UpTrend =False);</FONT></P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT color=#000000 size=3>=Blue</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;linestyle</FONT><FONT color=#000000 size=3>=Text</FONT><FONT color=#800080 size=3>;</FONT><FONT color=#000000 size=3> </FONT><FONT color=#800080 size=3>textalign</FONT><FONT color=#000000 size=3>=Above,Center</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT color=#000000 size=3>(uptrend, </FONT><FONT color=#008b8b size=3>"U"</FONT><FONT color=#000000 size=3>,</FONT><FONT color=#008b8b size=3>"D"</FONT><FONT size=3><FONT color=#000000>);</FONT></P></FONT><FONT color=#0000c0 size=3><P>Low</FONT><FONT size=3><FONT color=#000000>-2*ATR(3);</FONT></P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT color=#000000 size=3>=Blue</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;linestyle</FONT><FONT color=#000000 size=3>=dotted</FONT><FONT color=#800080 size=3>;</FONT><FONT color=#000000 size=3> </FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>MA1;</P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT color=#000000 size=3>=solid</FONT><FONT color=#800080 size=3>;</FONT><FONT color=#000000 size=3> </FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>MA2;</P></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 18 Aug 2006 18:00:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=380&amp;PID=1408#1408</guid>
  </item> 
 </channel>
</rss>