<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for AmiBroker Knowledge Base</title>
	<atom:link href="http://www.amibroker.com/kb/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amibroker.com/kb</link>
	<description>Providing you with tips &#038; tricks for everyday AmiBroker use</description>
	<pubDate>Sat, 17 May 2008 08:10:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>Comment on Low-level gfx example: Yearly/monthly profit chart by Tomasz Janeczko</title>
		<link>http://www.amibroker.com/kb/2007/10/11/low-level-gfx-example-yearlymonthly-profit-chart/#comment-4294</link>
		<dc:creator>Tomasz Janeczko</dc:creator>
		<pubDate>Fri, 04 Apr 2008 08:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2007/10/11/low-level-gfx-example-yearlymonthly-profit-chart/#comment-4294</guid>
		<description>You can have this and any number of other "equity" charts defined and you can export them to file using Edit-&gt;Image-&gt;Export to file.
In the future there will be an option to have such charts saved together with the report automatically.</description>
		<content:encoded><![CDATA[<p>You can have this and any number of other &#8220;equity&#8221; charts defined and you can export them to file using Edit->Image->Export to file.<br />
In the future there will be an option to have such charts saved together with the report automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting started with automatic Walk-Forward optimization by Tomasz Janeczko</title>
		<link>http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/#comment-4292</link>
		<dc:creator>Tomasz Janeczko</dc:creator>
		<pubDate>Fri, 04 Apr 2008 08:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/#comment-4292</guid>
		<description>When doing Walk-Forward optimization, AmiBroker uses dates defined in WF settings page (temporarily overrides AA range). After finishing WF, the original range is restored.</description>
		<content:encoded><![CDATA[<p>When doing Walk-Forward optimization, AmiBroker uses dates defined in WF settings page (temporarily overrides AA range). After finishing WF, the original range is restored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to use your LiveCharts account with AmiQuote ? by Tomasz Janeczko</title>
		<link>http://www.amibroker.com/kb/2006/03/04/how-to-use-your-livecharts-account-with-amiquote/#comment-4252</link>
		<dc:creator>Tomasz Janeczko</dc:creator>
		<pubDate>Wed, 02 Apr 2008 10:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2006/03/04/how-to-use-your-livecharts-account-with-amiquote/#comment-4252</guid>
		<description>UPDATE April 2, 2008: We received the following information from eSignal:
” It wasn’t our intention to have this product be made compatible with 3rd party software[…] The new version of LiveCharts uses a different method of exporting data and it will no longer work with AmiQuote starting the week of April 14th, 2008.”

This effectivelly means that the instructions below will become obsolete April 14th, 2008.</description>
		<content:encoded><![CDATA[<p>UPDATE April 2, 2008: We received the following information from eSignal:<br />
” It wasn’t our intention to have this product be made compatible with 3rd party software[…] The new version of LiveCharts uses a different method of exporting data and it will no longer work with AmiQuote starting the week of April 14th, 2008.”</p>
<p>This effectivelly means that the instructions below will become obsolete April 14th, 2008.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to plot a trailing stop in the Price chart by Tomasz Janeczko</title>
		<link>http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-4093</link>
		<dc:creator>Tomasz Janeczko</dc:creator>
		<pubDate>Sun, 23 Mar 2008 13:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-4093</guid>
		<description>Yes it works with short trades as well. Remember to enable SHORT trades in the settings!</description>
		<content:encoded><![CDATA[<p>Yes it works with short trades as well. Remember to enable SHORT trades in the settings!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to plot a trailing stop in the Price chart by Mikey</title>
		<link>http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-4092</link>
		<dc:creator>Mikey</dc:creator>
		<pubDate>Sun, 23 Mar 2008 12:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-4092</guid>
		<description>Does applystop also work to cover a short trade?

I can get the both methods to work as a buy/sell combo, but a simple replacement of "Buy" with "Short" and "Sell" with "Cover" doesn't seem to work. (also swapped the stop line around to be LowestSince, rather than HighestSince). 

Code I'm trying is as follows

StopLevel = Param("trailing stop %", 3, 0.1, 10, 0.1 );

SetTradeDelays(0,0,0,0);

Short = Cross( MACD(), Signal() );
Cover= 0;
ApplyStop( stopTypeTrailing, stopModePercent, StopLevel, True );
 
Equity( 1); // evaluate stops, all quotes

InTrade = Flip( Short, Cover );

SetOption("EveryBarNullCheck", True );
stopline = IIf( InTrade, LowestSince( Short, Low ) * ( 1 - 0.01 * StopLevel ), Null );

PlotShapes(Short*shapeUpArrow,colorGreen,0,Low);
PlotShapes(Cover*shapeDownArrow,colorRed,0,High);

Plot( Cover,"Price",colorBlack,styleBar);
Plot( stopline, "trailing stop line", colorRed );</description>
		<content:encoded><![CDATA[<p>Does applystop also work to cover a short trade?</p>
<p>I can get the both methods to work as a buy/sell combo, but a simple replacement of &#8220;Buy&#8221; with &#8220;Short&#8221; and &#8220;Sell&#8221; with &#8220;Cover&#8221; doesn&#8217;t seem to work. (also swapped the stop line around to be LowestSince, rather than HighestSince). </p>
<p>Code I&#8217;m trying is as follows</p>
<p>StopLevel = Param(&#8221;trailing stop %&#8221;, 3, 0.1, 10, 0.1 );</p>
<p>SetTradeDelays(0,0,0,0);</p>
<p>Short = Cross( MACD(), Signal() );<br />
Cover= 0;<br />
ApplyStop( stopTypeTrailing, stopModePercent, StopLevel, True );</p>
<p>Equity( 1); // evaluate stops, all quotes</p>
<p>InTrade = Flip( Short, Cover );</p>
<p>SetOption(&#8221;EveryBarNullCheck&#8221;, True );<br />
stopline = IIf( InTrade, LowestSince( Short, Low ) * ( 1 - 0.01 * StopLevel ), Null );</p>
<p>PlotShapes(Short*shapeUpArrow,colorGreen,0,Low);<br />
PlotShapes(Cover*shapeDownArrow,colorRed,0,High);</p>
<p>Plot( Cover,&#8221;Price&#8221;,colorBlack,styleBar);<br />
Plot( stopline, &#8220;trailing stop line&#8221;, colorRed );</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Low-level gfx example: Yearly/monthly profit chart by Pedro</title>
		<link>http://www.amibroker.com/kb/2007/10/11/low-level-gfx-example-yearlymonthly-profit-chart/#comment-3384</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Thu, 21 Feb 2008 00:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2007/10/11/low-level-gfx-example-yearlymonthly-profit-chart/#comment-3384</guid>
		<description>Could this kind of graphics/reports be included in the built in backtesting reports?
It would be very helpful, since the standard reports/charts are a little short in this type of information. Ex: weekly, monthly, yearly performance.</description>
		<content:encoded><![CDATA[<p>Could this kind of graphics/reports be included in the built in backtesting reports?<br />
It would be very helpful, since the standard reports/charts are a little short in this type of information. Ex: weekly, monthly, yearly performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting started with automatic Walk-Forward optimization by Bob Krishfield</title>
		<link>http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/#comment-3358</link>
		<dc:creator>Bob Krishfield</dc:creator>
		<pubDate>Fri, 15 Feb 2008 18:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/#comment-3358</guid>
		<description>Does  the range of quotes &#38; dates set in the AA window have any effect when doing a WF Optimization, or do the WF dates over-ride the range selection?</description>
		<content:encoded><![CDATA[<p>Does  the range of quotes &amp; dates set in the AA window have any effect when doing a WF Optimization, or do the WF dates over-ride the range selection?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting started with automatic Walk-Forward optimization by AmiBroker DevLog &#187; AmiBroker 5.05.1 BETA released</title>
		<link>http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/#comment-3309</link>
		<dc:creator>AmiBroker DevLog &#187; AmiBroker 5.05.1 BETA released</dc:creator>
		<pubDate>Tue, 12 Feb 2008 12:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/#comment-3309</guid>
		<description>[...] automatic Walk-Forward Optimization, with IS and OOS equity charts. (see getting started doc here) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] automatic Walk-Forward Optimization, with IS and OOS equity charts. (see getting started doc here) [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to plot a trailing stop in the Price chart by Tomasz Janeczko</title>
		<link>http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-2794</link>
		<dc:creator>Tomasz Janeczko</dc:creator>
		<pubDate>Thu, 10 Jan 2008 10:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-2794</guid>
		<description>Copy-paste artists usually forget about using SAME settings. Most probably you are using non-zero trading delays while the example assumes using zero delay.</description>
		<content:encoded><![CDATA[<p>Copy-paste artists usually forget about using SAME settings. Most probably you are using non-zero trading delays while the example assumes using zero delay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to plot a trailing stop in the Price chart by Janhaus</title>
		<link>http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-2791</link>
		<dc:creator>Janhaus</dc:creator>
		<pubDate>Thu, 10 Jan 2008 01:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/#comment-2791</guid>
		<description>I pasted these two types of AFL code into 2 different formulas, and quickly find that these two approaches generate different trade results in Backtest. Any ideas?</description>
		<content:encoded><![CDATA[<p>I pasted these two types of AFL code into 2 different formulas, and quickly find that these two approaches generate different trade results in Backtest. Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
