<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forum.equis.com/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MetaStock FX</title><link>http://forum.equis.com/forums/3036/ShowForum.aspx</link><description>General discussions pertaining to MetaStock FX.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Debug Build: 60217.2664)</generator><item><title>Re: Trailing stop help</title><link>http://forum.equis.com/forums/thread/29328.aspx</link><pubDate>Fri, 03 Apr 2009 01:58:58 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29328</guid><dc:creator>manatrader</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29328.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29328</wfw:commentRss><description>That is great thanks much!&lt;br&gt;</description></item><item><title>Re: Trailing stop help</title><link>http://forum.equis.com/forums/thread/29320.aspx</link><pubDate>Wed, 01 Apr 2009 02:55:58 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29320</guid><dc:creator>wabbit</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29320.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29320</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/dodgerblue/images/icon-quote.gif"&gt; &lt;strong&gt;manatrader:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I can't figure out how to make reference to the entry price.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;entryPrice:=ValueWhen(1,Simulation.CurrentPositionAge=0,OPEN);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;wabbit &lt;img src="/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;&lt;br&gt;</description></item><item><title>Re: Trailing stop help</title><link>http://forum.equis.com/forums/thread/29313.aspx</link><pubDate>Mon, 30 Mar 2009 22:12:39 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29313</guid><dc:creator>manatrader</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29313.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29313</wfw:commentRss><description>What are some good stop trail codes wabbit? I can't figure out how to make reference to the entry price. I want to try to place the stop info in the buy sell rules section of the strategy tester, instead of using the stops tab. Thanks&lt;br&gt;</description></item><item><title>Re: Trailing stop help</title><link>http://forum.equis.com/forums/thread/29133.aspx</link><pubDate>Mon, 09 Mar 2009 02:33:52 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29133</guid><dc:creator>wabbit</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29133.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29133</wfw:commentRss><description>You can set fixed-point stop values (and other stop methods) in the EST Stops tab, otherwise you have to code the scenarios.&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;wabbit &lt;img src="/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Trailing stop help</title><link>http://forum.equis.com/forums/thread/29132.aspx</link><pubDate>Sun, 08 Mar 2009 14:33:40 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29132</guid><dc:creator>Kraniv</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29132.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29132</wfw:commentRss><description>Thats great thanks, but I meant in Enhanced System Tester in MS. Can I use this code in there are it seperately defines, BUY,&amp;nbsp; SELL , SELL SHORT, BUY TO COVER etc.. &lt;br&gt;</description></item><item><title>Re: Trailing stop help</title><link>http://forum.equis.com/forums/thread/29131.aspx</link><pubDate>Sun, 08 Mar 2009 09:13:28 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29131</guid><dc:creator>wabbit</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29131.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29131</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/dodgerblue/images/icon-quote.gif"&gt; &lt;strong&gt;Kraniv:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;In indicator builder, how would I program a basic trailing stop. In pseudo type language&lt;br&gt;( after buy signal put a stop 20 ticks below low of last 3 bars, then after 1 period put stop 20 ticks below the low) &lt;br&gt;&lt;br&gt;so in a uptrend, the stop would be 20 ticks below the low of the previous bar. hope this makes sense, any help would be appreciated&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;First you need some code to identify when the buy signal occurred.&amp;nbsp; Later you might think you need some latching, but now let us just assume you don't.&lt;br&gt;&lt;br&gt;buy:={some logic goes here};&lt;br&gt;&lt;br&gt;Next, you need to find the lowest low on the bar when the entry was true, and then subtract 20 points:&lt;br&gt;&lt;br&gt;initialStop:=ValueWhen(1,buy,L)-20;&lt;br&gt;&lt;br&gt;You have defined the trailing component as the previous bar low minus 20:&lt;br&gt;&lt;br&gt;trailingStop:=Ref(L,-1)-20;&lt;br&gt;&lt;br&gt;This is where things start to get interesting because you haven't mentioned that the stop loss can only move in the favour of the trade, so you might consider something like this:&lt;br&gt;&lt;br&gt;stop:=if(barssince(buy)&amp;lt;=1,initialStop,highestsince(1,buy,trailingStop));&lt;br&gt;&lt;br&gt;&lt;br&gt;Anyway, I hope you have enough ideas to formulate your own codes?&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;wabbit &lt;img src="/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Trailing stop help</title><link>http://forum.equis.com/forums/thread/29130.aspx</link><pubDate>Sun, 08 Mar 2009 08:30:59 GMT</pubDate><guid isPermaLink="false">2fa994ca-da92-4cc0-8578-1c713492f1d7:29130</guid><dc:creator>Kraniv</dc:creator><slash:comments>0</slash:comments><comments>http://forum.equis.com/forums/thread/29130.aspx</comments><wfw:commentRss>http://forum.equis.com/forums/commentrss.aspx?SectionID=3036&amp;PostID=29130</wfw:commentRss><description>In indicator builder, how would I program a basic trailing stop. In pseudo type language&lt;br&gt;( after buy signal put a stop 20 ticks below low of last 3 bars, then after 1 period put stop 20 ticks below the low) &lt;br&gt;&lt;br&gt;so in a uptrend, the stop would be 20 ticks below the low of the previous bar. hope this makes sense, any help would be appreciated&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item></channel></rss>