<?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 : Variable moving average</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Variable moving average</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 10:21:27 +0000</pubDate>
  <lastBuildDate>Fri, 27 Mar 2009 13:12:13 +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=553</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>Variable moving average : I did a study of the CMO, Chande...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2025#2025</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> 553<br /><strong>Posted:</strong> 27&nbsp;Mar&nbsp;2009 at 1:12pm<br /><br /><P>I did a study of the CMO, Chande Momentum Oscillator myself (part of VIDYA), after having read Martin J. Pring's book 'Trading Systems Explained - How to build reliable technical systems'&nbsp; </P><DIV>The CMO is a better oscillator for parcel splitting/scaling out than is RSI.&nbsp;&nbsp;&nbsp;Due to&nbsp;it factoring in both upward and downward momentum&nbsp;at the same&nbsp;time.&nbsp; So, it reaches the oversold and overbought regions more consistantly than RSI, but not more frequently.&nbsp;&nbsp;&nbsp; In that book he explains how to use the oscillator with a simple moving average to&nbsp;profit from both&nbsp; trending&nbsp;and&nbsp;ranging markets&nbsp;using a single&nbsp;method.&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Here's&nbsp;the CMO with a histogram and average applied to it.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#800080 size=3><P>&#091;Description</FONT><FONT size=3>="CMOF - Filtered CMO, Max"</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>n:=</FONT><FONT color=#0000c0 size=3>Input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Length"</FONT><FONT size=3>,10,1);</P><P>momu:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3> &gt; </FONT><FONT color=#0000c0 size=3>Ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,-1),</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3> - </FONT><FONT color=#0000c0 size=3>Ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,-1),0);</P><P>momd:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3> &lt; </FONT><FONT color=#0000c0 size=3>Ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,-1),</FONT><FONT color=#0000c0 size=3>Ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,-1) - </FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,0);</P><P>Momup:=momu / (1.75*</FONT><FONT color=#0000c0 size=3>Stdev</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>Abs</FONT><FONT size=3>(Typ()),n))*125;</P><P>Momdn:=momd / (1.75*</FONT><FONT color=#0000c0 size=3>Stdev</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>Abs</FONT><FONT size=3>(Typ()),n))*125;</P><P>CMOF:=100*((</FONT><FONT color=#0000c0 size=3>Sum</FONT><FONT size=3>(Momup,n)-</FONT><FONT color=#0000c0 size=3>Sum</FONT><FONT size=3>(Momdn,n))/(</FONT><FONT color=#0000c0 size=3>Sum</FONT><FONT size=3>(Momup,n)+</FONT><FONT color=#0000c0 size=3>Sum</FONT><FONT size=3>(Momdn,n)));</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=blue</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>width</FONT><FONT size=3>=2</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>CMOF; </P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>color</FONT><FONT size=3>=gold</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>Sig:=</FONT><FONT color=#0000c0 size=3>Ma</FONT><FONT size=3>(CMOF,10,</FONT><FONT color=#0000c0 size=3>S</FONT><FONT size=3>);</P><P>Sig;</P></FONT><FONT color=#800080 size=3><P>&#091;Name</FONT><FONT size=3>=Histogram</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>linestyle</FONT><FONT size=3>=Histogram</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>color</FONT><FONT size=3>=crimson</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>hst:=CMOF - Sig;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(hst,3) &lt; </FONT><FONT color=#0000c0 size=3>ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(hst,3),-1),hst,</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>=lime green</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(hst,3) &gt; </FONT><FONT color=#0000c0 size=3>ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(hst,3),-1),hst,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT></DIV><span style="font-size:10px"><br /><br />Edited by maximo - 27&nbsp;Mar&nbsp;2009 at 1:43pm</span>]]>
   </description>
   <pubDate>Fri, 27 Mar 2009 13:12:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2025#2025</guid>
  </item> 
  <item>
   <title>Variable moving average : My guess is the 200 is a maximum...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2024#2024</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> 553<br /><strong>Posted:</strong> 27&nbsp;Mar&nbsp;2009 at 12:41pm<br /><br />My guess is the 200 is a maximum value for the indicator and 1 would be the minimum.&nbsp; No need to put limits on our settings :P<DIV></DIV>]]>
   </description>
   <pubDate>Fri, 27 Mar 2009 12:41:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2024#2024</guid>
  </item> 
  <item>
   <title>Variable moving average : Thanks Maximo yet again. What...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2023#2023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=294" rel="nofollow">jalna</a><br /><strong>Subject:</strong> 553<br /><strong>Posted:</strong> 27&nbsp;Mar&nbsp;2009 at 7:31am<br /><br />Thanks Maximo yet again. What would we all do without you ?<br>I noticed in the formula that you have left out 200 in the first 2 lines. Was this not needed for the BC formula ?<br>]]>
   </description>
   <pubDate>Fri, 27 Mar 2009 07:31:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2023#2023</guid>
  </item> 
  <item>
   <title>Variable moving average : Sure Jalna,   Length:=Input...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2022#2022</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> 553<br /><strong>Posted:</strong> 27&nbsp;Mar&nbsp;2009 at 1:59am<br /><br /><P>Sure Jalna,</P><FONT color=#800080 size=3><P>&#091;Description</FONT><FONT size=3>="Tushar Chande's variable-length moving average (VIDYA)"</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;target</FONT><FONT size=3>=price</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>color</FONT><FONT size=3>=Magenta</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>width</FONT><FONT size=3>=2</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>Length:=</FONT><FONT color=#0000c0 size=3>Input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Length"</FONT><FONT size=3>,21,1);</P><P>Smooth:=</FONT><FONT color=#0000c0 size=3>Input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Smoothing"</FONT><FONT size=3>,5,0);</P><P>AbsCMO:=(</FONT><FONT color=#0000c0 size=3>Abs</FONT><FONT size=3>(CMO(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,Length)))/100;</P><P>SC:=2/(Smooth+1);</P><P>VIDYA:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>Cum</FONT><FONT size=3>(1)&lt;=(Length+1),</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,(SC*AbsCMO*</FONT><FONT color=#0000c0 size=3>CLOSE</FONT><FONT size=3>)+(1-(SC*AbsCMO))*</FONT><FONT color=#0000c0 size=3>PREV</FONT><FONT size=3>);</P><P>VIDYA</P></FONT><span style="font-size:10px"><br /><br />Edited by maximo - 27&nbsp;Mar&nbsp;2009 at 2:04am</span>]]>
   </description>
   <pubDate>Fri, 27 Mar 2009 01:59:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2022#2022</guid>
  </item> 
  <item>
   <title>Variable moving average : Can anyone write the code for...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2016#2016</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=294" rel="nofollow">jalna</a><br /><strong>Subject:</strong> 553<br /><strong>Posted:</strong> 26&nbsp;Mar&nbsp;2009 at 10:51am<br /><br />Can anyone write the code for this MA by Tushar Chande<br><span ="Apple-style-span" style="font-size: 16px; font-family: Verdana;"><h2><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a name="Vidya 21, 5">Vidya 21, 5</a></strong></font></h2><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">This is the MetaStock code for VIDYA 21,5 which applies to the article "Breaking Out Of Price Channels" by Gerald Marisch in the TASC January 1998 edition.<br><br>Length:=Input("Length",1,200,21);<br>Smooth:=Input("Smoothing",1,200,5);<br>AbsCMO:=(Abs(CMO(C,Length)))/100;<br>SC:=2/(Smooth+1);<br>VIDYA:=If(Cum(1)&lt;=(Length+1),C,(SC*AbsCMO*CLOSE)+(1-(SC*AbsCMO))*PREV);<br>VIDYA</font></p></span><br>]]>
   </description>
   <pubDate>Thu, 26 Mar 2009 10:51:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=553&amp;PID=2016#2016</guid>
  </item> 
 </channel>
</rss>