<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Trade, Design, Automate.</title>
	<atom:link href="http://blogs.fastbrokers.com/autotrade/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.fastbrokers.com/autotrade</link>
	<description>Custom scripting, Indicators &#38; automated strategies for Pathfinder.</description>
	<lastBuildDate>Mon, 18 Apr 2011 19:56:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>KeltnerChannel Implementation</title>
		<link>http://blogs.fastbrokers.com/autotrade/2010/07/20/keltnerchannel-implementation/</link>
		<comments>http://blogs.fastbrokers.com/autotrade/2010/07/20/keltnerchannel-implementation/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 15:13:49 +0000</pubDate>
		<dc:creator>Salvatore Rossitto</dc:creator>
				<category><![CDATA[Automated Trading]]></category>
		<category><![CDATA[Indicator]]></category>
		<category><![CDATA[KeltnerChannel]]></category>
		<category><![CDATA[Pathfinder]]></category>

		<guid isPermaLink="false">http://blogs.fastbrokers.com/autotrade/?p=49</guid>
		<description><![CDATA[A guy has asked me how to implement Keltner Channels on Pathfinder.
PathScript Language already have the needed methods to calculate this indicator
the methods are:
KeltnerChannelTop(period, ma_type, multiplier)  (abbreviation  KCT)
KeltnerChannelMedian(period, ma_type, multiplier)  (abbreviation  KCM)
KeltnerChannelBottom(period, ma_type, multiplier)  (abbreviation  KCB)
A ready to use indicator is attached for download. KeltnerChannel
Important    Disclaimer: The  code or software herein [...]]]></description>
			<content:encoded><![CDATA[<p>A guy has asked me how to implement Keltner Channels on Pathfinder.</p>
<p>PathScript Language already have the needed methods to calculate this indicator</p>
<p>the methods are:</p>
<p>KeltnerChannelTop(period, ma_type, multiplier)  (abbreviation  KCT)</p>
<p>KeltnerChannelMedian(period, ma_type, multiplier)  (abbreviation  KCM)</p>
<p>KeltnerChannelBottom(period, ma_type, multiplier)  (abbreviation  KCB)</p>
<p>A ready to use indicator is attached for download. <a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/KeltnerChannel1.pft">KeltnerChannel</a></p>
<p><span style="font-family: Arial"><span style="color: royalblue">Important    Disclaimer: The  code or software herein contained or attached,  including   but not  limited to Custom indicators, PathScript, Expert  Advisors,  EAs,  and  any other Scripts (“Software”), are provided &#8220;As  Is&#8221; and are   intended  to be used for informational and educational  purposes only. The    Software is provided by FastBrokers and/or its  employees or affiliates    (“FastBrokers”) as a courtesy service to its  customers and it is    intended for informational and educational  purposes only and under no    circumstances should be regarded as  investment advice or as a    solicitation or an offer to sell/buy any  financial product. FastBrokers    assumes no responsibility or liability  from gains or losses incurred  by   the performance of the Software  provided. No representation is  being   made that any account will or is  likely to achieve any  particular   profits or losses. In fact, there are  frequently sharp  differences   between hypothetical performance results  and the actual  results   subsequently achieved by any particular  Software.  Hypothetical trading   does not involve financial risk, and no   hypothetical trading record can   completely account for the impact of   financial risk in actual trading.   The Software cannot be guaranteed to   be error-free, thus may cause   unforeseeable results. By using the   Software provided by FastBrokers,   End User assumes full responsibility   for verifying the validity of the   Software, and End User accepts  full  responsibilities for its actions,   trades, profit or loss, and  End  User agrees to hold FastBrokers harmless   in any and all ways. If  you  do not agree with this statement you must   remove the Software  from  your computer.</span></span><span style="font-family: Arial"><span style="color: royalblue"><br /> </span></span> <span style="font-family: Arial"><span style="color: royalblue">All   trademarks are  the property of the respective owners of  each piece of   Software, where  stated.</span></span></p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fastbrokers.com/autotrade/2010/07/20/keltnerchannel-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VWAP Implementation</title>
		<link>http://blogs.fastbrokers.com/autotrade/2010/07/20/vwap-implementation/</link>
		<comments>http://blogs.fastbrokers.com/autotrade/2010/07/20/vwap-implementation/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 15:09:07 +0000</pubDate>
		<dc:creator>Salvatore Rossitto</dc:creator>
				<category><![CDATA[Automated Trading]]></category>
		<category><![CDATA[Custom Indicator]]></category>
		<category><![CDATA[Pathfinder]]></category>
		<category><![CDATA[VWAP]]></category>

		<guid isPermaLink="false">http://blogs.fastbrokers.com/autotrade/?p=39</guid>
		<description><![CDATA[
Implement a Volume Wieghted Average Price is not a difficult  thing on pathfinder,
 

take a look to the formula:

as you know any variable on pathfinder become a vector so it keep trace  of previous values, this is the key that make simple this kind of implementations with  pathscript, the above formula can be [...]]]></description>
			<content:encoded><![CDATA[<div id="post_message_95">
<blockquote>Implement a Volume Wieghted Average Price is not a difficult  thing on pathfinder,
<p> 
</p>
<p>take a look to the formula:</p>
<p><a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/46bad117567e483aade6089e9cdad0ca.png"><img src="http://blogs.fastbrokers.com/autotrade/files/2010/07/46bad117567e483aade6089e9cdad0ca.png" alt="" title="46bad117567e483aade6089e9cdad0ca" width="178" height="57" class="size-full wp-image-56" /></a></p>
<p>as you know any variable on pathfinder become a vector so it keep trace  of previous values,<br /> this is the key that make simple this kind of implementations with  pathscript, the above formula can be written as follow:</p>
</blockquote>
<blockquote><p>SET SUM1 = REF(SUM1 , 1) + ( OPEN * VOLUME )</p>
<p>SET SUM2 = REF(SUM2 , 1) + VOLUME</p>
<p>SET VWAP = SUM1 / SUM2</p>
<p>A ready to use indicator is attached for download.   <a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/VWAP1.pft">VWAP</a></p>
</blockquote>
<blockquote><p><span style="font-family: Arial"><span style="color: royalblue">Important    Disclaimer: The  code or software herein contained or attached,  including   but not  limited to Custom indicators, PathScript, Expert  Advisors,  EAs,  and  any other Scripts (“Software”), are provided &#8220;As  Is&#8221; and are   intended  to be used for informational and educational  purposes only. The    Software is provided by FastBrokers and/or its  employees or affiliates    (“FastBrokers”) as a courtesy service to its  customers and it is    intended for informational and educational  purposes only and under no    circumstances should be regarded as  investment advice or as a    solicitation or an offer to sell/buy any  financial product. FastBrokers    assumes no responsibility or liability  from gains or losses incurred  by   the performance of the Software  provided. No representation is  being   made that any account will or is  likely to achieve any  particular   profits or losses. In fact, there are  frequently sharp  differences   between hypothetical performance results  and the actual  results   subsequently achieved by any particular  Software.  Hypothetical trading   does not involve financial risk, and no   hypothetical trading record can   completely account for the impact of   financial risk in actual trading.   The Software cannot be guaranteed to   be error-free, thus may cause   unforeseeable results. By using the   Software provided by FastBrokers,   End User assumes full responsibility   for verifying the validity of the   Software, and End User accepts  full  responsibilities for its actions,   trades, profit or loss, and  End  User agrees to hold FastBrokers harmless   in any and all ways. If  you  do not agree with this statement you must   remove the Software  from  your computer.</span></span><span style="font-family: Arial"><span style="color: royalblue"><br /> </span></span> <span style="font-family: Arial"><span style="color: royalblue">All   trademarks are  the property of the respective owners of  each piece of   Software, where  stated.</span></span></p>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fastbrokers.com/autotrade/2010/07/20/vwap-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A World of Candlesticks</title>
		<link>http://blogs.fastbrokers.com/autotrade/2010/07/05/a-world-of-candlesticks/</link>
		<comments>http://blogs.fastbrokers.com/autotrade/2010/07/05/a-world-of-candlesticks/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 20:20:39 +0000</pubDate>
		<dc:creator>Salvatore Rossitto</dc:creator>
				<category><![CDATA[Automated Trading]]></category>
		<category><![CDATA[Candlestick]]></category>
		<category><![CDATA[evening star]]></category>
		<category><![CDATA[morning star]]></category>
		<category><![CDATA[recognition]]></category>

		<guid isPermaLink="false">http://blogs.fastbrokers.com/autotrade/?p=27</guid>
		<description><![CDATA[One of the most usefull things on  PathFinder Trader is the candlestick  paterns recognition system on wich we can base an indicator or a trading  strategy.
The candlestick recognition function is CANDLESTICKPATTERN() also  written as CSP(), it returns a value corrensponding to the found pattern or 0 (zero) if no  patterns [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most usefull things on  PathFinder Trader is the candlestick  paterns recognition system on wich we can base an indicator or a trading  strategy.</p>
<p>The candlestick recognition function is CANDLESTICKPATTERN() also  written as CSP(),<br /> it returns a value corrensponding to the found pattern or 0 (zero) if no  patterns were found.</p>
<p>look at this frame of code that recognize a morning star formation:</p>
<p><span style="color: gray">Value_Token</span></p>
<p><span style="color: blue">set</span> Patterns = <span style="color: blue">CSP</span>()</p>
<p><span style="color: blue">set</span> STP = <span style="color: violet">Morning_Star</span></p>
<p><span style="color: blue">set</span> PTF1 = <span style="color: blue">REF</span>(Patterns,0)  = <span style="color: violet">Morning_Star</span><br /> <span style="color: blue">set</span> PTF2 = <span style="color: blue">REF</span>(Patterns,1)  = <span style="color: violet">Morning_Star</span><br /> <span style="color: blue">set</span> PTF3 = <span style="color: blue">REF</span>(Patterns,2)  = <span style="color: violet">Morning_Star</span></p>
<p><span style="color: blue">set</span> BuySignal = PTF1 + PTF2 + PTF3 <br /> <span style="color: gray"><br /> Value_Token_End</span></p>
<p>You can see how the candle paint is triggered by the same signal  in three different places,<br /> ( the signal bar and two bars forward) this is for colorize not only the  bar where the signal start but the complete 3 bars set.</p>
<p>Here is a reference to all candlestick patterns recognized by Pathfinder  Trader: </p>
<p><a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/candlesticks-references.jpg"><img src="http://blogs.fastbrokers.com/autotrade/files/2010/07/candlesticks-references.jpg" alt="" title="candlesticks references" width="400" height="283" class="alignnone size-full wp-image-63" /></a></p>
<p>An Evening start patter found on a chart&#8230;</p>
<p><a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/EveningStar.jpg"><img src="http://blogs.fastbrokers.com/autotrade/files/2010/07/EveningStar.jpg" alt="" title="EveningStar" width="400" height="250" class="alignnone size-full wp-image-64" /></a></p>
<p>In the attached example i will illustrate how to use this function to    create a paintbar indicator that fill the three bars composing the    pattern with a custom color (i will use an orange color for evening star  bearish   pattern and a light green for the bullish morning star).</p>
<p>Download Indicator: <a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/STAR-Pattern.pft">STAR Pattern</a></p>
<p><span style="font-family: Arial"><span style="color: royalblue"><span style="font-size: xx-small">Important   Disclaimer: The code or software herein contained or attached, including   but not limited to Custom indicators, PathScript, Expert Advisors,  EAs,  and any other Scripts (“Software”), are provided &#8220;As Is&#8221; and are   intended to be used for informational and educational purposes only. The   Software is provided by FastBrokers and/or its employees or affiliates   (“FastBrokers”) as a courtesy service to its customers and it is   intended for informational and educational purposes only and under no   circumstances should be regarded as investment advice or as a   solicitation or an offer to sell/buy any financial product. FastBrokers   assumes no responsibility or liability from gains or losses incurred by   the performance of the Software provided. No representation is being   made that any account will or is likely to achieve any particular   profits or losses. In fact, there are frequently sharp differences   between hypothetical performance results and the actual results   subsequently achieved by any particular Software. Hypothetical trading   does not involve financial risk, and no hypothetical trading record can   completely account for the impact of financial risk in actual trading.   The Software cannot be guaranteed to be error-free, thus may cause   unforeseeable results. By using the Software provided by FastBrokers,   End User assumes full responsibility for verifying the validity of the   Software, and End User accepts full responsibilities for its actions,   trades, profit or loss, and End User agrees to hold FastBrokers harmless   in any and all ways. If you do not agree with this statement you must   remove the Software from your computer.</span></span></span><span style="font-family: Arial"><span style="color: royalblue"><br /> </span></span> <span style="font-family: Arial"><span style="color: royalblue"><span style="font-size: xx-small">All trademarks are  the property of the respective owners of  each piece of Software, where  stated.</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fastbrokers.com/autotrade/2010/07/05/a-world-of-candlesticks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to exit trade after X Pips from entry</title>
		<link>http://blogs.fastbrokers.com/autotrade/2010/07/05/how-to-exit-trade-after-x-pips-from-entry/</link>
		<comments>http://blogs.fastbrokers.com/autotrade/2010/07/05/how-to-exit-trade-after-x-pips-from-entry/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 17:41:39 +0000</pubDate>
		<dc:creator>Salvatore Rossitto</dc:creator>
				<category><![CDATA[Automated Trading]]></category>
		<category><![CDATA[AUTOTRADE]]></category>
		<category><![CDATA[EXIT CONDITION]]></category>
		<category><![CDATA[PIPS FROM ENTRY]]></category>
		<category><![CDATA[SCRIPT]]></category>

		<guid isPermaLink="false">http://blogs.fastbrokers.com/autotrade/?p=13</guid>
		<description><![CDATA[This script show how to exit a trade after x pips from entry.
The entry conditions, in this example, are based on sma cross.
 
The Script  code for download: PipsCount  Exit
Important   Disclaimer: The code or software herein contained or attached, including   but not limited to Custom indicators, PathScript, Expert Advisors,  EAs, [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal">This script show how to exit a trade after x pips from entry.</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal">The entry conditions, in this example, are based on sma cross.</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"> </p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal">The Script  code for download: <a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/PipsCount-Exit.pft">PipsCount  Exit</a></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span style="font-family: Arial"><span style="color: royalblue"><span style="font-size: xx-small">Important   Disclaimer: The code or software herein contained or attached, including   but not limited to Custom indicators, PathScript, Expert Advisors,  EAs,  and any other Scripts (“Software”), are provided &#8220;As Is&#8221; and are   intended to be used for informational and educational purposes only. The   Software is provided by FastBrokers and/or its employees or affiliates   (“FastBrokers”) as a courtesy service to its customers and it is   intended for informational and educational purposes only and under no   circumstances should be regarded as investment advice or as a   solicitation or an offer to sell/buy any financial product. FastBrokers   assumes no responsibility or liability from gains or losses incurred by   the performance of the Software provided. No representation is being   made that any account will or is likely to achieve any particular   profits or losses. In fact, there are frequently sharp differences   between hypothetical performance results and the actual results   subsequently achieved by any particular Software. Hypothetical trading   does not involve financial risk, and no hypothetical trading record can   completely account for the impact of financial risk in actual trading.   The Software cannot be guaranteed to be error-free, thus may cause   unforeseeable results. By using the Software provided by FastBrokers,   End User assumes full responsibility for verifying the validity of the   Software, and End User accepts full responsibilities for its actions,   trades, profit or loss, and End User agrees to hold FastBrokers harmless   in any and all ways. If you do not agree with this statement you must   remove the Software from your computer.</span></span></span><span style="font-family: Arial"><span style="color: royalblue"><br /> </span></span> <span style="font-family: Arial"><span style="color: royalblue"><span style="font-size: xx-small">All trademarks are  the property of the respective owners of  each piece of Software, where  stated.</span></span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"> </p>
<p><span lang="EN-US"><span> </span></span><span lang="EN-US"> </span></p>
<div id="_mcePaste" style="width: 1px;height: 1px;overflow: hidden">
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"><span> </span>.com<span> </span>#</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#<span> </span>support: support@fastbrokers.com<span> </span>#</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;#</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CopyRight_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">34</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Sell_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">34</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Sell_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_To_Cover_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">PIPVAL</span><span lang="EN-US"> = </span><span lang="EN-US">0.0001</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">TARGETPIPS</span><span lang="EN-US"> = </span><span lang="EN-US">1</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">BUY_NOW</span><span lang="EN-US"> = </span><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">34</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US"> = </span><span lang="EN-US">LASTIF</span><span lang="EN-US">(</span><span lang="EN-US">BUY_NOW</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">BUY_PRICE</span><span lang="EN-US"> = </span><span lang="EN-US">REF</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,</span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CLOSE</span><span lang="EN-US"> &#8211; </span><span lang="EN-US">BUY_PRICE</span><span lang="EN-US"> &gt; (</span><span lang="EN-US">PIPVAL</span><span lang="EN-US"> </span><span lang="EN-US">*</span><span lang="EN-US"> </span><span lang="EN-US">TARGETPIPS</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_To_Cover_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Sell_To_Cover_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">PIPVAL</span><span lang="EN-US"> = </span><span lang="EN-US">0.0001</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">TARGETPIPS</span><span lang="EN-US"> = </span><span lang="EN-US">1</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">SELL_NOW</span><span lang="EN-US"> = </span><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">34</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US"> = </span><span lang="EN-US">LASTIF</span><span lang="EN-US">(</span><span lang="EN-US">SELL_NOW</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">SELL_PRICE</span><span lang="EN-US"> = </span><span lang="EN-US">REF</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,</span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SELL_PRICE</span><span lang="EN-US"> &#8211; </span><span lang="EN-US">CLOSE</span><span lang="EN-US"> &gt; (</span><span lang="EN-US">PIPVAL</span><span lang="EN-US"> </span><span lang="EN-US">*</span><span lang="EN-US"> </span><span lang="EN-US">TARGETPIPS</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span>Sell_To_Cover_Token_End</span><strong> </strong></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fastbrokers.com/autotrade/2010/07/05/how-to-exit-trade-after-x-pips-from-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to exit trade after X Bars from entry</title>
		<link>http://blogs.fastbrokers.com/autotrade/2010/07/05/how-to-exit-trade-after-x-bars-from-entry/</link>
		<comments>http://blogs.fastbrokers.com/autotrade/2010/07/05/how-to-exit-trade-after-x-bars-from-entry/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 17:40:46 +0000</pubDate>
		<dc:creator>Salvatore Rossitto</dc:creator>
				<category><![CDATA[Automated Trading]]></category>
		<category><![CDATA[AUTOTRADE]]></category>
		<category><![CDATA[BARS FROM ENTRY]]></category>
		<category><![CDATA[EXIT CONDITION]]></category>
		<category><![CDATA[SCRIPT]]></category>

		<guid isPermaLink="false">http://blogs.fastbrokers.com/autotrade/?p=11</guid>
		<description><![CDATA[A PathFinder Trader user has asked how to close a position after X  bars  from entry.
For example, let&#8217;s program a buy condition based on a simple sma cross  like this: CROSSOVER(SMA(CLOSE,   5),   SMA(CLOSE,   14))
and a specular sell condition like this: CROSSOVER(SMA(CLOSE,   14),   [...]]]></description>
			<content:encoded><![CDATA[<p>A PathFinder Trader user has asked how to close a position after X  bars  from entry.</p>
<p>For example, let&#8217;s program a buy condition based on a simple sma cross  like this:<br /> <span style="color: blue">CROSSOVER</span>(<span style="color: blue">SMA</span>(<span style="color: red">CLOSE</span>,   5),   <span style="color: blue">SMA</span>(<span style="color: red">CLOSE</span>,   14))</p>
<p>and a specular sell condition like this:<br /> <span style="color: blue">CROSSOVER</span>(<span style="color: blue">SMA</span>(<span style="color: red">CLOSE</span>,   14),   <span style="color: blue">SMA</span>(<span style="color: red">CLOSE</span>,   5))</p>
<p>To program a buy exit that is triggered after X bars from the buy entry  you can  use  somithing like this:<br /> <span style="color: green">#**** SET  NEEDED VARS ****#</span><br /> <span style="color: blue">SET <span style="color: black">BUY_NOW</span> = CROSSOVER</span>(<span style="color: blue">SMA(<span style="color: red">CLOSE</span>, </span> 5)<span style="color: blue">,   SMA</span>(<span style="color: blue"><span style="color: red">CLOSE</span>, </span>14))<br /> <span style="color: blue">SET <span style="color: black">SELL_NOW</span> = CROSSOVER</span>(<span style="color: blue">SMA</span>(<span style="color: blue"><span style="color: red">CLOSE</span>, </span>14)<span style="color: blue">,   SMA</span>(<span style="color: blue"><span style="color: red">CLOSE</span>, </span> 5))<br /> <span style="color: blue"><br /> SET <span style="color: black">SELL_DISTANCE</span> = LASTIF(SELL_NOW)<br /> SET <span style="color: black">BUY_DISTANCE</span> = LASTIF(BUY_NOW)</span></p>
<p>SET <span style="color: black">SELL_PRICE</span> = REF(<span style="color: blue"><span style="color: red">CLOSE</span></span><span style="color: blue">, </span><span style="color: blue"><span style="color: black">SELL_DISTANCE</span></span>)<br /> <span style="color: blue">SET<span style="color: black"> BUY_PRICE</span> = REF</span>(<span style="color: blue"><span style="color: red">CLOSE</span></span><span style="color: blue">, </span><span style="color: blue"><span style="color: black">BUY_DISTANCE</span></span>)</p>
<p><span style="color: green">#**** AND NOW  THE EXIT CONDITION (REPLACE X WITH  THE  NUMBER OF BARS TO WAIT)****#</span><br /> BUY_DISTANCE &lt;&gt; 0 AND BUY_DISTANCE &lt; SELL_DISTANCE AND  BUY_DISTANCE &gt; X</p>
<p>As you can see this is really simple! <br /> The <span style="color: blue">LASTIF</span> function is really  usefull to keep  trace of a value across the time.</p>
<p>Here is the entire script with buy and sell conditions for download: <a href="http://blogs.fastbrokers.com/autotrade/files/2010/07/BarCount.pft">BarCount Exit</a></p>
<p><span style="font-family: Arial"><span style="color: royalblue"><span style="font-size: xx-small">Important   Disclaimer: The code or software herein contained or attached, including   but not limited to Custom indicators, PathScript, Expert Advisors,  EAs,  and any other Scripts (“Software”), are provided &#8220;As Is&#8221; and are   intended to be used for informational and educational purposes only. The   Software is provided by FastBrokers and/or its employees or affiliates   (“FastBrokers”) as a courtesy service to its customers and it is   intended for informational and educational purposes only and under no   circumstances should be regarded as investment advice or as a   solicitation or an offer to sell/buy any financial product. FastBrokers   assumes no responsibility or liability from gains or losses incurred by   the performance of the Software provided. No representation is being   made that any account will or is likely to achieve any particular   profits or losses. In fact, there are frequently sharp differences   between hypothetical performance results and the actual results   subsequently achieved by any particular Software. Hypothetical trading   does not involve financial risk, and no hypothetical trading record can   completely account for the impact of financial risk in actual trading.   The Software cannot be guaranteed to be error-free, thus may cause   unforeseeable results. By using the Software provided by FastBrokers,   End User assumes full responsibility for verifying the validity of the   Software, and End User accepts full responsibilities for its actions,   trades, profit or loss, and End User agrees to hold FastBrokers harmless   in any and all ways. If you do not agree with this statement you must   remove the Software from your computer.</span></span></span><span style="font-family: Arial"><span style="color: royalblue"><br /> </span></span> <span style="font-family: Arial"><span style="color: royalblue"><span style="font-size: xx-small">All trademarks are  the property of the respective owners of  each piece of Software, where  stated.</span></span></span></p>
<div id="_mcePaste" style="width: 1px;height: 1px;overflow: hidden">
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"><span> </span>#</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#<span> </span>#</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#<span> </span>Copyright© Fast Trading Services, LLC<span> </span>#</span><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#<span> </span>created using PathScript™<span> </span>#</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#<span> </span>website: http://www.fastbrokers.com<span> </span>#</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#<span> </span>support: support@fastbrokers.com<span> </span>#</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;#</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CopyRight_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">5</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Sell_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">5</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Sell_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_To_Cover_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">SELL_NOW</span><span lang="EN-US"> = </span><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">5</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US"> = </span><span lang="EN-US">LASTIF</span><span lang="EN-US">(</span><span lang="EN-US">SELL_NOW</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">SELL_PRICE</span><span lang="EN-US"> = </span><span lang="EN-US">REF</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,</span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US"> &gt; </span><span lang="EN-US">4</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Buy_To_Cover_Token_End</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">Sell_To_Cover_Token</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">BUY_NOW</span><span lang="EN-US"> = </span><span lang="EN-US">CROSSOVER</span><span lang="EN-US">(</span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">5</span><span lang="EN-US">),<span> </span></span><span lang="EN-US">SMA</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,<span> </span></span><span lang="EN-US">14</span><span lang="EN-US">))</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US"> = </span><span lang="EN-US">LASTIF</span><span lang="EN-US">(</span><span lang="EN-US">BUY_NOW</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US">SET</span><span lang="EN-US"> </span><span lang="EN-US">SELL_PRICE</span><span lang="EN-US"> = </span><span lang="EN-US">REF</span><span lang="EN-US">(</span><span lang="EN-US">CLOSE</span><span lang="EN-US">,</span><span lang="EN-US">ELAPSED_BARS</span><span lang="EN-US">)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;line-height: normal"><span>ELAPSED_BARS</span><span> &gt; </span><span>4</span></p>
<p class="MsoNormal"><span>Sell_To_Cover_Token_End</span></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fastbrokers.com/autotrade/2010/07/05/how-to-exit-trade-after-x-bars-from-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to the Pathfinder Trader Autotrade blog</title>
		<link>http://blogs.fastbrokers.com/autotrade/2010/03/25/hello-world/</link>
		<comments>http://blogs.fastbrokers.com/autotrade/2010/03/25/hello-world/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 22:31:49 +0000</pubDate>
		<dc:creator>Salvatore Rossitto</dc:creator>
				<category><![CDATA[Automated Trading]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to the headquarters of automated trading on PathFinder Trader™
This blog, in uninion with the fastbrokers forums, aims to become a starting point and reference for anyone  approaching automated trading on Pathfinder.
The development team of the newly created fastbrokers platform will publish contents in this blog.
The development  of the PathFinder Trader™  script engine [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the headquarters of automated trading on PathFinder Trader™</p>
<p>This blog, in uninion with the fastbrokers forums, aims to become a starting point and reference for anyone  approaching automated trading on Pathfinder.</p>
<p>The development team of the newly created fastbrokers platform will publish contents in this blog.</p>
<p>The development  of the PathFinder Trader™  script engine will get directions  also on encounter with PathFinder Trader™ users that will be on these pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.fastbrokers.com/autotrade/2010/03/25/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

