<?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 : Supertrend</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullCharts discussion : Supertrend</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 02:25:01 +0000</pubDate>
  <lastBuildDate>Sat, 20 Jul 2019 08:33:18 +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=1030</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>Supertrend : Hi Davidr and Maximo,Thank you...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3591#3591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=5379" rel="nofollow">SayaPolo</a><br /><strong>Subject:</strong> 1030<br /><strong>Posted:</strong> 20&nbsp;Jul&nbsp;2019 at 8:33am<br /><br />Hi Davidr and Maximo,<div><br></div><div>Thank you both so much for your replies.</div><div><br></div><div>Maximo, Thanks again for your coding. You are a true Guru and really appreciate your time and effort in assisting the community of traders.</div><div><br></div><div>Cheers,</div><div>SayaPolo</div>]]>
   </description>
   <pubDate>Sat, 20 Jul 2019 08:33:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3591#3591</guid>
  </item> 
  <item>
   <title>Supertrend : This is a simplified version that...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3590#3590</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> 1030<br /><strong>Posted:</strong> 19&nbsp;Jul&nbsp;2019 at 7:08pm<br /><br /><div>This is a simplified version that may work better.</div><div><br></div><div>{ Stop Trail ATR }<br>&#091;Target=price&#093;<br>atrper :=Input("ATR period: ",14);<br>atrfact:=Input("ATR multiplier: ",2);<br>loss:=atrfact*ATR(atrper);<br>trail:=<br>If(C&gt;PREV and Ref(C,-1)&gt;PREV, Max(PREV,C-loss),<br>If(C&lt;PREV and Ref(C,-1)&lt;PREV, Min(PREV,C+loss),<br>If(C&gt;PREV, C-loss, C+loss)));<br>Trail;<br>&#091;linestyle=pricecolor&#093;<br>&#091;color=rgb(0,174,0)&#093; if(C&gt;=Trail,1,0);<br>&#091;color=rgb(255,85,85)&#093; if(C&lt;Trail,1,0);<br> </div><div><br></div><div><br></div><div>----------------------------------------------------------------</div><div><br></div><div>Also Wilder had a volatility stop which includes highs and lows.</div><div><br></div><div>{ Wilder Volatility Stop Trail }<br>&#091;Target=price&#093;<br>Mult:=Input("ATR Multiplier",2.2,1);<br>Nb:=if(Mult&lt;3,7,Int(Mult*2+1));<br>Long :=Ref(HHV(C,Nb),-1) - (Ref(ATR(Nb),-1)*Mult);<br>Short:=Ref(LLV(C,Nb),-1) + (Ref(ATR(Nb),-1)*Mult);<br>trail:=<br>If(C&gt;PREV and Ref(C,-1)&gt;PREV, Max(PREV,Long),<br>If(C&lt;PREV and Ref(C,-1)&lt;PREV, Min(PREV,Short),<br>If(C&gt;PREV, Long, Short)));<br>Trail;<br>&#091;linestyle=pricecolor&#093;<br>&#091;color=rgb(0,174,0)&#093; if(C&gt;=Trail,1,0);<br>&#091;color=rgb(255,85,85)&#093; if(C&lt;Trail,1,0);<br>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 19 Jul 2019 19:08:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3590#3590</guid>
  </item> 
  <item>
   <title>Supertrend : Hi SayaPolo,There is a discussion...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3589#3589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=42" rel="nofollow">davidr</a><br /><strong>Subject:</strong> 1030<br /><strong>Posted:</strong> 10&nbsp;Jul&nbsp;2019 at 12:24pm<br /><br />Hi SayaPolo,<div><br></div><div>There is a discussion of the supertrend indicator in a J B Volatility profit taker thread from sometime back, which can be found here:</div><div><br></div><div>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=433&amp;PN=4&amp;title=j-b-volatility-profit-taker</div><div><br></div><div>and Maximo coded it up as an indicator for bullcharts like this:</div><div><br></div><div><span style=": rgb251, 251, 253;">&gt;G'day Jeremy,</span><div style=": rgb251, 251, 253;">&nbsp;</div><div style=": rgb251, 251, 253;">&gt;I've updated the code, more accurate and simplified, no repaint.&nbsp;</div><div style=": rgb251, 251, 253;">&nbsp;</div><div style=": rgb251, 251, 253;">&nbsp;</div><div style=": rgb251, 251, 253;"><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;Description</font><font size="3">="SuperTrend - Max"</font><font color="#800080" size="3">&#093;</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;target</font><font size="3">=price</font><font color="#800080" size="3">&#093;</font></p><font size="3"></font><p><font size="3">Mult:=</font><font color="#0000c0" size="3">Input</font><font size="3">(</font><font color="#008b8b" size="3">"ATR Multiplier"</font><font size="3">,3,1);</font></p><font size="3"></font><p><font size="3">Nb:=</font><font color="#0000c0" size="3">Input</font><font size="3">(</font><font color="#008b8b" size="3">"Nb Periods"</font><font size="3">,8,1);</font></p><font size="3"></font><p><font size="3">method:=</font><font color="#0000c0" size="3">inputma</font><font size="3">(</font><font color="#008b8b" size="3">"Method"</font><font size="3">,Wilders);</font></p><font size="3"></font><p><font size="3">price:=</font><font color="#0000c0" size="3">Input</font><font size="3">(</font><font color="#008b8b" size="3">"1=Median, 2=Close"</font><font size="3">,1,1);</font></p><font size="3"></font><p><font size="3">TruRan:=</font><font color="#0000c0" size="3">ma</font><font size="3">(ATR(1),Nb,method)*Mult;</font></p><font size="3"></font><p><font size="3">HiLimit:=</font><font color="#0000c0" size="3">if</font><font size="3">(price=1,(</font><font color="#0000c0" size="3">H</font><font size="3">+</font><font color="#0000c0" size="3">L</font><font size="3">)/2-TruRan,</font><font color="#0000c0" size="3">C</font><font size="3">-TruRan);</font></p><font size="3"></font><p><font size="3">LoLimit:=</font><font color="#0000c0" size="3">if</font><font size="3">(price=1,(</font><font color="#0000c0" size="3">H</font><font size="3">+</font><font color="#0000c0" size="3">L</font><font size="3">)/2+TruRan,</font><font color="#0000c0" size="3">C</font><font size="3">+TruRan);</font></p><font size="3"></font><p><font size="3">LB:=</font><font color="#0000c0" size="3">If</font><font size="3">(HiLimit&gt;=</font><font color="#0000c0" size="3">PREV</font><font size="3">&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;HiLimit&lt;</font><font color="#0000c0" size="3">C</font><font size="3">,HiLimit,</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">PREV</font><font size="3">,HiLimit-0.1,</font><font color="#0000c0" size="3">PREV</font><font size="3">));</font></p><font size="3"></font><p><font size="3">UB:=</font><font color="#0000c0" size="3">If</font><font size="3">(LoLimit&lt;</font><font color="#0000c0" size="3">PREV</font><font size="3">&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;LoLimit&gt;</font><font color="#0000c0" size="3">C</font><font size="3">,LoLimit,</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">PREV</font><font size="3">,LoLimit+0.1,</font><font color="#0000c0" size="3">PREV</font><font size="3">));</font></p><font size="3"></font><p><font size="3">Trend:=</font><font color="#0000c0" size="3">if</font><font size="3">(UB&gt;</font><font color="#0000c0" size="3">ref</font><font size="3">(UB,-1),1,</font><font color="#0000c0" size="3">if</font><font size="3">(LB&lt;</font><font color="#0000c0" size="3">ref</font><font size="3">(LB,-1),-1,</font><font color="#0000c0" size="3">prev</font><font size="3">));</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;drawundefined</font><font size="3">=gap</font><font color="#800080" size="3">&#093;</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;Color</font><font size="3">=lime green</font><font color="#800080" size="3">&#093;</font></p><font color="#0000c0" size="3"><font color="#0000c0" size="3"></font></font><p><font color="#0000c0" size="3">if</font><font size="3">(Trend=1&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;</font><font color="#0000c0" size="3">hist</font><font size="3">(Trend,1)=-1,LB,</font><font color="#0000c0" size="3">if</font><font size="3">(Trend=-1,UB,</font><font color="#0000c0" size="3">undefined</font><font size="3">));</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;Color</font><font size="3">=red</font><font color="#800080" size="3">&#093;</font></p><font color="#0000c0" size="3"><font color="#0000c0" size="3"></font></font><p><font color="#0000c0" size="3">if</font><font size="3">(Trend=-1 ,UB,</font><font color="#0000c0" size="3">if</font><font size="3">(</font><font color="#0000c0" size="3">hist</font><font size="3">(Trend,1)=1 ,LB,</font><font color="#0000c0" size="3">undefined</font><font size="3">));</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;Color</font><font size="3">=lime green</font><font color="#800080" size="3">&#093;</font></p><font color="#0000c0" size="3"><font color="#0000c0" size="3"></font></font><p><font color="#0000c0" size="3">if</font><font size="3">(Trend=1&nbsp;</font><font color="#0000c0" size="3">or</font><font size="3">&nbsp;Trend=0,LB,</font><font color="#0000c0" size="3">undefined</font><font size="3">);</font></p><font color="#008000" size="3"><font color="#008000" size="3"><p>{ Paint bars}</p></font></font><font size="3"></font><p><font size="3">Flag:=</font><font color="#0000c0" size="3">input</font><font size="3">(</font><font color="#008b8b" size="3">"PaintBars On=1, Off=0"</font><font size="3">,0,0,1);</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;linestyle</font><font size="3">=pricecolor</font><font color="#800080" size="3">;</font><font size="3">&nbsp;</font><font color="#800080" size="3">color</font><font size="3">=rgb(98,217,98)</font><font color="#800080" size="3">&#093;</font></p><font color="#0000c0" size="3"><font color="#0000c0" size="3"></font></font><p><font color="#0000c0" size="3">If</font><font size="3">(Trend=1&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;Flag=1,1,</font><font color="#0000c0" size="3">if</font><font size="3">(Flag=0&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;</font><font color="#0000c0" size="3">C</font><font size="3">&gt;</font><font color="#0000c0" size="3">O</font><font size="3">,1,</font><font color="#0000c0" size="3">undefined</font><font size="3">));</font></p><font color="#800080" size="3"><font color="#800080" size="3"></font></font><p><font color="#800080" size="3">&#091;color</font><font size="3">=rgb(226,118,118)</font><font color="#800080" size="3">&#093;</font><font size="3">&nbsp;</font><font color="#008000" size="3">{red}</font></p><font color="#0000c0" size="3"><font color="#0000c0" size="3"></font></font><p><font color="#0000c0" size="3">If</font><font size="3">(Trend=-1&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;Flag=1,1,</font><font color="#0000c0" size="3">if</font><font size="3">(Flag=0&nbsp;</font><font color="#0000c0" size="3">and</font><font size="3">&nbsp;</font><font color="#0000c0" size="3">C</font><font size="3">&lt;=</font><font color="#0000c0" size="3">O</font><font size="3">,1,</font><font color="#0000c0" size="3">undefined</font><font size="3">));</font></p></div><span style=": rgb251, 251, 253; font-size: 10px;"><br>&gt;Edited by maximo - 09&nbsp;Feb&nbsp;2011 at 2:04am</span></div><div><span style=": rgb251, 251, 253; font-size: 10px;"><br></span></div><div>Regards</div><div>davidr</div><div><span style=": rgb251, 251, 253; font-size: 10px;"><br></span></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 10 Jul 2019 12:24:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3589#3589</guid>
  </item> 
  <item>
   <title>Supertrend : Hi all,Has anyone coded into BullChart...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3588#3588</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=5379" rel="nofollow">SayaPolo</a><br /><strong>Subject:</strong> 1030<br /><strong>Posted:</strong> 08&nbsp;Jul&nbsp;2019 at 12:54pm<br /><br /><table cellspacing="1" cellpadding="3" ="tableBorder" align="center" style="width: 1785px; color: rgb0, 0, 0; font-size: 12px; table-layout: fixed;"><t><tr ="PMtableRow"><td><div ="PMmsg" style="width: 1742.22px;">Hi all,<div><br></div><div>Has anyone coded into BullChart the Supertrend indicator? I would like to use it as either as a Trend trading indicator or as a stop, similar to the Parabolic SAR. I found this in the internet but not sure how to code this into BullChart.</div><div><br></div><div><p ="ms&#111;normal"=""><b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif; color: rgb51, 102, 255;">The supertrend indicator calculation goes as stated below-</span></b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"><o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">&nbsp;<o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Up = (high + low / 2 + multiplier&nbsp; x&nbsp; ATR<o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Down = (high + low) / 2 – multiplier x ATR<o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">&nbsp;<o:p></o:p></span></p><p ="ms&#111;normal"=""><b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Calculation of Average True Range –</span></b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"><o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">&#091;(Prior ATR x 13) + Current TR&#093; / 14<o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">&nbsp;<o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Here, 14 indicates a period. Hence, the ATR is derived by multiplying the previous ATR with 13. Add the latest TR and divide it by period.<o:p></o:p></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;"><br></span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Greatful for any assistance.</span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Cheers,</span></p><p ="ms&#111;normal"=""><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">SayaPolo</span></p><br></div></div></td></tr><tr ="tableBottomRow" style="-: &quot;../../forum_s/bottombar_.gif&quot;;"><td></td></tr></t></table>]]>
   </description>
   <pubDate>Mon, 08 Jul 2019 12:54:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1030&amp;PID=3588#3588</guid>
  </item> 
 </channel>
</rss>