<?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 : Smoothing Trailing Stop Berg?</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Smoothing Trailing Stop Berg?</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 15:14:55 +0000</pubDate>
  <lastBuildDate>Tue, 20 Oct 2009 15:41:02 +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=586</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>Smoothing Trailing Stop Berg? : Ah non retreating, except when...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2172#2172</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> 586<br /><strong>Posted:</strong> 20&nbsp;Oct&nbsp;2009 at 3:41pm<br /><br />Ah non retreating, except when it closes below the line?&nbsp; Sounds good.<DIV>&nbsp;</DIV><DIV><FONT size=3><P>M1:=</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>Input</FONT></FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3><FONT color=#008b8b size=3>"ATR Multiplier 1"</FONT></FONT><FONT size=3>,1.5,1);</P><P>M2:=</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>Input</FONT></FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3><FONT color=#008b8b size=3>"ATR Multiplier 2"</FONT></FONT><FONT size=3>,3,1);</P><P>Nb:=</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>Input</FONT></FONT><FONT size=3>(</FONT><FONT color=#008b8b size=3><FONT color=#008b8b size=3>"Nb Periods"</FONT></FONT><FONT size=3>,14,1);</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;target</FONT></FONT><FONT size=3>=price</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P><P>&#091;color</FONT></FONT><FONT size=3>=red</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=dotted</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>HH := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>L</FONT></FONT><FONT size=3>-M2*ATR(Nb);</P><P>HH;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;color</FONT></FONT><FONT size=3>=blue</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=dotted</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>HL := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>L</FONT></FONT><FONT size=3>-M1*ATR(Nb);</P><P>HL;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;color</FONT></FONT><FONT size=3>=black</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;&#093;</P></FONT></FONT><FONT size=3><P>select := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>if</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>&lt;</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ref</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>H</FONT></FONT><FONT size=3>,-1),HH,HL);</P></FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3><P>if</FONT></FONT><FONT size=3>(select&lt;</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>and</FONT></FONT><FONT size=3> </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>close</FONT></FONT><FONT size=3>&gt;</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3>,</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>prev</FONT></FONT><FONT size=3>,select);</P><DIV></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 15:41:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2172#2172</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : MaximoThanks for the quick reply.It,s...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2171#2171</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=425" rel="nofollow">brentjedi</a><br /><strong>Subject:</strong> 586<br /><strong>Posted:</strong> 20&nbsp;Oct&nbsp;2009 at 1:52pm<br /><br />Maximo<br><br>Thanks for the quick reply.<br><br>It,s close..........just needs to be non reclining (not going backwards) and smoothed with the Use15 thingy. Its how to slot in the Use15 part that's needs the force.<br><br>Cheers <br>Brentjedi<img src="http://www.bullcharts.com.au/forum/smileys/smiley17.gif" border="0" alt="T&#111;ngue" /><br><br><br><br><br>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 13:52:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2171#2171</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : I made a test indicator of the...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2170#2170</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> 586<br /><strong>Posted:</strong> 20&nbsp;Oct&nbsp;2009 at 2:40am<br /><br /><DIV>I made a test indicator of the ATR's you were looking at.</DIV><DIV>It appears that switching to the larger stop of 3*ATR when</DIV><DIV>no new high is made would lower your stop.&nbsp; Is that the</DIV><DIV>intended idea?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;target</FONT></FONT><FONT size=3>=price</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P><P>&#091;color</FONT></FONT><FONT size=3>=red</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>HH := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>L</FONT></FONT><FONT size=3>-3*ATR(14);</P><P>HH;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;color</FONT></FONT><FONT size=3>=blue</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT size=3><P>HL := </FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>L</FONT></FONT><FONT size=3>-1.5*ATR(14);</P><P>HL;</P></FONT><FONT color=#800080 size=3><FONT color=#800080 size=3><P>&#091;color</FONT></FONT><FONT size=3>=black</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>linestyle</FONT></FONT><FONT size=3>=solid</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>;</FONT></FONT><FONT size=3> </FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>width</FONT></FONT><FONT size=3>=2</FONT><FONT color=#800080 size=3><FONT color=#800080 size=3>&#093;</P></FONT></FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3><P>if</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>C</FONT></FONT><FONT size=3>&lt;</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>ref</FONT></FONT><FONT size=3>(</FONT><FONT color=#0000c0 size=3><FONT color=#0000c0 size=3>H</FONT></FONT><FONT size=3>,-1),HH,HL);</P><DIV></FONT></DIV></DIV><DIV>&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 02:40:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2170#2170</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : here is what I am trying to achieve...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2169#2169</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=425" rel="nofollow">brentjedi</a><br /><strong>Subject:</strong> 586<br /><strong>Posted:</strong> 19&nbsp;Oct&nbsp;2009 at 5:02pm<br /><br />here is what I am trying to achieve&nbsp; <br>If (close&lt;hist(high,1),low-3*ATR(14),low-1.5*ATR(14))<br><br>Brentjedi<br>]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 17:02:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2169#2169</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : MaximoWhat I am after is the following;...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2168#2168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=425" rel="nofollow">brentjedi</a><br /><strong>Subject:</strong> 586<br /><strong>Posted:</strong> 19&nbsp;Oct&nbsp;2009 at 4:50pm<br /><br />Maximo<br><br>What I am after is the following; when a stock starts trending up and makes new higher highs <br>I want the trailing stop to be tight and fast. When the stock is going sideways I want the stop to be wide and slow. Eg ATR 2 fast ATR 4 slow. <br><br>I hope that helps<br><br>Brentjedi<br>&nbsp;&nbsp;]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 16:50:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2168#2168</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : Let medefine this, so i have an...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2167#2167</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> 586<br /><strong>Posted:</strong> 19&nbsp;Oct&nbsp;2009 at 3:02pm<br /><br /><P>Let me&nbsp;define this, so i have an idea.&nbsp; You want to make an adaptive stoploss based on Volatility?&nbsp; ie. the larger the range the more distant the stoploss.&nbsp; or are you looking for it to adapt to trend, by it selecting a more distant stop&nbsp;if&nbsp;price is making&nbsp;new highs?</P><DIV>Some ATR info</DIV><DIV>&nbsp;</DIV><DIV>ATR&nbsp;(2) to (10) is for price volatility. (adaptive)</DIV><DIV>&nbsp;</DIV><DIV>ATR (11) to (30) is for short to medium term trend volatility.</DIV><DIV>&nbsp;</DIV><DIV>ATR &gt; (30) is&nbsp;long term trend volatility.</DIV><span style="font-size:10px"><br /><br />Edited by maximo - 19&nbsp;Oct&nbsp;2009 at 3:17pm</span>]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 15:02:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2167#2167</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : Thank you Obiwun-maximoI have...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2166#2166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=425" rel="nofollow">brentjedi</a><br /><strong>Subject:</strong> 586<br /><strong>Posted:</strong> 19&nbsp;Oct&nbsp;2009 at 12:09am<br /><br />Thank you Obiwun-maximo<br><br>I have tried to get the ' if(use15,15,1))' fuction on a trailing stop that is constructed with two fuctions under a 'if' fucntion. eg if H&gt;prev H use ATR 2 otherwise use ATR 4.<br>The idea is to let the stop trail at different speeds depending on price action. However I can't get it smooth like Mr Berg's as the use15 part does fit the If formula structure????<br><br>Your help would be great <br>Cheers <br>Brentjedi<br>&nbsp;<br><br><br><br><br>]]>
   </description>
   <pubDate>Mon, 19 Oct 2009 00:09:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2166#2166</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : Hi brent-master-jedi,you could&amp;#039;veconsulted...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2162#2162</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> 586<br /><strong>Posted:</strong> 18&nbsp;Oct&nbsp;2009 at 2:19am<br /><br />Hi brent-master-jedi,&nbsp;you could've&nbsp;consulted with yoda&nbsp;on this&nbsp;one :P j/k<DIV>&nbsp;</DIV><DIV>I translate it as,&nbsp; if&nbsp;the variable use15&nbsp;has a value&nbsp;then use 15 as the value&nbsp;else/otherwise use 1 as the value (ie. 1=unsmoothed or the highest of any single price bar)</DIV><DIV>The&nbsp;IF is also part of the hhv&nbsp;function, which is the HighestHighValue of X number of bars.&nbsp; The X number in this case is 15, so it will return the HighestHighValue of 15 bars.&nbsp;&nbsp;The P in P15 probably stands for Pivot.&nbsp; ie.&nbsp;showing the Highest&nbsp; pivot in 15 bars.&nbsp; Thats why it looks flat until the 15 count has passed.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Obiwun-maximo</DIV>]]>
   </description>
   <pubDate>Sun, 18 Oct 2009 02:19:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2162#2162</guid>
  </item> 
  <item>
   <title>Smoothing Trailing Stop Berg? : Hi guys I have a question regarding...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2161#2161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=425" rel="nofollow">brentjedi</a><br /><strong>Subject:</strong> 586<br /><strong>Posted:</strong> 17&nbsp;Oct&nbsp;2009 at 11:19pm<br /><br />Hi guys <br><br>I have a question regarding Bergs trailing stop formula and trying to understand it and why it works.<br><br>al := input("ATR Length", 10, 1);<br>am := input("ATR Multiplier", 2, 0);<br>use15 := input("Combine with P15 1=yes, 0=no", 1, 0, 1);<br><br><br>&#091;name=Stop; color=Black&#093;<br>ts := hhv(C-am*ATR(al),if(use15,15,1));<br>ts;<br><br>This the stop part of his system, the question is what does&nbsp; if(use15,15,1)) mean?<br>the input of use15 is = input("Combine with P15 1=yes, 0=no", 1, 0, 1).<br>So what does combine with P15 mean? what is P15?. I know that if you don't select P15 then it doesnt smooth the line.<br><br>Yes what is P15 its not in the help section of bullcharts.<br><br>Cheers <br><br>Brentjedi<img src="http://www.bullcharts.com.au/forum/smileys/smiley17.gif" border="0" alt="T&#111;ngue" /><br>]]>
   </description>
   <pubDate>Sat, 17 Oct 2009 23:19:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=586&amp;PID=2161#2161</guid>
  </item> 
 </channel>
</rss>