<?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>TraderWerks &#187; Strategy</title>
	<atom:link href="http://blog.traderwerks.com/category/strategy/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.traderwerks.com</link>
	<description>What is going on at TraderWerks.com</description>
	<lastBuildDate>Tue, 09 Feb 2010 06:29:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Market If Touched / Limit If Touched Orders In Ninja Trader</title>
		<link>http://blog.traderwerks.com/2009/05/27/market-if-touched-limit-if-touched-orders-in-ninja-trader/</link>
		<comments>http://blog.traderwerks.com/2009/05/27/market-if-touched-limit-if-touched-orders-in-ninja-trader/#comments</comments>
		<pubDate>Thu, 28 May 2009 01:35:25 +0000</pubDate>
		<dc:creator>TraderWerks</dc:creator>
				<category><![CDATA[Indicators]]></category>
		<category><![CDATA[Market Analyzer]]></category>
		<category><![CDATA[Site Information]]></category>
		<category><![CDATA[Strategy]]></category>
		<category><![CDATA[complet orders types]]></category>
		<category><![CDATA[complex]]></category>
		<category><![CDATA[Limit If Touched Orders]]></category>
		<category><![CDATA[lit]]></category>
		<category><![CDATA[Market If Touched]]></category>
		<category><![CDATA[mit]]></category>
		<category><![CDATA[ninja trader]]></category>
		<category><![CDATA[ninjatrader]]></category>
		<category><![CDATA[orders]]></category>

		<guid isPermaLink="false">http://blog.traderwerks.com/?p=644</guid>
		<description><![CDATA[MIT/LIT ORDERS MIA IN NINJATRADER With any trading platform, there will always be ONE feature that you need that is not implemented. For me that is Limit If Touched orders with a negative offset in NinjaTrader. I was on a long trip recently and I finally had time to implement MIT/LIT for a strategy I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.traderwerks.com/wp-content/uploads/2009/05/nudie_juice.gif"><img class="alignright size-medium wp-image-643" title="nudie_juice" src="http://blog.traderwerks.com/wp-content/uploads/2009/05/nudie_juice-225x300.gif" alt="nudie_juice" width="225" height="300" /></a></p>
<p><strong> MIT/LIT ORDERS MIA IN NINJATRADER</strong> </p>
<p>With any trading platform, there will always be <strong>ONE</strong> feature that you need that is not implemented. For me that is Limit If Touched orders with a negative offset in NinjaTrader. I was on a long trip recently and I finally had time to implement MIT/LIT for a strategy I was writing.</p>
<p>Long flights are great for getting work done. I will dread the day they allow cell phones in all planes.</p>
<p>On, on to the orders. Market if touched are a very similar to stop limit orders. They are both types of orders that occur only if the price reaches a certain level. With a Market If Touched order, once a price reaches a certain level, a market order is executed.</p>
<p>In Ninjatrader, there are some limitations to stop limit orders in strategies which are annoying, such as setting a negative stop price. I guess there is some reason for that, but it is beyond me. Maybe in NinjaTrader 7 they will have it for strategies.</p>
<p>If you have used StopLimit orders before and have seen an error about anÂ improperlyÂ placed Â order, then you know that I am talking about.</p>
<p>For these situations, we can use a Market If Touched or Limit If Touched order to accomplish the same thing , without the annoying errors and stopping of your strategy.</p>
<p><strong>MIT / MARKET IF TOUCHED</strong></p>
<p>A buy market-if-touched order is an order to buy at the best available price, if the market price goes down to the &#8220;if touched&#8221; level. As soon as this trigger price is touched the order becomes a market buy order.</p>
<p>A sell market-if-touched order is an order to sell at the best available price, if the market price goes up to the &#8220;if touched&#8221; level. As soon as this trigger price is touched the order becomes a market sell order.</p>
<p><strong>LIT / LIMIT IF TOUCHED</strong></p>
<p>Just like MIT order except that a limit order instead of a market order. This is the closest one to a stop limit order.</p>
<p><strong>IMPLEMENTING IN CODE</strong></p>
<p>You can only do this if you are writing code, I do not believe the strategy wizard can do this. I am not sure, I rarely use strategy wizard for anything.</p>
<p>This may be considered advanced programming, but it is not that hard. It just looks harder than it is. It is considered &#8216;advanced&#8217; programming by the people on the Ninja Trader support forum, so they will not be that helpful.</p>
<p>Now for either of these orders , you have to monitor the prices, in-between bar updates. For that, we use OnMarketData. This recieves the price every time the price changes. This also increases the work your computer has to do , so be careful.</p>
<p><em><strong>protected override void OnMarketData(MarketDataEventArgs e) </strong></em></p>
<p>The variable <strong>e</strong> has a MarketDataType attached, and this is what you want to trigger you trade from. There are different things you can trigger from.</p>
<ul>
<li>MarketDataType.Ask</li>
<li>MarketDataType.Bid</li>
<li>MarketDataType.DailyHigh</li>
<li>MarketDataType.DailyLow</li>
<li>MarketDataType.DailyVolume</li>
<li>MarketDataType.Last</li>
<li>MarketDataType.LastClose</li>
</ul>
<p>Mind you, not every data provider furnishes those. So when we see the price we want <strong>e.Price</strong> , if it is above our buy stop, we can then enter an order.</p>
<p><strong>if (e.MarketDataType == MarketDataType.Ask)</strong></p>
<p><strong>{</p>
<p>if ( e.Price &gt;= touch_price )</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;{</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EnterLimit (  ) ;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>}</p>
<p></strong></p>
<p>Â </p>
<p>Now, this is just a start, and there are a lot of things you can do with this. Such as shorting when the bid reaches a certain price and so on.</p>
<p>MIT definition from Wikipedia</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.traderwerks.com/2009/05/27/market-if-touched-limit-if-touched-orders-in-ninja-trader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turtle Trading Strategy With Source</title>
		<link>http://blog.traderwerks.com/2009/05/04/turtle-trading-strategy-with-source/</link>
		<comments>http://blog.traderwerks.com/2009/05/04/turtle-trading-strategy-with-source/#comments</comments>
		<pubDate>Mon, 04 May 2009 16:20:29 +0000</pubDate>
		<dc:creator>TraderWerks</dc:creator>
				<category><![CDATA[Strategy]]></category>
		<category><![CDATA[Channel]]></category>
		<category><![CDATA[donchian]]></category>
		<category><![CDATA[ninja]]></category>
		<category><![CDATA[ninjascript]]></category>
		<category><![CDATA[Ninjascript Strategy]]></category>
		<category><![CDATA[ninjatrader]]></category>
		<category><![CDATA[richard dennis]]></category>
		<category><![CDATA[trader]]></category>
		<category><![CDATA[trend filter]]></category>

		<guid isPermaLink="false">http://blog.traderwerks.com/?p=605</guid>
		<description><![CDATA[THE TURTLES In 1983 &#38; 1984 Richard Dennis recruited 21 men and 2 women who both became known as the &#8220;turtles.&#8221; The program with the turtles ended in 1988, with many of the &#8216;turtles&#8217; have going on to successful careers as commodity trading advisors. If you have not hard about the Turtles there is a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.traderwerks.com/wp-content/uploads/2009/05/sea_turtle.gif"><img class="alignright size-medium wp-image-613" title="sea_turtle" src="http://blog.traderwerks.com/wp-content/uploads/2009/05/sea_turtle-300x189.gif" alt="sea_turtle" width="300" height="189" /></a><br />
<strong>THE TURTLES</strong></p>
<p>In 1983 &amp; 1984 Richard Dennis recruited  21 men and 2 women who both became known as the &#8220;turtles.&#8221; The program with the turtles ended in 1988, with many of the &#8216;turtles&#8217; have going on to successful careers as commodity trading advisors.</p>
<p>If you have not hard about the Turtles there is a good book about the legendary &#8216;Turtles&#8217;, named <strong>&#8220;Way Of The Turtle</strong>&#8220;.</p>
<p>I was reading <em>Curtis Faith&#8217;s</em> book <strong>&#8220;Way Of The Turtle</strong>&#8221; over the weekend. Â I think it is the best book on the Turtles on the market today.Â There may be other books that are better written or edited than this one, but I consider this one the best, as it was written by one of the original turtles.</p>
<p>Now with thatout of the way, onto one of the systems they used.</p>
<p><strong>DONCHIAN CHANNEL</strong></p>
<p>The donchian channel is a volatility based indicator. Like other volatility indicators, and especially channel indicators, the donchian channel is usually used to identify a break out of a price range.</p>
<p>The donchian channel is displayed as high and low bands , and therefore it looks similar to other volatility indicators such as Bollinger Bands.</p>
<p><strong>DONCHIAN CHANNEL TURTLE SYSTEM</strong></p>
<p>This system is the channel breakout system from the book. It consists of two parts. A n-period channel breakout, and a trend filter to only trade breakouts with the trend.</p>
<p>The Donchian channel is a 20 period breakout, so that you enter a position if the high or low passes the 20 period high or low.</p>
<p>The trend filter is a 50/300 period moving average crossover. If the 30 period moving average is higher than the 300 period moving average then only take long trades.</p>
<p>So this system uses this breakout to initiate trades, while still being a trend following system via the the trend filter to only initiate trades &#8216;with the trend&#8217;.</p>
<p><strong>MY VERSION<br />
</strong></p>
<p>Lately there have been a lot of trading days, so think a trend following system would have performed very well in the last few weeks ( during this bull run ). I coded this for Ninja Trader 6.5 and the source is a zip file below. Just import the zip file from the NinjaTrader utility menu, selecting &#8216;Import Ninjascript&#8221; and selecting the zip file.</p>
<p>I did not make many changes to the system for this version yet. Later I will post a more modified version of the system.</p>
<blockquote><p><a href="http://blog.traderwerks.com/wp-content/uploads/2009/05/twdonchianchannel.zip">DOWNLOAD DONCHIAN SOURCE FOR NINJA TRADER</a>Â </p></blockquote>
<p>The difference for this system is that the system works as a day trading system.  The original system was based on daily prices, this one is based on 5 minute bars, although you can run it on any time frame.</p>
<p>I used a 2 * ATR trailing stop. The systems also exits all trades at the end of the day.</p>
<p><a href="http://blog.traderwerks.com/wp-content/uploads/2009/05/dchannel_results.gif"><img class="alignleft size-thumbnail wp-image-609" title="dchannel_results" src="http://blog.traderwerks.com/wp-content/uploads/2009/05/dchannel_results-150x150.gif" alt="dchannel_results" width="150" height="150" /></a><br />
<strong>RESULTS</strong></p>
<p>Well, as you would expect, it performed as most trend following systems do. Trend following systems tend to have a lot of small losses and fewer, but larger wins to make up for it.</p>
<p>I back tested the system on the March ES contract from 12/21/2008 to 3/21/2009. It did not fare well, losing $4475 before comms. But let&#8217;s look past that at how well it did as a trend following system.</p>
<p>Trend following systems are profitable less than 50% of the trades.The Donchian channel In this case, it was profitable 31% of the time.</p>
<p>The largest win was about 2.5 times the largest loss. The average win was almost 50% larger than the average loss. Also in line with trend following systems.</p>
<p><strong>NEXT UP : MODIFICATIONS<br />
</strong><br />
Now that I have the base line using bog standard settings for the Donchian channel system. I want to make some modifications and post them along with modified source.</p>
<p>If you have any ideas you would like to see, write me at blog @ traderwerks.com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.traderwerks.com/2009/05/04/turtle-trading-strategy-with-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why TraderWerks ?</title>
		<link>http://blog.traderwerks.com/2009/04/27/why-traderwerks/</link>
		<comments>http://blog.traderwerks.com/2009/04/27/why-traderwerks/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 22:52:39 +0000</pubDate>
		<dc:creator>TraderWerks</dc:creator>
				<category><![CDATA[Strategy]]></category>
		<category><![CDATA[bmw]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[german]]></category>
		<category><![CDATA[strudel]]></category>
		<category><![CDATA[traderwerks]]></category>
		<category><![CDATA[why traderwerks]]></category>

		<guid isPermaLink="false">http://blog.traderwerks.com/?p=228</guid>
		<description><![CDATA[TraderWerks. The first part, trader, we can all relate to. The second word , Werks is a German word that means factory.Stupid name at first, but when you think about it, it makes sense. So now you have a clue to why I named this site TraderWerks.Â This post has been a long time in the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.traderwerks.com/wp-content/uploads/2009/02/risk_factory_medium.jpg"><img class="alignleft size-medium wp-image-256" title="risk_factory_medium" src="http://blog.traderwerks.com/wp-content/uploads/2009/02/risk_factory_medium-300x300.jpg" alt="risk_factory_medium" width="300" height="300" /></a><em><strong>TraderWerks.</strong></em> The first part, trader, we can all relate to. The second word , Werks is a German word that means factory.Stupid name at first, but when you think about it, it makes sense.</p>
<p>So now you have a clue to why I named this site TraderWerks.Â This post has been a long time in the making. Mainly because it is not just an answer for the curious, but an insight into the way I look at trading. I am by no means the worlds greatest trader, I just want to share my thoughts.</p>
<p><strong>TRADING IS BORING</strong></p>
<p>Trading is a lot more like working in a factory than you might think.</p>
<p>I focus on short term auto mated trading. Day trading you might say with a computer. When you are running systems it can be very, very boring. Really it is, since your systems make all the decisions, you are just along for the ride.Â Factory work is boring because it is factory work, trading is boring because it like like factory work with a better view.</p>
<p>On the setups I use most often, I have programmed an alarm sound when it comes time to place a order and open/close a position. Maybe 10 alerts over 6 and a half hours ( my current system anyway ). Of those ten alerts, maybe five trades will actually be signaled. I have semi automated my system, and I will fully automate one day, but for now, I am the human that makes sure a false signal is not generated by a Federal reserve speech or just a not a head fake from the ES. Most of the time, I just let the system do what it is programmed to do.</p>
<p>So here I am , pressing a button like a trained monkey every half an hour to an hour or every couple of hours. It doesn&#8217;t hurt my feelings to be called a trained monkey, since I am the who built the button I am pushing. But the time in between waiting for the the setup to occur is &#8216;downtime&#8217;. I can read email and such, but I still want to stay close to the system during trading hours.</p>
<p><strong>LIKE A FACTORY</strong></p>
<p>Day trading for me is notÂ  the helter skelter of &#8216;<a href="http://en.wikipedia.org/wiki/Trading_Places">Trading Places</a>&#8216; ( One of my favorite Eddie Murphy movies ).</p>
<p>You go to the factory, do the best you can making widgets and go home and have a beer. NoÂ theatrics.</p>
<p>For me, my trading day is pretty much the same. I make sure my computers are running, checking out the systems, checking the previous day&#8217;s trade, updating my trading journal. Even though I auto trade, I still keep a trading journal which gives me Â ideas on how to improve my systems.Â My trading consists of following my trading plan and following my system.</p>
<p><strong>SO WHAT DOES TRADING BETTER HAVE TO DO WITH A FACTORY?</strong></p>
<p>Both trading and working in factory have to do with following a plan. In trading, we have our trading plan, in a factory we have a work schedule. In a factory, Â follow the work schedule and worry about your execution. In trading you follow your trading plan, and you worry about following that plan. I am sure you already have a trading plan, but in case have not written it down yet&#8230;&#8230;.</p>
<p>A trading plan is a personal thing, so everyone&#8217;s trading plan will look different. IMHO, it should have at least three parts.</p>
<ol>
<li>Entries &#8211; Your setups</li>
<li>Exits &#8211; Profit targets, Stop Losses</li>
<li>Money Management &#8211; Risk management</li>
</ol>
<p>The first step to following a trading plan is writing out your trading plan. The key is writing it out.Â A trading plan isÂ somethingÂ you couldÂ actuallyÂ explain to another person. The process of writing it out helpsÂ clarifyÂ our trading plan.Â A lot of us have vague trading plans in &#8216;our head&#8217;, but that is not a trading plan, that is one step from random trading.Â So, put together your trading plan, trade it like you are working in a factory, and you trade better.</p>
<p><strong>SO REALLY, WHY TRADERWORKS.COM?</strong></p>
<p>Because TraderWorks.com and TraderFactory.com Â were already taken.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.traderwerks.com/2009/04/27/why-traderwerks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Think Like A Trader&#8221;</title>
		<link>http://blog.traderwerks.com/2009/04/13/think-like-a-trader/</link>
		<comments>http://blog.traderwerks.com/2009/04/13/think-like-a-trader/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 23:50:21 +0000</pubDate>
		<dc:creator>TraderWerks</dc:creator>
				<category><![CDATA[Strategy]]></category>
		<category><![CDATA[brett]]></category>
		<category><![CDATA[psycology]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[scientific]]></category>
		<category><![CDATA[steenberg]]></category>
		<category><![CDATA[think like a trader. psycholocial trader]]></category>
		<category><![CDATA[trading]]></category>

		<guid isPermaLink="false">http://blog.traderwerks.com/?p=540</guid>
		<description><![CDATA[THINK LIKE A TRADER SomeÂ scientistsÂ decided to do a study on how do people trade &#8216;likeÂ a trader&#8217;, and do they perform better when Â people trade better when they &#8216;Think Like A Trader&#8221;. This paper specifically takes a look at traders and lossÂ aversion. If one &#8216;Thinks Like A Trader&#8221; will they be less risk averse and trade [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-200" title="gree_tea_sushi" src="http://blog.traderwerks.com/wp-content/uploads/2009/04/green_tea_frappuccino_bento.jpg" alt="clamwin_logo" width="265" height="354" /></p>
<p><strong>THINK LIKE A TRADER</strong></p>
<p>SomeÂ scientistsÂ decided to do a study on how do people trade &#8216;likeÂ a trader&#8217;, and do they perform better when Â people trade better when they &#8216;Think Like A Trader&#8221;.</p>
<p>This paper specifically takes a look at traders and  lossÂ aversion. If one &#8216;Thinks Like A Trader&#8221; will they be less risk averse and trade better. The answer is yes.<strong> I posted a link to the paper below.</strong></p>
<p>For simplicity sake, I will define loss aversion as:</p>
<blockquote><p>losses hurt more than gains feel good</p></blockquote>
<p>That is taht people feel a lot more pain from losing $100 than from making $100.  Thus, we make based decisions based on not making loses.</p>
<p>What the study did was ask the guinea pigs subjects to &#8220;Think Like A Trader&#8221; and not to worry about the losses. It seems to have worked. They have a lot of graphs and charts in the paper that you can check out in your free time.</p>
<p><strong>SIM TRADING</strong></p>
<p>A lot of people can sim trade better than they can trade actual money. I could have titled this post &#8220;Why I Am Great In Simulation Trading And Suck In Real Life&#8221; but that would have been just too long.</p>
<p>For most people, when we sim ( trading in simulation mode without money on the line ) we take more risks and tend to do better. When it comes to actually trading, we tend to suck. Time seems to slow down while we are watching every tick.</p>
<p>The reason some of us ( most of us ) , sim trade better than than real life trade is that were are in a better state emotionally to trade our systens and not second guess ourselves. We are thinking like a trader because we do not fear the losses.</p>
<p><strong>AUTOMATED STRATEGIES ALWAYS THINK LIKE A TRADER</strong></p>
<p>That is the beauty of an automated system. It is mechanical and it does think like a trader.</p>
<p>You should see my face when I watch the strategy trade. My strategy will make a trade and I will watch it and just want to close out the trade before I lose too much or lock in a profit. Most of the time, my strategy proves me wrong and stays in the trade. My strategy trades like a machine because it is a machine.</p>
<p><strong>CONCLUSION</strong></p>
<p>When I read an academic paper, I usually read the conclusion first and work my way back from there. I also read the ends of novels first, but considering how many novels I read now ( pick a number between nil and zero ) , it does not matter.</p>
<p>In real life, you need to fear and respect losses but not let them overwhelm your trading.  Try to &#8216;Think Like A Trader&#8221; and don&#8217;t let the losses affect your trading or your system.</p>
<p>So when you can trade on a sim, and you move to trading a live account, remember to try to keep the same detachment you had when you were trading on a sim.</p>
<p><strong>NOTES</strong></p>
<p><em>The image is by <a href="http://www.flickr.com/photos/kitsa_sakurako/" target="_blank">Sakurako Kitsa</a>, is a Bento box in the shape of a Starbuck&#8217;s Green Tea  Frappuccino .</em></p>
<p><em> </em></p>
<p><em>You can read the whole paper here<a href="http://blog.traderwerks.com/wp-content/uploads/2009/04/pnas-2009-sokol-hessner-0806761106.pdf">pnas-2009-sokol-hessner-0806761106</a><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.traderwerks.com/2009/04/13/think-like-a-trader/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Gap Fade Ninjascript Strategy : Five Profitable RIMM Trades In A Row in 10 Days</title>
		<link>http://blog.traderwerks.com/2008/10/28/gap-fade-ninjascript-strategy-five-profitable-rimm-trades-in-a-row-in-10-days/</link>
		<comments>http://blog.traderwerks.com/2008/10/28/gap-fade-ninjascript-strategy-five-profitable-rimm-trades-in-a-row-in-10-days/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 08:24:32 +0000</pubDate>
		<dc:creator>TraderWerks</dc:creator>
				<category><![CDATA[Strategy]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[gap]]></category>
		<category><![CDATA[Ninjascript Strategy]]></category>
		<category><![CDATA[opening]]></category>
		<category><![CDATA[RIMM]]></category>
		<category><![CDATA[trade]]></category>

		<guid isPermaLink="false">http://blog.traderwerks.com/?p=139</guid>
		<description><![CDATA[Looking at this wild week in the market I decided to look at the old gap trade. The gap trade is fading a gap open, and used to be a staple trade, but in the last few years it has not worked as well.. For example , if a stock opens up 2%, you sell [...]]]></description>
			<content:encoded><![CDATA[<p>Looking at this wild week in the market I decided to look at the old gap trade. The gap trade is fading a gap open, and  used to be a staple trade, but in the last few years it has not worked as well.. For example , if a stock opens up 2%, you sell it and hope for the gap to close.</p>
<p><a href="http://blog.traderwerks.com/wp-content/uploads/2008/10/twgaptraderimm20081014.png"><img class="alignright size-medium wp-image-137" title="twgaptraderimm20081014" src="http://blog.traderwerks.com/wp-content/uploads/2008/10/twgaptraderimm20081014-300x213.png" alt="" width="300" height="213" /></a></p>
<p>So I coded up a NinjaScript strategy  to trade the gap trade and took a look at RIMM. No real reason I picked RIMM, it is just one of those volatile internet type stocks. I have not tested the strategy on other stocks, but feel free to test it out.</p>
<p>Nine trades , all profitable, for a cumulative profit of 21% over the last couple of weeks. I have not done testing on other stocks, but it seems like the gap trade is working now.</p>
<p>Take a look at the image on my right. You can click on it to get a full size image. This is an image of the  strategy analyzer, which is backtesting. The total net profit was $9.53 over two weeks which is not bad for a $44 stock. If you will notice that there were five trades, with four long trades in this market. The market has been wild so this strategy has been making long trades after some of these selloffs.</p>
<p>You can download the <a href="http://blog.traderwerks.com/wp-content/uploads/2008/10/twgaptrade.zip">Gap Trade Strategy here</a>. You need to run NinjaTrader 6.5 which pretty much everyone runs. You do have to register it, but it is mainly so you can read the legal mumbo jumbo that my legal guy wants. You just have to read the license and click ok.</p>
<p><em><strong><a href="http://blog.traderwerks.com/wp-content/uploads/2008/10/twgaptrade.zip">DOWNLOAD Gap Trade Strategy</a></strong></em></p>
<p><strong><em>HOW TO USE THE STRATEGY<br />
[1] The strategy only works on intraday data, not daily data.<br />
[2] There is also only one parameter and that is the percentage of the gap for the trade to occur. So a setting of 2 would be a 2% gap.<br />
[3] The strategy closes all trades at the end of the day.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.traderwerks.com/2008/10/28/gap-fade-ninjascript-strategy-five-profitable-rimm-trades-in-a-row-in-10-days/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
