<?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 : Linear Regressi&#111;n Moving Average</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullCharts discussion : Linear Regressi&#111;n Moving Average</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 10 Apr 2026 20:42:00 +0000</pubDate>
  <lastBuildDate>Tue, 29 Jul 2008 23:35:23 +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=295</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>Linear Regressi&#111;n Moving Average : No Rounders it&amp;#039;s for BullCharts...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1781#1781</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> 295<br /><strong>Posted:</strong> 29&nbsp;Jul&nbsp;2008 at 11:35pm<br /><br /><P>No Rounders it's for BullCharts software.</P><P>CMC already has them built in.</P><P>Backtest before trading.&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 23:35:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1781#1781</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average :  Originally posted by maximo Yep,...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1780#1780</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=620" rel="nofollow">Rounders</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 27&nbsp;Jul&nbsp;2008 at 10:24am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by maximo</strong></em><br /><br /><P>Yep, the best one can do at the&nbsp; moment is a work around.&nbsp; A new attribute would make it possible.&nbsp; eg. &#091;linestyle=linecolor&#093; just like &#091;linestyle=pricecolor&#093; and &#091;linestyle=bar&#093; makes dual colouring of them possible.&nbsp; Here's my attempt :)</P><FONT color=#800080 size=3><P>&#091;target</FONT><FONT size=3>=Price</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>category</FONT><FONT size=3>=Moving Average</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>Author</FONT><FONT size=3>=Max</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>StartDate:=</FONT><FONT color=#0000c0 size=3>InputDate</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Start date"</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>date</FONT><FONT size=3>(2004,1,2));</P><P>HoldingDays:=</FONT><FONT color=#0000c0 size=3>BarsSince</FONT><FONT size=3>(OnOrSkipped(StartDate));</P><P>period := </FONT><FONT color=#0000c0 size=3>input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Time periods"</FONT><FONT size=3>,28,1);</P><P>bar := </FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(2*</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,</FONT><FONT color=#0000c0 size=3>int</FONT><FONT size=3>(period/2),</FONT><FONT color=#0000c0 size=3>W</FONT><FONT size=3>) - </FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,period,</FONT><FONT color=#0000c0 size=3>W</FONT><FONT size=3>),</P></FONT><FONT color=#0000c0 size=3><P>int</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>sqrt</FONT><FONT size=3>(period)), </FONT><FONT color=#0000c0 size=3>W</FONT><FONT size=3>);</P></FONT><FONT color=#008000 size=3><P>{Flag the StartDate}</P></FONT><FONT size=3><P>begin:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(bar&gt;=</FONT><FONT color=#0000c0 size=3>PREV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3>PREV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),bar*Holdingdays);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=lime</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=up</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>width</FONT><FONT size=3>=1</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(begin=0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(bar&gt;=</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),bar,bar),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=dark orchid</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=down</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(begin=0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(bar&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),bar,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=rgb(230,230,230)</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=down2</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>bar2 := (</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1)+bar)/2;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(begin=0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(bar&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),bar2,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT size=3>=pricecolor</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;color</FONT><FONT size=3>=dark green</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(begin=0,bar&gt;=</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=crimson</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(begin=0,bar&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>)</FONT></P><P><FONT size=3>&nbsp;</P><P></FONT></td></tr></table> </P><P>&nbsp;</P><P>Hello I question that formula its for CMC Markets??</P><P>I can put that formula five me error why???<IMG src="http://www.bullcharts.com.au/forum/smileys/smiley19.gif" border="0"></P><P>Tell something have fantastics trades<IMG src="http://www.bullcharts.com.au/forum/smileys/smiley2.gif" border="0"></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 27 Jul 2008 10:24:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1780#1780</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : is not in bullscript help. I found...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1486#1486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=206" rel="nofollow">blackdog</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 22&nbsp;Dec&nbsp;2006 at 1:36pm<br /><br /><DIV><FONT size=2>&#091;drawundefined=gap<FONT color=#800080>&#093; is not in bullscript help. I found it used in darvos box script and a little experimentation showed what it does... As you say, more than one way to skin a cat... hehe...</FONT></FONT></DIV><DIV><FONT color=#800080 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#800080 size=2>merry Christmas...</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 22 Dec 2006 13:36:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1486#1486</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Shows there&amp;#039;s more than 1...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1485#1485</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> 295<br /><strong>Posted:</strong> 21&nbsp;Dec&nbsp;2006 at 6:31pm<br /><br /><P>Shows there's more than 1 way to skin a cat. Didn't know about <FONT size=2>&#091;drawundefined=gap</FONT><FONT color=#800080><FONT size=2>&#093; and cant find it in the bullscript help.</FONT></FONT></P><P>Cheers!</P>]]>
   </description>
   <pubDate>Thu, 21 Dec 2006 18:31:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1485#1485</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Thanks blackdog! Used your script...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1484#1484</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> 295<br /><strong>Posted:</strong> 21&nbsp;Dec&nbsp;2006 at 6:22pm<br /><br /><P>Thanks blackdog!</P><P>Used your script and managed to&nbsp;remove the gap :)</P><FONT color=#800080 size=3><P>&#091;target</FONT><FONT size=3>=price</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>ma3:= </FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,30,</FONT><FONT color=#0000c0 size=3>E</FONT><FONT size=3>);</P><P>linecolor:= </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(ma3&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(ma3,1),0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(ma3&gt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(ma3,1),1,</FONT><FONT color=#0000c0 size=3>prev</FONT><FONT size=3>));</P></FONT><FONT color=#008000 size=3><P>{no lines drawn when indicator is "undefined"}</P></FONT><FONT color=#800080 size=3><P>&#091;drawundefined</FONT><FONT size=3>=gap</FONT><FONT color=#800080 size=3>&#093;</FONT></P><P><FONT color=#800080 size=3>&#091;color</FONT><FONT size=3>=red</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3> (linecolor=0,</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(ma3,1),ma3);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=green</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3> (linecolor=1,ma3,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>)</FONT></P><P><FONT size=3>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Thu, 21 Dec 2006 18:22:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1484#1484</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Maximo, a couple of comments on...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1483#1483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=206" rel="nofollow">blackdog</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 19&nbsp;Dec&nbsp;2006 at 7:07pm<br /><br /><DIV>Maximo, a couple of comments on your detailed script:</DIV><DIV><FONT size=3><P><FONT size=2>I have a modified version of my script which I think fixes the gap problem. It is not as detailed as Maximo's script, I only am showing the changing of the colour on the indicator. It is somewhat similar to maximo's script in that it sets the indicator to one colour then overwrites parts of it with the second colour.</FONT></P><P><FONT size=2>linecolor:=</FONT></P><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (ma3&lt;<FONT color=#0000c0>hist</FONT>(ma3,1),0, &nbsp;{for ma3 downdard}</FONT></P><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (ma3&gt;<FONT color=#0000c0>hist</FONT>(ma3,1),1,&nbsp; {for ma3 upward}</FONT></P><FONT color=#0000c0><P><FONT size=2>prev</FONT></FONT><FONT size=2>));&nbsp;&nbsp;&nbsp;&nbsp; {for ma3 sideways}</FONT></P><FONT color=#800080><P><FONT size=2>&#091;drawundefined</FONT></FONT><FONT size=2>=gap</FONT><FONT color=#800080><FONT size=2>&#093;&nbsp;&nbsp; {This attribute is essential to prevent straight &nbsp;lines being drawn when indicator is "undefined"}</FONT></P><P><FONT size=2>&#091;</FONT></FONT><FONT size=2><FONT color=#800080>color</FONT>=red<FONT color=#800080>&#093;</FONT></FONT><FONT color=#008000 size=2></P></FONT><FONT color=#0000c0><P><FONT size=2>ma3;&nbsp; {default colour for indicator when it is not green}</FONT></FONT></P><FONT color=#800080><P></FONT><FONT size=2><FONT color=#800080>&#091;color</FONT>=green<FONT color=#800080>&#093;</FONT></FONT><FONT color=#008000 size=2></P></FONT><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (linecolor=1,ma3,<FONT color=#0000c0>undefined</FONT>);&nbsp; &nbsp;{this leaves a gap on first bar upward but leaves last bar on graph filled}</FONT></P><FONT color=#008000 size=2><P>if<FONT size=2><FONT color=#000000> (</FONT><FONT color=#0000c0>hist</FONT><FONT color=#000000>(linecolor,-1)=1,ma3,undefined);&nbsp; </FONT></FONT>&nbsp;{this fills first gap upwards but leaves a gap on last bar of graph}</P><P>{ Between them these two lines of script cover all the required green area. Dont combine them into one compound if statement as it then fails to work on the last bar plotted}</P></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 19 Dec 2006 19:07:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1483#1483</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Yep, the best one can do at the...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1482#1482</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> 295<br /><strong>Posted:</strong> 19&nbsp;Dec&nbsp;2006 at 5:19pm<br /><br /><P>Yep, the best one can do at the&nbsp; moment is a work around.&nbsp; A new attribute would make it possible.&nbsp; eg. &#091;linestyle=linecolor&#093; just like &#091;linestyle=pricecolor&#093; and &#091;linestyle=bar&#093; makes dual colouring of them possible.&nbsp; Here's my attempt :)</P><FONT color=#800080 size=3><P>&#091;target</FONT><FONT size=3>=Price</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>category</FONT><FONT size=3>=Moving Average</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>Author</FONT><FONT size=3>=Max</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>StartDate:=</FONT><FONT color=#0000c0 size=3>InputDate</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Start date"</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>date</FONT><FONT size=3>(2004,1,2));</P><P>HoldingDays:=</FONT><FONT color=#0000c0 size=3>BarsSince</FONT><FONT size=3>(OnOrSkipped(StartDate));</P><P>period := </FONT><FONT color=#0000c0 size=3>input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Time periods"</FONT><FONT size=3>,28,1);</P><P>bar := </FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(2*</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,</FONT><FONT color=#0000c0 size=3>int</FONT><FONT size=3>(period/2),</FONT><FONT color=#0000c0 size=3>W</FONT><FONT size=3>) - </FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,period,</FONT><FONT color=#0000c0 size=3>W</FONT><FONT size=3>),</P></FONT><FONT color=#0000c0 size=3><P>int</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>sqrt</FONT><FONT size=3>(period)), </FONT><FONT color=#0000c0 size=3>W</FONT><FONT size=3>);</P></FONT><FONT color=#008000 size=3><P>{Flag the StartDate}</P></FONT><FONT size=3><P>begin:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(bar&gt;=</FONT><FONT color=#0000c0 size=3>PREV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3>PREV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),bar*Holdingdays);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=lime</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=up</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>width</FONT><FONT size=3>=1</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(begin=0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(bar&gt;=</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),bar,bar),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=dark orchid</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=down</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(begin=0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(bar&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),bar,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=rgb(230,230,230)</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=down2</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>bar2 := (</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1)+bar)/2;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(begin=0,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(bar&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),bar2,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT size=3>=pricecolor</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;color</FONT><FONT size=3>=dark green</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(begin=0,bar&gt;=</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=crimson</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(begin=0,bar&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(bar,1),</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>)</FONT></P><P><FONT size=3>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Tue, 19 Dec 2006 17:19:17 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1482#1482</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : The following script for an indicator...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1481#1481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=206" rel="nofollow">blackdog</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 19&nbsp;Dec&nbsp;2006 at 11:52am<br /><br /><DIV>The following script for an indicator ma3, displays red for a line moving down and green for a line moving up. Line moving sideways displays same color as line previously. It however still leaves a gap of one bar where the line changes direction.&nbsp; Im sure there is some simple way to overcome this gap problem...I just haven't found it yet. In the mean time the fudge is to fill the gap&nbsp;with the underlying blue (default colour).</DIV><DIV>&nbsp;</DIV><DIV><P><FONT size=2>ma3; {to fill in gap when indicator changes direction}</FONT></P><P><FONT size=2>linecolor:=</FONT></P><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (ma3&lt;<FONT color=#0000c0>hist</FONT>(ma3,1),0,</FONT></P><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (ma3&gt;<FONT color=#0000c0>hist</FONT>(ma3,1),1,</FONT></P><FONT color=#0000c0><P><FONT size=2>prev</FONT></FONT><FONT size=2>));</FONT></P><FONT color=#800080><P><FONT size=2>&#091;drawundefined</FONT></FONT><FONT size=2>=gap</FONT><FONT color=#800080><FONT size=2>&#093;&nbsp;&nbsp; {no lines drawn when indicator is "undefined"}</FONT></P><P><FONT size=2>&#091;</FONT></FONT><FONT size=2><FONT color=#800080>color</FONT>=red<FONT color=#800080>&#093;</FONT></FONT><FONT color=#008000 size=2></P></FONT><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (linecolor=0,ma3,<FONT color=#0000c0>undefined</FONT>);</FONT><FONT color=#008000 size=2></P></FONT><FONT color=#800080><P></FONT><FONT size=2><FONT color=#800080>&#091;color</FONT>=green<FONT color=#800080>&#093;</FONT></FONT><FONT color=#008000 size=2></P></FONT><FONT color=#0000c0><P><FONT size=2>if</FONT></FONT><FONT size=2> (linecolor=1,ma3,<FONT color=#0000c0>undefined</FONT>);</FONT></P><FONT color=#008000 size=2><P>&nbsp;</P></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 19 Dec 2006 11:52:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1481#1481</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : I too have been playing around...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1480#1480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=206" rel="nofollow">blackdog</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 19&nbsp;Dec&nbsp;2006 at 9:27am<br /><br /><DIV>I too have been playing around to get BullCharts to colour code the direction of the lines but so far I have been unsuccessful.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The following code to worked on the first attempt, except it showed a gap for one bar between red and green sections of the line. Subsequent&nbsp; attempts to modify the script (including returning it to origional) have all failed with&nbsp;&nbsp;BC displaying unwanted straight&nbsp;lines for the undefined sections. </DIV><DIV><FONT color=#800080 size=3></FONT>&nbsp;</DIV><DIV><FONT color=#800080 size=3>&#091;</FONT><FONT color=#800080 size=3>color</FONT><FONT size=3>=red</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT color=#008000 size=3></DIV><DIV></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3> (ma3&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(ma3,1),ma3,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</FONT></P><P><FONT size=3>&#091;<FONT color=#800080>color</FONT>=green<FONT color=#800080>&#093;</FONT></FONT><FONT color=#008000 size=3></P></FONT><FONT color=#0000c0><P><FONT size=3>if</FONT></FONT><FONT size=3> (ma3&lt;<FONT color=#0000c0>hist</FONT>(ma3,1),<FONT color=#0000c0>undefined</FONT>,ma3);</FONT></P><P><FONT size=3></FONT>&nbsp;</P></DIV>]]>
   </description>
   <pubDate>Tue, 19 Dec 2006 09:27:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1480#1480</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Picture2:  </title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1478#1478</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> 295<br /><strong>Posted:</strong> 18&nbsp;Dec&nbsp;2006 at 11:13pm<br /><br /><P>Picture2:</P><P><IMG src="uploads/maximo/2006-12-18_231253_VIAcom-trending-2hours.png" border="0"></P>]]>
   </description>
   <pubDate>Mon, 18 Dec 2006 23:13:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1478#1478</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Wellit might just sound like a...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1477#1477</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> 295<br /><strong>Posted:</strong> 18&nbsp;Dec&nbsp;2006 at 11:10pm<br /><br /><P>Well&nbsp;it might just sound like a gay little geek feature, but i guess a couple of pictures would say a 1000 words.&nbsp; Who knows... maybe i've discovered a different way of trading trends.&nbsp;&nbsp; CMC market maker software TM.&nbsp; Allows dual colouring of lines up/down.&nbsp; Anyhow a couple of examples so perhaps one of our programmers can make it possible.&nbsp; ie. dual coloured lines on chart.</P><P>Picture 1: Supertrend indicator on chart for ATR stop loss placement.</P><P>Picture 2: LinearRegression(13) for riding the trend too the end. Isn't that what we all want?<IMG src="uploads/maximo/2006-12-18_230951_Chart-Supertrend.png" border="0"></P>]]>
   </description>
   <pubDate>Mon, 18 Dec 2006 23:10:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1477#1477</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Thats exactly the info i needed...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1445#1445</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> 295<br /><strong>Posted:</strong> 17&nbsp;Oct&nbsp;2006 at 11:03pm<br /><br /><P>Thats exactly the info i needed too <IMG src="http://www.bullcharts.com.au/forum/smileys/smiley1.gif" border="0"></P><P>Now how do i color code the line if its&nbsp;rising=Green&nbsp;and a Red colour for when it is going down?</P>]]>
   </description>
   <pubDate>Tue, 17 Oct 2006 23:03:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1445#1445</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Thanks Guys - that&amp;#039;s excellent...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1056#1056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=110" rel="nofollow">bparsons</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 19&nbsp;Sep&nbsp;2005 at 11:34pm<br /><br />Thanks Guys - that's excellent my demo copy should arrive in the mailshortly. Active forums are a great bonus for a product like this.&nbsp;]]>
   </description>
   <pubDate>Mon, 19 Sep 2005 23:34:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1056#1056</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : yep, the time series moving average...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1054#1054</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=76" rel="nofollow">zorro</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 19&nbsp;Sep&nbsp;2005 at 10:43pm<br /><br />yep, the time series moving average is a moving linear regression]]>
   </description>
   <pubDate>Mon, 19 Sep 2005 22:43:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1054#1054</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : From the formula definitions of...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1050#1050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=96" rel="nofollow">Dingo</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 19&nbsp;Sep&nbsp;2005 at 10:49am<br /><br />From the formula definitions of the various MA options available:<br><br><span style="font-style: italic;">TIME SERIES: Uses linear regression to determine where the line of best would have ended</span>.<br><br>Is this what you were after (10 and 50 day Time Series MA):<br><br><span style="font-style: italic;"><img src="uploads/Dingo/2005-09-19_104846_DJS_-_Daily_-_DAVID_J&#079;NES_LIMITED__ORDINARY.gif" border="0"></span><br><br>]]>
   </description>
   <pubDate>Mon, 19 Sep 2005 10:49:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1050#1050</guid>
  </item> 
  <item>
   <title>Linear Regressi&#111;n Moving Average : Guys can you tell me if BullCharts...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1049#1049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=110" rel="nofollow">bparsons</a><br /><strong>Subject:</strong> 295<br /><strong>Posted:</strong> 17&nbsp;Sep&nbsp;2005 at 7:28pm<br /><br />Guys can you tell me if BullCharts will enable me to do a linearregression moving average ? I want to do something like a standardmoving average 10 day/50 day except with linear regression ?<br><br>If it doesnt anyone got any ideas on what software would enable me to do this ?<br><br>Thanks in Advance<br>]]>
   </description>
   <pubDate>Sat, 17 Sep 2005 19:28:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=295&amp;PID=1049#1049</guid>
  </item> 
 </channel>
</rss>