<?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 : BullScript</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : Last 10 Posts</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 04:25:54 +0000</pubDate>
  <lastBuildDate>Sun, 07 Feb 2021 13:50:31 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>www.bullcharts.com.au/forum/RSS_topic_feed.asp?FID=5</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>BullScript : Calculate dates</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1042&amp;PID=3639#3639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=5515" rel="nofollow">G-fer</a><br /><strong>Subject:</strong> Calculate dates<br /><strong>Posted:</strong> 07&nbsp;Feb&nbsp;2021 at 1:50pm<br /><br /><div>Hi all,</div><div><br></div><div> I'm hoping one of the script gurus can help me with 2 problems that have been frustrating me. The first is that I can't figure out the code to produce a column in a scan that will show me the date 4 days before the scan date. For example, if I start a scan on 6/2, I would like to produce a column using bullscript that says shows 2/2. The built in scan criteria dialogue doesn't work if you choose to display date minus 4 days, you get an error message, so it needs to be done with bullscript.</div><div><br></div><div>The second thing that I would like to do is hide columns that I don't need to see. This helps to keep a spreadsheet smaller.</div><div><br></div><div>Any help would be much appreciated.</div><div><br></div><div>Graham<br></div>]]>
   </description>
   <pubDate>Sun, 07 Feb 2021 13:50:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1042&amp;PID=3639#3639</guid>
  </item> 
  <item>
   <title>BullScript : Welles Wilder Super Trend</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3635#3635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=671" rel="nofollow">meldeans</a><br /><strong>Subject:</strong> Welles Wilder Super Trend<br /><strong>Posted:</strong> 09&nbsp;Dec&nbsp;2020 at 2:02pm<br /><br />Sorry for the delay response - thought i had email notification set on my post but didn't.<div><br></div><div>Thanks Maximo - works a treat.&nbsp; Really appreciate it.&nbsp;<img src="http://www.bullcharts.com.au/forum/smileys/smiley32.gif" border="0" alt="Clap" title="Clap" /></div>]]>
   </description>
   <pubDate>Wed, 09 Dec 2020 14:02:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3635#3635</guid>
  </item> 
  <item>
   <title>BullScript : Welles Wilder Super Trend</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3634#3634</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> Welles Wilder Super Trend<br /><strong>Posted:</strong> 04&nbsp;Dec&nbsp;2020 at 4:24am<br /><br /><div><div style="color: rgb0, 0, 0; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decorati&#111;n: n&#111;ne; text-indent: 0px; text-trans: n&#111;ne; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">It probably doesn't constantly show a 1 or 0 due to the '<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decorati&#111;n: n&#111;ne; text-indent: 0px; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">undefined' output for changing the line colours.</span></div><div style="color: rgb0, 0, 0; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decorati&#111;n: n&#111;ne; text-indent: 0px; text-trans: n&#111;ne; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">This similar indicator is easier to adapt. &nbsp; The last line should provide the digital output you're looking for.</div><div style="color: rgb0, 0, 0; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decorati&#111;n: n&#111;ne; text-indent: 0px; text-trans: n&#111;ne; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"><br></div></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;</div><div><br></div><div>{ digital signal: if close is above previous value it's in buy(1) else it's in sell(0) }<br>direction := if(close&gt;prev,1,0); <br><br></div><div><br></div><span style="font-size:10px"><br /><br />Edited by maximo - 06&nbsp;Dec&nbsp;2020 at 11:19pm</span>]]>
   </description>
   <pubDate>Fri, 04 Dec 2020 04:24:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3634#3634</guid>
  </item> 
  <item>
   <title>BullScript : Welles Wilder Super Trend</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3633#3633</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> Welles Wilder Super Trend<br /><strong>Posted:</strong> 04&nbsp;Dec&nbsp;2020 at 2:12am<br /><br /><div><br></div><div><br></div><span style="font-size:10px"><br /><br />Edited by maximo - 06&nbsp;Dec&nbsp;2020 at 11:20pm</span>]]>
   </description>
   <pubDate>Fri, 04 Dec 2020 02:12:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3633#3633</guid>
  </item> 
  <item>
   <title>BullScript : Welles Wilder Volatility Stop</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1021&amp;PID=3632#3632</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> Welles Wilder Volatility Stop<br /><strong>Posted:</strong> 04&nbsp;Dec&nbsp;2020 at 2:10am<br /><br /><div>If the stop setting is &lt; 'less than' 3, the minimum lookback bars used in calculation is 7 bars. &nbsp; This is also the smallest number of bars for 3x ATR. &nbsp; Higher ATR values will calculate with more bars than 7.</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 04 Dec 2020 02:10:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1021&amp;PID=3632#3632</guid>
  </item> 
  <item>
   <title>BullScript : Welles Wilder Super Trend</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3631#3631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=671" rel="nofollow">meldeans</a><br /><strong>Subject:</strong> Welles Wilder Super Trend<br /><strong>Posted:</strong> 26&nbsp;Nov&nbsp;2020 at 3:48pm<br /><br />Hi,<div><br></div><div>Can anyone help with some issues I am having with Super Trend indicators?&nbsp;&nbsp;</div><div><br></div><div>I am using the indicator to trade long only in SMSF.&nbsp; I only want to take signals when price is trading above the indicator.&nbsp; None of my indicators with my criteria work when i include the code line:</div><div>c&gt;Formula("Super Trend Wilders", 3, 30, Wilders, 2).</div><div><br></div><div>I have copied this formula I presume off here somewhere as below:</div><div><br></div><div><div>{==== BullScript ====}</div><div><br></div><div>&#091;Description="SuperTrend - Max"&#093;</div><div>&#091;target=price&#093;</div><div>Mult:=Input("ATR Multiplier",3,1);</div><div>Nb:=Input("Nb Periods",8,1);</div><div>method:=inputma("Method",Wilders);</div><div>price:=Input("1=Median, 2=Close",1,1);</div><div>TruRan:=ma(ATR(1),Nb,method)*Mult;</div><div>HiLimit:=if(price=1,(H+L)/2-TruRan,C-TruRan);</div><div>LoLimit:=if(price=1,(H+L)/2+TruRan,C+TruRan);</div><div>LB:=If(HiLimit&gt;=PREV and HiLimit&lt;C,HiLimit,If(C&lt;PREV,HiLimit-0.1,PREV));</div><div>UB:=If(LoLimit&lt;PREV and LoLimit&gt;C,LoLimit,If(C&gt;PREV,LoLimit+0.1,PREV));</div><div>Trend:=if(UB&gt;ref(UB,-1),1,if(LB&lt;ref(LB,-1),-1,prev));</div><div>&#091;drawundefined=gap&#093;</div><div>&#091;Color=lime green&#093;</div><div>if(Trend=1 and hist(Trend,1)=-1,LB,if(Trend=-1,UB,undefined));</div><div>&#091;Color=red&#093;</div><div>if(Trend=-1 ,UB,if(hist(Trend,1)=1 ,LB,undefined));</div><div>&#091;Color=lime green&#093;</div><div>if(Trend=1 or Trend=0,LB,undefined);</div><div><br></div></div><div>When I display the Super Trend indicator in a pane all of its own so it should show "0" when price below indicator and "1" when above.&nbsp; It only shows "1" when price crosses above when it immediately does not each day that it is true.</div><div><br></div><div>Appreciate any help.</div><div><br></div><div>Thanks</div><div>Dean</div><div><br></div><div><br></div><div><img src="uploads/671/WBT.gif" height="888" width="1583" border="0" /><br></div>]]>
   </description>
   <pubDate>Thu, 26 Nov 2020 15:48:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1040&amp;PID=3631#3631</guid>
  </item> 
  <item>
   <title>BullScript : Welles Wilder Volatility Stop</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1021&amp;PID=3630#3630</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=671" rel="nofollow">meldeans</a><br /><strong>Subject:</strong> Welles Wilder Volatility Stop<br /><strong>Posted:</strong> 26&nbsp;Nov&nbsp;2020 at 3:24pm<br /><br />Hi Maximo,&nbsp; I know this post is old now but i am new to it.&nbsp; I understand this stop is 3 x ATR but i don't know what ATR period length is.&nbsp; Is it 7 periods or some other number???&nbsp; I don't understand the code.<div><br></div><div>Thanks</div><div>Dean</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 26 Nov 2020 15:24:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1021&amp;PID=3630#3630</guid>
  </item> 
  <item>
   <title>BullScript : 52 week High and 10% retracement level indicator</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1019&amp;PID=3619#3619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=196" rel="nofollow">cudderbean</a><br /><strong>Subject:</strong> 52 week High and 10% retracement level indicator<br /><strong>Posted:</strong> 09&nbsp;Jul&nbsp;2020 at 10:56pm<br /><br /><div>I am away for a week tomorrow (busy at the moment) and I'm afraid also I'm not that good a coder to be able to help you. But I will have a look when I return.</div><div><br></div><div>I can see the merit of linking your varying stop loss to Index sentiment. And of course anything automatic is much preferable to tedious manual insertion.</div><div><br></div><div>Maybe someone more skilled could help. Good luck.</div>]]>
   </description>
   <pubDate>Thu, 09 Jul 2020 22:56:09 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1019&amp;PID=3619#3619</guid>
  </item> 
  <item>
   <title>BullScript : 52 week High and 10% retracement level indicator</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1019&amp;PID=3618#3618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=5459" rel="nofollow">Z2195067</a><br /><strong>Subject:</strong> 52 week High and 10% retracement level indicator<br /><strong>Posted:</strong> 09&nbsp;Jul&nbsp;2020 at 3:14pm<br /><br /><div>Hi cudderbean,</div><div><br></div><div>Thanks for your reply. From what you suggest, there was still the need to develop an EITHER/OR logic with the creation of the "retrac" variable.</div><div><br></div><div>Having said that, after this post, it got my brain juices going and I have made some considerable progress in formulating a stop-loss that varies based on the index filter sentiment. It's not complete and I'd like to ask someone a small favour who could make the last part of the code below work in a way that enables a user to drag the date of the trend on the chart left and right and the stop loss indicator updates dynamically , cause at the moment it is static at 52 bars.</div><div><br></div><div>Any further assistance would be greatly&nbsp; appreciated.</div><div>Please note I have some of my own notes in { } that can be ignored for these purposes.</div><div><br></div><div>An example of CDA is attached below. Try it out and let me know if you can see anything I can do to streamline it.<div><br></div><div>***</div><div><br></div><div>&#091;Target=Price; category=Stop Loss&#093;;<br><br>{Define the date of the trend}<br>TDate:=InputDate("Date of trend", date(2020,01,01));<br><br>{Define the stop-loss retracement percentages}<br>Value1:=input("Retracement Bullish %",0.6,0);<br>Value2:=input("Retracement Bearish %",0.9,0);<br><br>{Defines the variables for exponential moving average and index filter}<br>expr := Expression("Expression",Close);<br>method := inputma("Method",Exponential);<br>n := input("Time periods",10,1);<br>symb := inputsymbol("Compare to", "XAO");<br><br>P:=LoadSymbol(symb,expr);<br><br>{Evaluate Bullish sentiment}<br>&#091;color=Lime Green; name=Bullish&#093;<br>SignalAbove:=ref(P,1)&gt;ref(MA(P,n,method),1);<br>{SignalAbove;}<br><br>{Evaluate Bearish sentiment}{possibly redundant section?}<br>&#091;color=Red; name=Bearish&#093;<br>SignalBelow:=ref(P,1)&lt;ref(MA(P,n,method),1);<br>{SignalBelow;}<br><br>HoldingDays:=BarsSince(OnOrSkipped(TDate));<br><br>{Determines the highest prominent high over the last 52 weeks}</div><div>{NOTE:&gt;&gt;&gt;&gt;&gt; I want to link the number of bars to the HoldingDays variable, not 52 weeks}<br>&#091;color=Blue; linestyle=Dotted ; name=Highest Prominent High&#093;<br>Stop:=HighestSince(1, (lastvalue(barnumber) - barnumber = 52) ,H); <br></div><div>{could this be replaced with HoldingDays variable?}<br>Stop;<br><br>&#091;color=Red; linestyle=Horz step; name=Retracement % Stop&#093;<br>ValueB := If(Stop&gt;PREV(undefined) AND ref(P,1)&gt;ref(MA(P,n,method),1),Stop*Value1,Stop*Value2);</div><div><br></div><div>{If(Stop&lt;=PREV(undefined),PREV(undefined),Stop*Holdingdays));NOTE:&gt;&gt;&gt;&gt;&gt; I haven't figured out what to do with the rest of this nested IF statement as it was inherited from a previous Bullscript file, possibly redundant now!}<br><br>If(ValueB = 0, undefined, ValueB);</div><br></div><div><br></div><div><img src="uploads/5459/CDA-Stop-loss_example.JPG" height="909" width="1587" border="0" /> <br></div>]]>
   </description>
   <pubDate>Thu, 09 Jul 2020 15:14:09 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1019&amp;PID=3618#3618</guid>
  </item> 
  <item>
   <title>BullScript : 52 week High and 10% retracement level indicator</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1019&amp;PID=3617#3617</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=196" rel="nofollow">cudderbean</a><br /><strong>Subject:</strong> 52 week High and 10% retracement level indicator<br /><strong>Posted:</strong> 08&nbsp;Jul&nbsp;2020 at 6:04pm<br /><br /><div>Perhaps I have misunderstood your question. Apologies if I have.</div><div><br></div><div>Could you simply Input the retracement level manually, depending on your assessment of the bearish/bullish nature of the index.</div><div>So, taking Maximo's coding, I have added a manual input, which you can adjust in the Parameters dialog box as you load the indicator...</div><div><br></div><div>{ Yearly High and 10% retracement level }</div><div>&#091;Description="Stocks making new highs make great trading prospects.</div><div>The 10% retracement level is often a time to consider - Max"&#093;</div><div>&#091;target=price&#093;</div><div>Nb:=Input("Number of Weeks",50,1);</div><div>retrac:=Input("Retracement",.9,0);</div><div>timeframe:= if(DayOfWeek(Now)=ref(DayOfWeek(Now),-1), Nb, Nb*5);</div><div>ColB:=HighestSince(1,(lastvalue(barnumber) - barnumber = timeframe),H);</div><div>ColB;</div><div>&#091;color=red&#093;</div><div>retrac*(ColB)</div><div><br></div><div>There is possibly a way to make it run automatically linked to say the XJO that perhaps someone more skilled can code. I can see it may be handy to run it automatically for backtesting purposes.</div>]]>
   </description>
   <pubDate>Wed, 08 Jul 2020 18:04:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1019&amp;PID=3617#3617</guid>
  </item> 
 </channel>
</rss>