<?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 : Channel Indicator</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Channel Indicator</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 12:00:09 +0000</pubDate>
  <lastBuildDate>Wed, 11 Feb 2009 14:53:12 +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=534</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>Channel Indicator : That&amp;#039;s great Peter!   Good...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=534&amp;PID=1956#1956</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> 534<br /><strong>Posted:</strong> 11&nbsp;Feb&nbsp;2009 at 2:53pm<br /><br />That's great Peter! <DIV>&nbsp;</DIV><DIV>Good to see some active members on this site discussing some ideas and code.</DIV><DIV>I used a bit of that code myself in the Trend Pivot indicator.&nbsp; I created the visual</DIV><DIV>backtest to see how effective entries and exits were.&nbsp;&nbsp; Might as well&nbsp;post it&nbsp; here</DIV><DIV>so people can see if that strategy might suit them.&nbsp; They&nbsp;can freely cut and paste</DIV><DIV>my&nbsp;visual backtest code and adapt it to their own indicators etc. to see how</DIV><DIV>effective they are.</DIV><DIV><FONT color=#008000 size=3><P>{ Trend Pivot }</P></FONT><FONT color=#800080 size=3><P>&#091;Description</FONT><FONT size=3>="Averaged Weekly 50% Pivot"</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT color=#800080 size=3></P></FONT><FONT size=3><P>method := </FONT><FONT color=#0000c0 size=3>inputma</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Method"</FONT><FONT size=3>,</FONT><FONT color=#0000c0 size=3>E</FONT><FONT size=3>);</P><P>tp:=</FONT><FONT color=#0000c0 size=3>Input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Period"</FONT><FONT size=3>,6,2);</P><P>sigs:=</FONT><FONT color=#0000c0 size=3>input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Signals 1=on 0=off"</FONT><FONT size=3>,1,0,1);</P><P>wp:=</FONT><FONT color=#0000c0 size=3>input</FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3>"Weekly Pivot 1=on 0=off"</FONT><FONT size=3>,0,0,1);</P></FONT><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>m:=</FONT><FONT color=#0000c0 size=3>Month</FONT><FONT size=3>()&lt;&gt;</FONT><FONT color=#0000c0 size=3>Ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>Month</FONT><FONT size=3>(),-1);</P><P>p:=</FONT><FONT color=#0000c0 size=3>ValueWhen</FONT><FONT size=3>(1,</FONT><FONT color=#0000c0 size=3>DayOfWeek</FONT><FONT size=3>()=1 </FONT><FONT color=#0000c0 size=3>or</FONT><FONT size=3> m,</FONT><FONT color=#0000c0 size=3>ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>HHV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>H</FONT><FONT size=3>,5)+</FONT><FONT color=#0000c0 size=3>LLV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>L</FONT><FONT size=3>,5),-1)/2);</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>=orchid</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>if</FONT><FONT size=3>(wp,p,</FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>); </FONT><FONT color=#008000 size=3>{weekly pivot point 50%}</FONT><FONT size=3> </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>=medium slate blue</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT size=3><P>pa:=</FONT><FONT color=#0000c0 size=3>ma</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>ref</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>HHV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>H</FONT><FONT size=3>,tp)+</FONT><FONT color=#0000c0 size=3>LLV</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>L</FONT><FONT size=3>,tp),-1)/2,tp,method); </FONT><FONT color=#008000 size=3>{pivot averaged}</P></FONT><FONT size=3><P>pa;</P><P>SignalLong := </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(sigs </FONT><FONT color=#0000c0 size=3>AND</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>&gt;=pa </FONT><FONT color=#0000c0 size=3>AND</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,1)&gt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(pa,1) </FONT><FONT color=#0000c0 size=3>AND</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,2)&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(pa,2),1,0); </P><P>SignalShort := </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(sigs </FONT><FONT color=#0000c0 size=3>AND</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>&lt;pa </FONT><FONT color=#0000c0 size=3>AND</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,1)&lt;</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(pa,1) </FONT><FONT color=#0000c0 size=3>AND</FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>,2)&gt;=</FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(pa,2),1,0);</P><P>SigLong := </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(SignalLong,1,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(SignalShort,0,</FONT><FONT color=#0000c0 size=3>prev</FONT><FONT size=3>));</P><P>SigShort := </FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(SignalShort,1,</FONT><FONT color=#0000c0 size=3>if</FONT><FONT size=3>(SignalLong,0,</FONT><FONT color=#0000c0 size=3>prev</FONT><FONT size=3>));</P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT size=3>=marker</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>marker</FONT><FONT size=3>=long</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=""</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(SigLong </FONT><FONT color=#0000c0 size=3>and</FONT><FONT size=3> SigLong &lt;&gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(SigLong,1),1,0);</P></FONT><FONT color=#800080 size=3><P>&#091;linestyle</FONT><FONT size=3>=marker</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>marker</FONT><FONT size=3>=short</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>name</FONT><FONT size=3>=""</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(SigShort </FONT><FONT color=#0000c0 size=3>and</FONT><FONT size=3> SigShort &lt;&gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(SigShort,1),1,0);</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>=rgb(98,217,98)</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT size=3> </FONT><FONT color=#008000 size=3>{lime green}</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>&gt;=pa,1,0);</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=rgb(226,118,118)</FONT><FONT color=#800080 size=3>&#093;</FONT><FONT size=3> </FONT><FONT color=#008000 size=3>{red}</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>&lt;pa,1,0);</P><P>LE:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(SigLong </FONT><FONT color=#0000c0 size=3>and</FONT><FONT size=3> SigLong &lt;&gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(SigLong,1), </FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>prev</FONT><FONT size=3>); </FONT><FONT color=#008000 size=3>{ LE price save }</P></FONT><FONT size=3><P>SE:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(SigShort </FONT><FONT color=#0000c0 size=3>and</FONT><FONT size=3> SigShort &lt;&gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(SigShort,1), </FONT><FONT color=#0000c0 size=3>C</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>prev</FONT><FONT size=3>); </FONT><FONT color=#008000 size=3>{ SE price save }</P></FONT><FONT size=3><P>LEp:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(SigLong </FONT><FONT color=#0000c0 size=3>and</FONT><FONT size=3> SigLong &lt;&gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(SigLong,1), </FONT><FONT color=#0000c0 size=3>round</FONT><FONT size=3>(((SE-LE)/SE)*100,2), </FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P><P>SEp:=</FONT><FONT color=#0000c0 size=3>If</FONT><FONT size=3>(SigShort </FONT><FONT color=#0000c0 size=3>and</FONT><FONT size=3> SigShort &lt;&gt; </FONT><FONT color=#0000c0 size=3>hist</FONT><FONT size=3>(SigShort,1), </FONT><FONT color=#0000c0 size=3>round</FONT><FONT size=3>(((SE-LE)/LE)*100,2), </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>=Forest Green</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;linestyle</FONT><FONT size=3>=Text</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>textalign</FONT><FONT size=3>=Above,Center</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(LEp&gt;=0, </FONT><FONT color=#008b8b size=3>"+"</FONT><FONT size=3> + LEp + </FONT><FONT color=#008b8b size=3>"%"</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#0000c0 size=3><P>High</FONT><FONT size=3>;</P></FONT><FONT color=#800080 size=3><P>&#091;color</FONT><FONT size=3>=Forest Green</FONT><FONT color=#800080 size=3>&#093;</P><P>&#091;linestyle</FONT><FONT size=3>=Text</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>textalign</FONT><FONT size=3>=Below,Center</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(SEp&gt;0, </FONT><FONT color=#008b8b size=3>"+"</FONT><FONT size=3> + SEp + </FONT><FONT color=#008b8b size=3>"%"</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#0000c0 size=3><P>Low</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;</P><P>&#091;linestyle</FONT><FONT size=3>=Text</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>textalign</FONT><FONT size=3>=Below,Center</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(SEp&lt;0, </FONT><FONT color=#008b8b size=3>" "</FONT><FONT size=3> + SEp + </FONT><FONT color=#008b8b size=3>"%"</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#0000c0 size=3><P>Low</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;</P><P>&#091;linestyle</FONT><FONT size=3>=Text</FONT><FONT color=#800080 size=3>;</FONT><FONT size=3> </FONT><FONT color=#800080 size=3>textalign</FONT><FONT size=3>=Above,Center</FONT><FONT color=#800080 size=3>&#093;</P></FONT><FONT color=#0000c0 size=3><P>If</FONT><FONT size=3>(LEp&lt;0, </FONT><FONT color=#008b8b size=3>" "</FONT><FONT size=3> + LEp + </FONT><FONT color=#008b8b size=3>"%"</FONT><FONT size=3>, </FONT><FONT color=#0000c0 size=3>undefined</FONT><FONT size=3>);</P></FONT><FONT color=#0000c0 size=3><P>High</FONT><FONT size=3>;</P></FONT></DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by maximo - 12&nbsp;Feb&nbsp;2009 at 4:53pm</span>]]>
   </description>
   <pubDate>Wed, 11 Feb 2009 14:53:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=534&amp;PID=1956#1956</guid>
  </item> 
  <item>
   <title>Channel Indicator : Thanks for replying Max.I have...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=534&amp;PID=1944#1944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=643" rel="nofollow">peter1</a><br /><strong>Subject:</strong> 534<br /><strong>Posted:</strong> 08&nbsp;Feb&nbsp;2009 at 1:21pm<br /><br />Thanks for replying Max.<br><br>I have found some Metastock code of Jose Silva's that has been a good starting point. <br><br><u>Pivots - Monthly</u><br><br>{ Message allows color selection b4 plotting }<br>message:=Input("Plot on daily charts",0,0,0);<br><br>{ Month' start }<br>m:=Month()&lt;&gt;Ref(Month(),-1);<br><br>{ Month's OHLC }<br>Om:=ValueWhen(2,m,O);<br>Hm:=ValueWhen(1,m,HighestSince(2,m,H));<br>Hm:=ValueWhen(1,Hm&gt;0,Hm);<br>Lm:=ValueWhen(1,m,LowestSince(2,m,L));<br>Lm:=ValueWhen(1,Lm&gt;0,Lm);<br>Cm:=ValueWhen(1,m,Ref(C,-1));<br><br>{ Pivot levels }<br>p1:=(Hm+Lm+Cm)/3+Hm-Lm;<br>p2:=(Hm+Lm+Cm)/3*2-Lm;<br>p3:=(Hm+Lm+Cm)/3*2-Hm;<br>p4:=(Hm+Lm+Cm)/3-Hm+Lm;<br><br>{ Plot on daily chart }<br>p1;p2;p3;p4]]>
   </description>
   <pubDate>Sun, 08 Feb 2009 13:21:09 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=534&amp;PID=1944#1944</guid>
  </item> 
  <item>
   <title>Channel Indicator : I would like some help in coding...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=534&amp;PID=1941#1941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=643" rel="nofollow">peter1</a><br /><strong>Subject:</strong> 534<br /><strong>Posted:</strong> 06&nbsp;Feb&nbsp;2009 at 12:37pm<br /><br />I would like some help in coding an indicator that finds the highest, lowest and midpoint value in the previous calendar year and draws horizontal lines across the following calendar year price chart. This is just the beginning of a set of different timeframe indicators that I can use on any chart of a lower time frame than the indicator.<br><br>Does anyone have any ideas to get me started?<br><br><font color="#666666">&#091;Hi Maximo, PM'd you&#093;</font>]]>
   </description>
   <pubDate>Fri, 06 Feb 2009 12:37:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=534&amp;PID=1941#1941</guid>
  </item> 
 </channel>
</rss>