<?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>Trainee Trader &#187; Risk</title>
	<atom:link href="http://www.traineetrader.com/category/trading/risk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.traineetrader.com</link>
	<description>Trainee Trader provides articles and tutorials related to Forex, Derivatives, Equities and Futures markets.</description>
	<lastBuildDate>Thu, 22 Dec 2011 05:16:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rethinking Automated Trading System Design</title>
		<link>http://www.traineetrader.com/rethinking-automated-trading-system-design/</link>
		<comments>http://www.traineetrader.com/rethinking-automated-trading-system-design/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 04:35:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How to Build Your Own Algorithmic Trading Business]]></category>
		<category><![CDATA[Quantitative Trading]]></category>
		<category><![CDATA[Risk]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Traders]]></category>
		<category><![CDATA[Trading]]></category>
		<category><![CDATA[ATS]]></category>
		<category><![CDATA[Automated Trading Systems]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Quant]]></category>

		<guid isPermaLink="false">http://www.traineetrader.com/?p=1306</guid>
		<description><![CDATA[If you are a regular reader you may remember me writing about Automated Trading System design in MetaTrader. I really found the platform limiting and it was only for Forex. I won&#8217;t even mention the back end modules that the market makers are running. MetaTrader 5 looks promising however with such information asymmetry  and the [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a regular reader you may remember me writing about Automated Trading System design in MetaTrader. I really found the platform limiting and it was only for Forex. I won&#8217;t even mention the back end modules that the market makers are running. MetaTrader 5 looks promising however with such information asymmetry  and the fact that most retail Forex brokers are just &#8220;bucket shops&#8221; has me wary.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1315" title="QuickMap" src="http://www.traineetrader.com/wp-content/uploads/2011/01/QuickMap.png" alt="QuickMap" width="500" height="501" /></p>
<h2>Design Decisions</h2>
<p>I have looked around at the various off the shelf trading system and execution solutions like NinjaTrader and eTrade and none of them meet my needs completely. So I have decided to write my own software solution.  I know the saying about trying to re-invent the wheel. Depending on the quality of the final product I will decide if the code is of a high enough quality for release or not.</p>
<h2>Requirements</h2>
<p>Whenever I write software I first write down a list of core requirements and then I decide what tools or language to use. For this project the quick back of the envelope requirements are:</p>
<ul>
<li>Fast Execution.</li>
<li>Code portability.</li>
<li>Separation between data acquisition / warehousing, trade execution and strategy testing.</li>
</ul>
<h4>Data Acquisition Requirements</h4>
<ul>
<li>Run on custom compiled GUI less Free BSD or Linux system.</li>
<li>Hardware requirements: Large physical storage, large RAM,  average dual core CPU and gigabit ethernet (remember PCI bus speed may slow down transfer).</li>
<li>Code written in C/C++, allow strategy testing module remote connection, configuration controlled by text file and separate IPC monitoring/reporting thread.</li>
</ul>
<h4>Strategy Testing Requirements</h4>
<ul>
<li>GUI written in C/C++or Java, connect to data store, node based editor, run on UNIX/Linux based OS and nodes contain standard API functionality.</li>
<li>Report generation.</li>
</ul>
<h4>Execution Engine Requirements</h4>
<ul>
<li>Speed, Written in C/C++, GUI less, co-location ability, load compiled strategies,  error recovery and separate IPC monitoring/reporting thread.</li>
<li>Report generation.</li>
</ul>
<p>These requirements are all fairly vague and will be refined much further during the initial design phase. This quick brainstorming exercise helps get a bigger picture of what I am looking to achieve with this development project.</p>
<h4>Data Acquisition Engine</h4>
<p>This is the first component that I will be working on. The best way for me to develop the engine will be via the use of a virtual machine. Virtual machine technology with current CPU hardware support means I can develop  at near native speed. Anyone who has done any database design or worked with financial data sets will understand the tedious nature of this component. Time to evaluate different data warehousing and schema design that will allow for speed and scalability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.traineetrader.com/rethinking-automated-trading-system-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poker, Luck &amp; Trading</title>
		<link>http://www.traineetrader.com/poker-luck-trading/</link>
		<comments>http://www.traineetrader.com/poker-luck-trading/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 02:59:53 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Poker]]></category>
		<category><![CDATA[Risk]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Luck]]></category>
		<category><![CDATA[pokerluckmeter.com]]></category>
		<category><![CDATA[Trading]]></category>

		<guid isPermaLink="false">http://www.traineetrader.com/poker-luck-trading/</guid>
		<description><![CDATA[Usually on Fridays I post weekend links, for the next few weeks I will be posting articles related to poker. Poker and trading share some common similarities. If you have yet to read my previous poker articles I suggest you start with the following articles: Ten lessons I have learned about trading from poker. My [...]]]></description>
			<content:encoded><![CDATA[<p>Usually on Fridays I post weekend links, for the next few weeks I will be posting articles related to poker. Poker and trading share some common similarities. If you have yet to read my previous poker articles I suggest you start with the following articles:</p>
<ul>
<li><a href="http://www.traineetrader.com/ten-lessons-i-have-learned-about-trading-from-poker/" target="_blank">Ten lessons I have learned about trading from poker.</a></li>
<li><a href="http://www.traineetrader.com/my-new-favourite-poker-game-limit-2-7-triple-draw-lowball/" target="_blank">My Favourite poker Game.</a></li>
</ul>
<p>There is a lot of debate about poker is it a skill game? Or is it simply gambling? My view is that poker is a game of skill with a luck component. I enjoy playing poker it I would consider it&#160; an excellent hobby that has helped me increase my knowledge of applied probability. At the moment I am learning to play HU Sit &amp; Go’s, these are really fun games which require a unique set of skills.</p>
<h4>Poker Luck Meter</h4>
<p>In both trading and poker you can lose a lot of money in the short run making correct decisions. In poker however there are several ways we can analyze or decisions to see if they are “correct”. Today we are going to have a look at an excellent free online tool called the <a href="http://pokerluckmeter.com/" target="_blank">poker luck meter</a>. You simply upload your hand history files and sit back and let the analysis begin. </p>
<h4>Poker Luck Meter in Action</h4>
<p>In the past week I have played very little poker about 1600 hands. This is of course a very small sample size I did however felt happy with my play and for the most part I was pretty sure I got my money in good. It was a losing week for me. Lets upload my hands and see if I was played well and were unlucky or I was just playing bad.</p>
<h4>Statistics</h4>
<p><a href="http://www.traineetrader.com/wp-content/uploads/2010/08/image5.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Luck and Poker" border="0" alt="Luck and Poker" src="http://www.traineetrader.com/wp-content/uploads/2010/08/image_thumb3.png" width="500" height="188" /></a>&#160;&#160;&#160;&#160;&#160;&#160; </p>
<p>As you can see my expected all in winnings and my actual winning varied quite a bit. Also the likelihood of my having such bad luck into the future is around 7%.</p>
<h4>Expected vs. Realized Winnings </h4>
<p><a href="http://www.traineetrader.com/wp-content/uploads/2010/08/image6.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Poker Luck" border="0" alt="Poker Luck" src="http://www.traineetrader.com/wp-content/uploads/2010/08/image_thumb4.png" width="500" height="362" /></a></p>
<h4>Showdown vs. Non-Showdown Winnings</h4>
<p><a href="http://www.traineetrader.com/wp-content/uploads/2010/08/image7.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Showdown Poker Luck" border="0" alt="Showdown Poker Luck" src="http://www.traineetrader.com/wp-content/uploads/2010/08/image_thumb5.png" width="500" height="356" /></a></p>
<h4>All-In Expectation vs. Realized Winnings</h4>
<p><a href="http://www.traineetrader.com/wp-content/uploads/2010/08/image8.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="All-In EV" border="0" alt="All-In EV" src="http://www.traineetrader.com/wp-content/uploads/2010/08/image_thumb6.png" width="500" height="354" /></a></p>
<h4>Conclusions </h4>
<p>It would be foolish to try and draw any concrete conclusions from such a small sample of hands. I am sure the more hands I play the closer my realized profit will be to my expected profit. In poker and trading to be successful:</p>
<ul>
<li>You have to be a good loser.</li>
<li>You have work on strategies to control your emotions.&#160; </li>
<li>Understand you will lose between 49% – 40% of the time (If you have an edge).</li>
<li>Never stop learning.</li>
<li>Connect with other traders players.</li>
<li>Keep good records.</li>
</ul>
<p>Next week I will go through the poker software I use and how it helps my game. Would love to get some feedback if you find these posts interesting or not please leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.traineetrader.com/poker-luck-trading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Risk of Ruin &#8211; How Many Trades can You Afford to Lose?</title>
		<link>http://www.traineetrader.com/risk-of-ruin-how-many-trades-can-you-afford-to-lose/</link>
		<comments>http://www.traineetrader.com/risk-of-ruin-how-many-trades-can-you-afford-to-lose/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 00:55:21 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Risk]]></category>
		<category><![CDATA[Trading]]></category>
		<category><![CDATA[Ruin]]></category>

		<guid isPermaLink="false">http://www.traineetrader.com/risk-of-ruin-how-many-trades-can-you-afford-to-lose/</guid>
		<description><![CDATA[To succeed in trading and in every other aspect of our life we have to learn to deal with failure. Here are some of my favourite quotes on this matter of failure: “I never looked at the consequences of missing a big shot&#8230; when you think about the consequences you always think of a negative [...]]]></description>
			<content:encoded><![CDATA[<p>To succeed in trading and in every other aspect of our life we have to learn to deal with failure. Here are some of my favourite quotes on this matter of failure:</p>
<blockquote><p>“I never looked at the consequences of missing a big shot&#8230; when you think about the consequences you always think of a negative result.”</p>
<p>Michael Jordan</p>
<p>“I&#8217;ve missed more than 9000 shots in my career. I&#8217;ve lost almost 300 games. 26 times, I&#8217;ve been trusted to take the game winning shot and missed. I&#8217;ve failed over and over and over again in my life. And that is why I succeed.”</p>
<p>Michael Jordan</p>
<p>“Every adversity, every failure, every heartache carries with it the seed on an equal or greater benefit.”</p>
<p>Napoleon Hill</p>
<p>“Don&#8217;t be afraid of missing opportunities. Behind every failure is an opportunity somebody wishes they had missed.” </p>
<p>Lily Tomlin</p>
</blockquote>
<p><strong>What is The Risk of Ruin?</strong></p>
<p>In it’s simplest form the risk of ruin involves losing so much of your trading capital that you can not recover or trade your way out of a draw down. To make this more concrete I used a few different risk levels to see how many consecutive losing trades one would have to make at each level before losing all there trading capital.</p>
<div align="center">
<table border="1" cellspacing="0" cellpadding="2" width="400" align="center">
<tbody>
<tr>
<td valign="top" width="200">Risk Level</td>
<td valign="top" width="200">Number of consecutive losing trades</td>
</tr>
<tr>
<td valign="top" width="200">1%</td>
<td valign="top" width="200">338</td>
</tr>
<tr>
<td valign="top" width="200">2%</td>
<td valign="top" width="200">169</td>
</tr>
<tr>
<td valign="top" width="200">3%</td>
<td valign="top" width="200">112</td>
</tr>
<tr>
<td valign="top" width="200">4%</td>
<td valign="top" width="200">84</td>
</tr>
<tr>
<td valign="top" width="200">5%</td>
<td valign="top" width="200">67</td>
</tr>
<tr>
<td valign="top" width="200">10%</td>
<td valign="top" width="200">33</td>
</tr>
<tr>
<td valign="top" width="200">20%</td>
<td valign="top" width="200">16</td>
</tr>
<tr>
<td valign="top" width="200">30%</td>
<td valign="top" width="200">10</td>
</tr>
</tbody>
</table></div>
<p><em>Note: Approximate numbers based on a $15,000 account size, assume ruin occurs when account balance less then $500.</em></p>
<p>A graphical view of the risk of ruin is shown below:</p>
<p align="center"><a href="http://www.traineetrader.com/wp-content/uploads/2009/09/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Risk of Ruin - Click to Enlarge" border="0" alt="Risk of Ruin - Click to Enlarge" src="http://www.traineetrader.com/wp-content/uploads/2009/09/image_thumb.png" width="500" height="316" /></a> </p>
<p><strong>Money Management – Avoiding the Risk of Ruin</strong>&#160; </p>
<p>I know you have heard it all before that the key to successful trading is money management. As you can clearly see from the above you could have the best trading instincts or system in the world, but without money management you could be out of the game in ten trades. An excellent resource on money management can be found&#160; at <a href="http://www.turtletrader.com/money.html" target="_blank">Turtle Trader</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.traineetrader.com/risk-of-ruin-how-many-trades-can-you-afford-to-lose/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

