<?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 : BarsSince entry</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : TradeSim discussion : BarsSince entry</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 08:47:00 +0000</pubDate>
  <lastBuildDate>Mon, 06 Jun 2005 13:34:23 +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=228</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>BarsSince entry :   This is GREAT. Going bythe...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=838#838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=54" rel="nofollow">pipsqueek</a><br /><strong>Subject:</strong> 228<br /><strong>Posted:</strong> 06&nbsp;Jun&nbsp;2005 at 1:34pm<br /><br /><P>This is GREAT.</P><P>Going by&nbsp;the fiddling I've done so far, the BarsSince(EntryTrigger) and EntryPrice is going to do what I want.</P><P>Many thanks, Peter</P>]]>
   </description>
   <pubDate>Mon, 06 Jun 2005 13:34:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=838#838</guid>
  </item> 
  <item>
   <title>BarsSince entry :   Thanks for that Peter,  I&amp;#039;ll...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=837#837</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=54" rel="nofollow">pipsqueek</a><br /><strong>Subject:</strong> 228<br /><strong>Posted:</strong> 06&nbsp;Jun&nbsp;2005 at 10:39am<br /><br /><P>Thanks for that Peter, </P><P>I'll have a fiddle with EntryTrigger and EntryPrice and see how I go.</P><P>Your comments on their use are duly noted and&nbsp;much appreciated.</P>]]>
   </description>
   <pubDate>Mon, 06 Jun 2005 10:39:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=837#837</guid>
  </item> 
  <item>
   <title>BarsSince entry : This can be (sort of) achieved...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=834#834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=3" rel="nofollow">Peter</a><br /><strong>Subject:</strong> 228<br /><strong>Posted:</strong> 06&nbsp;Jun&nbsp;2005 at 10:26am<br /><br />This can be (sort of) achieved with EntryTrigger. You need ver 2.5.3 tohave access to EntryTrigger. Unfortunately the BullScript help doesn'tinclude EntryTrigger. (my oops.. forgot to copy the file in at the timeit was released) <br><br>First, a side note on the example you provided. "In" isn't part oftradesim or metastock. The reason "In" works in line two of yourexample, is because it's defned in line 1.<br><br>EntryTrigger returns true on days when your entry criteria evaluate totrue. So you can use BarsSince(EntryTrigger). There is also anEntryPrice function, which returns your entry price on the last daythat EntryTrigger trigger was true - and in your case, you may findthis easier.<br><br>Note: EntryPrice and EntryTrigger can only be used when calculatingExitPrice and ExitTrigger. They're actually pseudo functions that getconverted into other BullScript code. To understand them better, tryusing them, then use the "Generate Script" button on the advanced tabto see how they've been converted.<br><br>There is one important cavet.<br><br>EntryTrigger is true on days where your entry criteria are matched. Butthat isn't necessarily the same as the days you have entered. Eg, ifyour entry criteria are met, but you are already in a trade (and do nothave pyramiding turned on) then EntryTrigger will return true eventhough a new position is not being opened. <br><br>Unfortunately this is something which we probably can't change becauseof the way TradeSim works, which in turn probably can't change becauseof the way Metastock works. But on the other hand, it would be alimitation of your Metastock example above as well. <span style="font-style: italic;">C'est la vie</span>.<br><br>Remember: ver 2.5.3 only.<br><br>]]>
   </description>
   <pubDate>Mon, 06 Jun 2005 10:26:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=834#834</guid>
  </item> 
  <item>
   <title>BarsSince entry :   Hi Peter How do I get Tradesim...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=831#831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=54" rel="nofollow">pipsqueek</a><br /><strong>Subject:</strong> 228<br /><strong>Posted:</strong> 04&nbsp;Jun&nbsp;2005 at 1:27pm<br /><br /><P>Hi Peter</P><P>How do I get Tradesim to calculate the number of bars since a trade entry was generated?</P><P>I've had a prowl around the compuvsion&nbsp;TS forum&nbsp;and notice that Jose Silva&nbsp;used this code for Metastock</P><P>In:=Fml("001 system buy signals"); </P><P>BarsSince(In)</P><P>Bullchart's TS won't recognise the formula for "In", but probably has something&nbsp;similar that will work, I hope.</P><P>I want to be able to calculate the %price change&nbsp;over the first 5 bars since entry, and&nbsp;exit if this % fails to meet my&nbsp;expectations. This is NOT the same&nbsp;thing as the profit stop on the stops tab, which will certainly get me out if the&nbsp;%profit fails to materialise&nbsp;within 5 bars, but also gets me out as soon as the profit%&nbsp;is reached.&nbsp;Not at all what I want!</P><P>I think I could do this if I could count how many bars since a tradesim entry.</P><P>Any ideas, Peter?</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 04 Jun 2005 13:27:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=228&amp;PID=831#831</guid>
  </item> 
 </channel>
</rss>