<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Quantisan.com</title>
	
	<link>http://www.quantisan.com</link>
	<description>An engineer's training to trade for a living</description>
	<lastBuildDate>Fri, 10 Sep 2010 16:22:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Quantisan" /><feedburner:info uri="quantisan" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Quantisan</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Bought 4 MFC Jan 2010 Puts 14.00 @ 1.70, Mark $13.25</title>
		<link>http://feedproxy.google.com/~r/Quantisan/~3/17VQhUYAqTQ/</link>
		<comments>http://www.quantisan.com/bought-4-mfc-jan-2010-puts-14-00-1-70-mark-13-25/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 16:22:35 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Stocks]]></category>
		<category><![CDATA[MFC.TO]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[RRSP]]></category>
		<category><![CDATA[short]]></category>

		<guid isPermaLink="false">http://www.quantisan.com/?p=4021</guid>
		<description><![CDATA[I am shorting again. This time on Manulife Financial (MFC.TO) with a January 2011 put at 14 strike price. MFC is trading at $13.25 at time of entry. Recent series of prop desk closings isn&#8217;t going to bode well for the market, particularly for the banks as they need to recouperate those easy income. On [...]


Related posts:<ol><li><a href='http://www.quantisan.com/bought-4-mfc-10oct-puts-17-00-1-48-mark-16-38/' rel='bookmark' title='Permanent Link: Bought 4 MFC 10OCT Puts 17.00 @ $1.48, Mark $16.38'>Bought 4 MFC 10OCT Puts 17.00 @ $1.48, Mark $16.38</a></li>
<li><a href='http://www.quantisan.com/bought-3-cve-to-jul-30-puts-1-75-mark-30-10/' rel='bookmark' title='Permanent Link: Bought +3 CVE.TO JUL 30 Puts @ 1.75, mark $30.10'>Bought +3 CVE.TO JUL 30 Puts @ 1.75, mark $30.10</a></li>
<li><a href='http://www.quantisan.com/sold-4-mfc-10oct-puts-17-00-1-43-mark-16-27-loss-0-5/' rel='bookmark' title='Permanent Link: Sold 4 MFC 10OCT Puts 17.00 @ @1.43, Mark $16.27, Loss -0.5%'>Sold 4 MFC 10OCT Puts 17.00 @ @1.43, Mark $16.27, Loss -0.5%</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am shorting again.  This time on Manulife Financial (MFC.TO) with a January 2011 put at 14 strike price.  MFC is trading at $13.25 at time of entry.</p>
<p>Recent series of <a href="http://www.marketwatch.com/story/the-bank-story-no-one-is-talking-about-2010-09-10">prop desk closings</a> isn&#8217;t going to bode well for the market, particularly for the banks as they need to recouperate those easy income.  On top of it, the lack of push from the bulls this week as S&amp;P test 1110 resistance doesn&#8217;t look promising either.  Yet, this could very well be a bear trap.</p>
<p>In any case, I am taking a bearish bet via shorting MFC.  Figure 1 shows a chart of MFC.  It is depressed and it is struggling.  Moreover, MFC keeps announcing billions of dollars worth of share offerings lately.  I like it.</p>
<p>There is a dinstinct possibility of a bear raid if MFC can break this $13.50 resistance level.  The gap above $15 is just staring at me.</p>
<p>Hard stop is at $1.00 premium.  Worst case risk for this trade is thus ($1.70 &#8211; $1.00) * 4 * 100 = 280 + $27.90 commission = $307.90 = 3.2%.  However, I&#8217;d be very cautious if MFC closes above $13.50.</p>
<div class="wp-caption aligncenter" style="width: 580px"><a href="http://cache.quantisan.com/images/2010/2010-09-10-MFC.TO.png"><img class=" " src="http://cache.quantisan.com/images/2010/2010-09-10-MFC.TO.png" alt="" width="570" /></a><p class="wp-caption-text">Manulife Financial (MFC.TO)</p></div>


<p>Related posts:<ol><li><a href='http://www.quantisan.com/bought-4-mfc-10oct-puts-17-00-1-48-mark-16-38/' rel='bookmark' title='Permanent Link: Bought 4 MFC 10OCT Puts 17.00 @ $1.48, Mark $16.38'>Bought 4 MFC 10OCT Puts 17.00 @ $1.48, Mark $16.38</a></li>
<li><a href='http://www.quantisan.com/bought-3-cve-to-jul-30-puts-1-75-mark-30-10/' rel='bookmark' title='Permanent Link: Bought +3 CVE.TO JUL 30 Puts @ 1.75, mark $30.10'>Bought +3 CVE.TO JUL 30 Puts @ 1.75, mark $30.10</a></li>
<li><a href='http://www.quantisan.com/sold-4-mfc-10oct-puts-17-00-1-43-mark-16-27-loss-0-5/' rel='bookmark' title='Permanent Link: Sold 4 MFC 10OCT Puts 17.00 @ @1.43, Mark $16.27, Loss -0.5%'>Sold 4 MFC 10OCT Puts 17.00 @ @1.43, Mark $16.27, Loss -0.5%</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/CAIA7GhV2rTphnwmpMc_DtTruyg/0/da"><img src="http://feedads.g.doubleclick.net/~a/CAIA7GhV2rTphnwmpMc_DtTruyg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CAIA7GhV2rTphnwmpMc_DtTruyg/1/da"><img src="http://feedads.g.doubleclick.net/~a/CAIA7GhV2rTphnwmpMc_DtTruyg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Quantisan/~4/17VQhUYAqTQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.quantisan.com/bought-4-mfc-jan-2010-puts-14-00-1-70-mark-13-25/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.quantisan.com/bought-4-mfc-jan-2010-puts-14-00-1-70-mark-13-25/</feedburner:origLink></item>
		<item>
		<title>Bought 200 VEN.TO @ $9.74, Stop $8.90</title>
		<link>http://feedproxy.google.com/~r/Quantisan/~3/use3gxR5gsw/</link>
		<comments>http://www.quantisan.com/bought-200-ven-to-9-74-stop-8-90/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 15:32:29 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Stocks]]></category>
		<category><![CDATA[entry]]></category>
		<category><![CDATA[gold]]></category>
		<category><![CDATA[Mining]]></category>
		<category><![CDATA[RRSP]]></category>
		<category><![CDATA[VEN.TO]]></category>

		<guid isPermaLink="false">http://www.quantisan.com/?p=4019</guid>
		<description><![CDATA[Well I found a viable long term hold just as I declared that there&#8217;s nothing good out there today. Yes, I eat my words often. So I took a long position in Ventana Gold Corp (VEN.TO). That cup-and-handle breakout from $9.00 is just textbook (Fig. 1). I am indeed a bit late, but the trend [...]


Related posts:<ol><li><a href='http://www.quantisan.com/bought-250-ven-to-6-93/' rel='bookmark' title='Permanent Link: Bought 250 VEN.TO @ $6.93'>Bought 250 VEN.TO @ $6.93</a></li>
<li><a href='http://www.quantisan.com/sold-250-ven-to-7-89-profit-2-4/' rel='bookmark' title='Permanent Link: Sold 250 VEN.TO @ $7.89, Profit +2.4%'>Sold 250 VEN.TO @ $7.89, Profit +2.4%</a></li>
<li><a href='http://www.quantisan.com/bought-200-k-to-15-94/' rel='bookmark' title='Permanent Link: Bought 200 K.TO @ $15.94'>Bought 200 K.TO @ $15.94</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Well I found a viable long term hold just as I <a href="http://www.quantisan.com/still-waiting-on-the-sideside-in-my-rrsp/">declared that there&#8217;s nothing good out there</a> today.  Yes, I eat my words often.  So I took a long position in Ventana Gold Corp (VEN.TO).  That cup-and-handle breakout from $9.00 is just textbook (Fig. 1).  I am indeed a bit late, but the trend is now upward.</p>
<p>There is a big resistance at $10.  It is where the June epic decline started.  From just above $10 to $6.5 between June and July.  Now that VEN is back at this level again.  I am betting that the positive momentum would carry it upward.</p>
<p>My hard stop is $8.90.  My mental stop is $9.50.  As VEN seem to like to gap at $9.50.  From the look of it, $9.50 level is more important than $10.  Since we&#8217;re above it already, this gives me a bit more confidence in this trade.</p>
<p>Another point to note is gold price.  It is on a direct train to test, and possibly, break a new high record (Fig. 2).</p>
<p>Risk is ($9.74 &#8211; $8.90) * 200 = $168 + $9.90 commission = $177.90 = 1.85% of <a href="/questrade/">RRSP trading account</a>.</p>
<div class="wp-caption aligncenter" style="width: 580px"><a href="http://cache.quantisan.com/images/2010/2010-09-09-VEN.TO.png"><img class=" " src="http://cache.quantisan.com/images/2010/2010-09-09-VEN.TO.png" alt="" width="570" /></a><p class="wp-caption-text">Ventana Gold Corp. (VEN.TO)</p></div>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 580px"><a href="http://cache.quantisan.com/images/2010/2010-09-09-gold.png"><img class=" " src="http://cache.quantisan.com/images/2010/2010-09-09-gold.png" alt="" width="570" /></a><p class="wp-caption-text">Gold</p></div>


<p>Related posts:<ol><li><a href='http://www.quantisan.com/bought-250-ven-to-6-93/' rel='bookmark' title='Permanent Link: Bought 250 VEN.TO @ $6.93'>Bought 250 VEN.TO @ $6.93</a></li>
<li><a href='http://www.quantisan.com/sold-250-ven-to-7-89-profit-2-4/' rel='bookmark' title='Permanent Link: Sold 250 VEN.TO @ $7.89, Profit +2.4%'>Sold 250 VEN.TO @ $7.89, Profit +2.4%</a></li>
<li><a href='http://www.quantisan.com/bought-200-k-to-15-94/' rel='bookmark' title='Permanent Link: Bought 200 K.TO @ $15.94'>Bought 200 K.TO @ $15.94</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/5pP4GMqLx32i4d8l884z3MbxnuU/0/da"><img src="http://feedads.g.doubleclick.net/~a/5pP4GMqLx32i4d8l884z3MbxnuU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5pP4GMqLx32i4d8l884z3MbxnuU/1/da"><img src="http://feedads.g.doubleclick.net/~a/5pP4GMqLx32i4d8l884z3MbxnuU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Quantisan/~4/use3gxR5gsw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.quantisan.com/bought-200-ven-to-9-74-stop-8-90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.quantisan.com/bought-200-ven-to-9-74-stop-8-90/</feedburner:origLink></item>
		<item>
		<title>Still waiting on the sideside in my RRSP</title>
		<link>http://feedproxy.google.com/~r/Quantisan/~3/RT0UtxBtHW0/</link>
		<comments>http://www.quantisan.com/still-waiting-on-the-sideside-in-my-rrsp/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 14:42:25 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Stocks]]></category>
		<category><![CDATA[TSX]]></category>

		<guid isPermaLink="false">http://www.quantisan.com/?p=4017</guid>
		<description><![CDATA[As much as I rant about trading and forex, a big portion of my investment funds are in a Questrade RRSP trading account for the long haul.  However, that account has been dormant for a few weeks now. The money is just sitting there, not even making any interest. The reason is that I am [...]


Related posts:<ol><li><a href='http://www.quantisan.com/ranking-investment-options-for-my-self-directed-rrsp/' rel='bookmark' title='Permanent Link: Ranking investment options for my self-directed RRSP'>Ranking investment options for my self-directed RRSP</a></li>
<li><a href='http://www.quantisan.com/another-reason-against-stocking-into-a-registered-trading-account-this-year/' rel='bookmark' title='Permanent Link: Another reason against stocking into a registered trading account this year'>Another reason against stocking into a registered trading account this year</a></li>
<li><a href='http://www.quantisan.com/bought-2-strangle-c-100-dec-08-525-callput-162/' rel='bookmark' title='Permanent Link: BOUGHT +2 STRANGLE C 100 DEC 08 5/2.5 CALL/PUT @1.62'>BOUGHT +2 STRANGLE C 100 DEC 08 5/2.5 CALL/PUT @1.62</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As much as I rant about trading and forex, a big portion of my investment funds are in a <a href="/questrade/">Questrade RRSP trading account</a> for the long haul.  However, that account has been dormant for a few weeks now.  The money is just sitting there, not even making any interest.  The reason is that I am just not seeing any long-term opportunity on either long or short just yet.</p>
<p>Even though the month of September started well after Labour Day, as the market is inching higher, the long term picture is still unclear. Figure 1 below clearly shows that not much has really happened for the whole year.  There was a lot of volatility as TSX swings up and down a thousand points now and then.  Evidently, a buy-and-hold strategy wouldn&#8217;t have been doing too well this year.  As such, I am waiting with no position in hand.</p>
<p>At least I&#8217;m not going <a href="http://www.quantisan.com/sold-6-cm-10oct-put-74-00-6-60-mark-70-70-8-0/">all out shorting the equity market</a> anymore.</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 580px"><a href="http://cache.quantisan.com/images/2010/2010-09-09-TSX_wkly.png"><img class=" " src="http://cache.quantisan.com/images/2010/2010-09-09-TSX_wkly.png" alt="" width="570" /></a><p class="wp-caption-text">TSX weekly chart</p></div>


<p>Related posts:<ol><li><a href='http://www.quantisan.com/ranking-investment-options-for-my-self-directed-rrsp/' rel='bookmark' title='Permanent Link: Ranking investment options for my self-directed RRSP'>Ranking investment options for my self-directed RRSP</a></li>
<li><a href='http://www.quantisan.com/another-reason-against-stocking-into-a-registered-trading-account-this-year/' rel='bookmark' title='Permanent Link: Another reason against stocking into a registered trading account this year'>Another reason against stocking into a registered trading account this year</a></li>
<li><a href='http://www.quantisan.com/bought-2-strangle-c-100-dec-08-525-callput-162/' rel='bookmark' title='Permanent Link: BOUGHT +2 STRANGLE C 100 DEC 08 5/2.5 CALL/PUT @1.62'>BOUGHT +2 STRANGLE C 100 DEC 08 5/2.5 CALL/PUT @1.62</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/S2P6wTQY3G2vjEWcCzOaamxXbw4/0/da"><img src="http://feedads.g.doubleclick.net/~a/S2P6wTQY3G2vjEWcCzOaamxXbw4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S2P6wTQY3G2vjEWcCzOaamxXbw4/1/da"><img src="http://feedads.g.doubleclick.net/~a/S2P6wTQY3G2vjEWcCzOaamxXbw4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Quantisan/~4/RT0UtxBtHW0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.quantisan.com/still-waiting-on-the-sideside-in-my-rrsp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.quantisan.com/still-waiting-on-the-sideside-in-my-rrsp/</feedburner:origLink></item>
		<item>
		<title>Number one with 40+ percent return in a month!  So am I rich yet?  Not really</title>
		<link>http://feedproxy.google.com/~r/Quantisan/~3/jiHvGcudgPE/</link>
		<comments>http://www.quantisan.com/number-one-with-40-percent-return-in-a-month-so-am-i-rich-yet-not-really/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 16:39:47 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Automated System]]></category>
		<category><![CDATA[JForex]]></category>

		<guid isPermaLink="false">http://www.quantisan.com/?p=4007</guid>
		<description><![CDATA[I have won first place in the August Dukascopy JForex contest! My automated strategy returned over 45% in the month of August. With that honour comes a $5,000 grand prize in real greenbacks. The setup that I used is a minor updated version of the one I used last month. I continue to adapt my [...]


Related posts:<ol><li><a href='http://www.quantisan.com/end-of-month-review-march-is-bear-rally-month/' rel='bookmark' title='Permanent Link: End of Month Review: March is bear rally month'>End of Month Review: March is bear rally month</a></li>
<li><a href='http://www.quantisan.com/sixth-place-finish-in-the-dukascopy-jforex-july-strategy-contest/' rel='bookmark' title='Permanent Link: Sixth place finish in the Dukascopy JForex July strategy contest'>Sixth place finish in the Dukascopy JForex July strategy contest</a></li>
<li><a href='http://www.quantisan.com/clarification-and-relieve-for-dukascopy-jforex-strategy-contest/' rel='bookmark' title='Permanent Link: Clarification and relieve for Dukascopy JForex Strategy Contest'>Clarification and relieve for Dukascopy JForex Strategy Contest</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have won first place in the August <a href="/dukascopy/">Dukascopy</a> JForex contest!  My automated strategy returned over 45% in the month of August.  With that honour comes <a href="http://www.dukascopy.com/swiss/english/forex/jforex/strategy_contest/august-2010/">a $5,000 grand prize</a> in real greenbacks.</p>
<p>The setup that I used is a minor updated version of <a href="http://www.quantisan.com/jforex-example-dual-timeframe-moving-averages-setup/">the one I used last month</a>.  I continue to adapt my system to expect market conditions of the month ahead.  Sometimes I&#8217;m right, sometimes I&#8217;m wrong.</p>
<p>This contest is turning out to be more than a nerdy pass time for me as I have finished in the top 10 three times already since it started in April.  However, I must reiterate the fact that this is not real trading.  It&#8217;s just a paper trading contest with no real money risked on my part.  If I&#8217;m really that good at trading to make 45% of return a month, I wouldn&#8217;t be writing this post at lunch in my cubicle at this moment.</p>
<p>So yes, back to reality as I continue my engineering work while improving my own trading and developing my quantitative trading system in my spare time.  As my blog&#8217;s tagline reads, this is an engineer&#8217;s training to trade for a living.</p>


<p>Related posts:<ol><li><a href='http://www.quantisan.com/end-of-month-review-march-is-bear-rally-month/' rel='bookmark' title='Permanent Link: End of Month Review: March is bear rally month'>End of Month Review: March is bear rally month</a></li>
<li><a href='http://www.quantisan.com/sixth-place-finish-in-the-dukascopy-jforex-july-strategy-contest/' rel='bookmark' title='Permanent Link: Sixth place finish in the Dukascopy JForex July strategy contest'>Sixth place finish in the Dukascopy JForex July strategy contest</a></li>
<li><a href='http://www.quantisan.com/clarification-and-relieve-for-dukascopy-jforex-strategy-contest/' rel='bookmark' title='Permanent Link: Clarification and relieve for Dukascopy JForex Strategy Contest'>Clarification and relieve for Dukascopy JForex Strategy Contest</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/3oJKoeLy08Ec3MMJMHnh8X5tcb8/0/da"><img src="http://feedads.g.doubleclick.net/~a/3oJKoeLy08Ec3MMJMHnh8X5tcb8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/3oJKoeLy08Ec3MMJMHnh8X5tcb8/1/da"><img src="http://feedads.g.doubleclick.net/~a/3oJKoeLy08Ec3MMJMHnh8X5tcb8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Quantisan/~4/jiHvGcudgPE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.quantisan.com/number-one-with-40-percent-return-in-a-month-so-am-i-rich-yet-not-really/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.quantisan.com/number-one-with-40-percent-return-in-a-month-so-am-i-rich-yet-not-really/</feedburner:origLink></item>
		<item>
		<title>On technical analysis and fuzzy logic for mechanical trading</title>
		<link>http://feedproxy.google.com/~r/Quantisan/~3/3jfSy7lTJhE/</link>
		<comments>http://www.quantisan.com/on-technical-analysis-and-fuzzy-logic-for-mechanical-trading/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 14:49:58 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Methods]]></category>
		<category><![CDATA[Trading Signal]]></category>
		<category><![CDATA[fuzzy logic]]></category>

		<guid isPermaLink="false">http://www.quantisan.com/?p=3996</guid>
		<description><![CDATA[Technical traders realize that technical analysis is more of an art than science. Until you draw a plethora of lines to fill your chart, which would render it practically useless, prices rarely &#8220;hit the spot&#8221; based on your doodles. This doesn&#8217;t matter though because trading is not about charts and guessing numbers. It is about [...]


Related posts:<ol><li><a href='http://www.quantisan.com/a-technical-analysis-of-80-years-of-sp500/' rel='bookmark' title='Permanent Link: A technical analysis of 80 years of S&amp;P500'>A technical analysis of 80 years of S&amp;P500</a></li>
<li><a href='http://www.quantisan.com/first-look-at-google-app-engine-for-automated-trading-and-quant-analysis-on-the-cloud/' rel='bookmark' title='Permanent Link: First look at Google App Engine for automated trading and quant analysis on the cloud'>First look at Google App Engine for automated trading and quant analysis on the cloud</a></li>
<li><a href='http://www.quantisan.com/a-lesson-on-the-importance-of-fundamental-awareness-for-a-technical-trader/' rel='bookmark' title='Permanent Link: A lesson on the importance of fundamental awareness for a technical trader'>A lesson on the importance of fundamental awareness for a technical trader</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Technical traders realize that technical analysis is more of an art than science.  Until you draw a plethora of lines to fill your chart, which would render it practically useless, prices rarely &#8220;hit the spot&#8221; based on your doodles.  This doesn&#8217;t matter though because trading is not about charts and guessing numbers.  It is about costs and risks (pardon me if you&#8217;ve heard this a thousand times already).  To whom this would matter though, are the mechanical traders using technical analysis.</p>
<p>It may be <em>obvious</em> to a human to discern price patterns because a trading setup <em>looks like</em> something you know.  However, figuring out &#8220;obvious&#8221; and &#8220;looks like&#8221; is not trivial in a program.  Common ways of tackling this problem is with stochastic algorithms or Bayesian logic.  The drawback with using these methods though, is that they are difficult to conjure unless you have some vigorous background in math.</p>
<p>Hereby I suggest an alternative&#8211;fuzzy logic.</p>
<p>In it&#8217;s simplest implmentation, fuzzy logic are mere if-then statements.  Here&#8217;s a sample fuzzy logic control system for regulating temperature with a fan (it is also a trick solution to the infamous <a href="http://en.wikipedia.org/wiki/Hysteresis">hysteresis problem</a> in control theory&#8230;but I digress),<code><br />
IF temperature IS very cold THEN stop fan<br />
IF temperature IS cold THEN turn down fan<br />
IF temperature IS normal THEN maintain level<br />
IF temperature IS hot THEN speed up fan</code></p>
<p>As you can see, there can be more than two values for a result.  The classic and ubiquitous TRUE or FALSE boolean is thrown out the window.</p>
<p>Let&#8217;s dive right into an example of applying fuzzy logic to technical analysis.  Say you are using the RSI as one of your indicators.  Typically, you set a pair of threshold values to determine if the instrument is overbought or oversold.</p>
<p><code><br />
String rsiCondition;<br />
if (RSI &gt; 70) rsiCondition = "Overbought";<br />
if (RSI &gt;= 30 &amp;&amp; RSI &lt;= 70) rsiCondition = "Neutral";<br />
if (RSI &lt; 30) rsiCondition = "Oversold";<br />
</code></p>
<p>Then here is what a fuzzy logic implementation would look like.<code><br />
String rsiCondition;<br />
if (RSI &gt; 90) rsiCondition = "Very overbought!";<br />
if (RSI &gt; 70) rsiCondition = "Overbought";<br />
if (RSI &gt; 60) rsiCondition = "a little overbought";<br />
if (RSI &gt;= 40 &amp;&amp; RSI &lt;= 60) rsiCondition = "Neutral";<br />
if (RSI &lt; 40) rsiCondition = "a little oversold";<br />
if (RSI &lt; 30) rsiCondition = "Oversold";<br />
if (RSI &lt; 10) rsiCondition = "Very oversold!";<br />
</code></p>
<p>In fact, you may have noticed that the first RSI example is already a 3-valued fuzzy logic.  And you&#8217;re right!  Fuzzy logic is that easy.</p>
<p>So what can you do with that second RSI example?  Well, perhaps you want to implement fuzzy logic on a MACD as a second indicator.  Then you can implement a &#8220;conviction&#8221; algorithm (which isn&#8217;t possible with TRUE/FALSE algorithms) by summing the two fuzzy logic (see wiki or google for more information on <a href="http://en.wikipedia.org/wiki/Fuzzy_logic">performing fuzzy logic operations</a>).  And then&#8230; well.</p>
<p>This is a basic example of exploiting the benefits of fuzzy logic in automated trading strategies.  More advanced use of fuzzy logic is demonstrated in this seminal work by Lin and Lee, <a href="http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=106218&amp;tag=1">Neural-network-based fuzzy logic control and decision system</a>, 1991.  Fuzzy logic + neural net!  Well, as you can see, this is only the tip of the iceberg.</p>
<p>P.S. I have discussed a lot recently about the frontend work that I have been working on.  This post is a break for the reader and a glimpse at what I am really doing behind the scenes.  Let me know in the <a href="/#comment/">comments below</a> if this is your cup of tea and I&#8217;ll write more of this type of posts in the future.</p>


<p>Related posts:<ol><li><a href='http://www.quantisan.com/a-technical-analysis-of-80-years-of-sp500/' rel='bookmark' title='Permanent Link: A technical analysis of 80 years of S&amp;P500'>A technical analysis of 80 years of S&amp;P500</a></li>
<li><a href='http://www.quantisan.com/first-look-at-google-app-engine-for-automated-trading-and-quant-analysis-on-the-cloud/' rel='bookmark' title='Permanent Link: First look at Google App Engine for automated trading and quant analysis on the cloud'>First look at Google App Engine for automated trading and quant analysis on the cloud</a></li>
<li><a href='http://www.quantisan.com/a-lesson-on-the-importance-of-fundamental-awareness-for-a-technical-trader/' rel='bookmark' title='Permanent Link: A lesson on the importance of fundamental awareness for a technical trader'>A lesson on the importance of fundamental awareness for a technical trader</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/Hi-FpnAxu3Az5xNG-X4Euyyrr_I/0/da"><img src="http://feedads.g.doubleclick.net/~a/Hi-FpnAxu3Az5xNG-X4Euyyrr_I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Hi-FpnAxu3Az5xNG-X4Euyyrr_I/1/da"><img src="http://feedads.g.doubleclick.net/~a/Hi-FpnAxu3Az5xNG-X4Euyyrr_I/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Quantisan/~4/3jfSy7lTJhE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.quantisan.com/on-technical-analysis-and-fuzzy-logic-for-mechanical-trading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.quantisan.com/on-technical-analysis-and-fuzzy-logic-for-mechanical-trading/</feedburner:origLink></item>
		<item>
		<title>Closed USDCAD short @ 1.06525, breakeven</title>
		<link>http://feedproxy.google.com/~r/Quantisan/~3/dXPfctvn-Y4/</link>
		<comments>http://www.quantisan.com/closed-usdcad-short-1-06525-breakeven/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 22:24:02 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Aussie, Kiwi, Loonie]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[exit]]></category>
		<category><![CDATA[USD]]></category>

		<guid isPermaLink="false">http://www.quantisan.com/?p=3994</guid>
		<description><![CDATA[It seem that USDCAD isn&#8217;t about to die just yet.  My USDCAD short got stopped out at breakeven this morning.  In fact, the pair is still struggling around the descending resistance line as shown in Figure 1.  It made a higher low so I won&#8217;t be surprised if it cracks higher. The reason why I [...]


Related posts:<ol><li><a href='http://www.quantisan.com/short-usdcad-1-0654-stop-1-077/' rel='bookmark' title='Permanent Link: Short USDCAD @ 1.0654, Stop 1.077'>Short USDCAD @ 1.0654, Stop 1.077</a></li>
<li><a href='http://www.quantisan.com/paper-trade-stopped-usdcad-short-1-0540-for-131-pips/' rel='bookmark' title='Permanent Link: Paper trade: Stopped USDCAD short @ 1.0540 for +131 pips'>Paper trade: Stopped USDCAD short @ 1.0540 for +131 pips</a></li>
<li><a href='http://www.quantisan.com/paper-trade-stopped-out-of-usdcad-short-1-0640-for-67-pips-re-entering-1-0680/' rel='bookmark' title='Permanent Link: Paper trade: Stopped out of USDCAD short @ 1.0640 for -67 pips, re-entering @ 1.0680'>Paper trade: Stopped out of USDCAD short @ 1.0640 for -67 pips, re-entering @ 1.0680</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It seem that USDCAD isn&#8217;t about to die just yet.  <a href="http://www.quantisan.com/short-usdcad-1-0654-stop-1-077/">My USDCAD short</a> got stopped out at breakeven this morning.  In fact, the pair is still struggling around the descending resistance line as shown in Figure 1.  It made a higher low so I won&#8217;t be surprised if it cracks higher.</p>
<div class="wp-caption aligncenter" style="width: 580px"><a href="http://cache.quantisan.com/images/2010/2010-08-31-USDCAD.png"><img class=" " src="http://cache.quantisan.com/images/2010/2010-08-31-USDCAD.png" alt="" width="570" /></a><p class="wp-caption-text">USDCAD, 4-hour</p></div>
<p style="text-align: left;">The reason why I took this trade was that the opportunity seemed too good to pass on <a href="http://www.quantisan.com/short-usdcad-1-0654-stop-1-077/">based on my analysis at the time</a>.  I always keep an eye on the market even when I&#8217;m not trading.  Although the basic setup remains intact, the opportunity isn&#8217;t so fantastic that I couldn&#8217;t say no anymore.</p>
<p style="text-align: left;">Anyway, back to staring at codes.</p>


<p>Related posts:<ol><li><a href='http://www.quantisan.com/short-usdcad-1-0654-stop-1-077/' rel='bookmark' title='Permanent Link: Short USDCAD @ 1.0654, Stop 1.077'>Short USDCAD @ 1.0654, Stop 1.077</a></li>
<li><a href='http://www.quantisan.com/paper-trade-stopped-usdcad-short-1-0540-for-131-pips/' rel='bookmark' title='Permanent Link: Paper trade: Stopped USDCAD short @ 1.0540 for +131 pips'>Paper trade: Stopped USDCAD short @ 1.0540 for +131 pips</a></li>
<li><a href='http://www.quantisan.com/paper-trade-stopped-out-of-usdcad-short-1-0640-for-67-pips-re-entering-1-0680/' rel='bookmark' title='Permanent Link: Paper trade: Stopped out of USDCAD short @ 1.0640 for -67 pips, re-entering @ 1.0680'>Paper trade: Stopped out of USDCAD short @ 1.0640 for -67 pips, re-entering @ 1.0680</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/5xz0XL4l4JqoZ9elbtOY6TJj8bg/0/da"><img src="http://feedads.g.doubleclick.net/~a/5xz0XL4l4JqoZ9elbtOY6TJj8bg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5xz0XL4l4JqoZ9elbtOY6TJj8bg/1/da"><img src="http://feedads.g.doubleclick.net/~a/5xz0XL4l4JqoZ9elbtOY6TJj8bg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Quantisan/~4/dXPfctvn-Y4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.quantisan.com/closed-usdcad-short-1-06525-breakeven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.quantisan.com/closed-usdcad-short-1-06525-breakeven/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.576 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-10 12:24:35 -->
