iBankCoin
Joined Nov 11, 2007
1,458 Blog Posts

Some Recent Power Dip Trades

The up-pointing arrows show the buys (all done on the open) while the down-pointing arrows show the sells (all done on the close).

pre

PartnerRe Ltd. [[PRE]] This was today’s Power Dip selection.

hafc

Hanmi Financial Corp [[HAFC]]

klic

Kulicke and Soffa Industries Inc. [[KLIC]]

aria

Ariad Pharmaceuticals, Inc. [[ARIA]]

Missed quite a bit on ARIA. That’s okay though. This momentum-driven market won’t last forever.

snwl

SonicWALL, Inc. [[SNWL]]

SNWL was another one that kept running after we sold it. I think the consistent momentum is confusing a lot of traders as they are selling too soon or missing out on the entire run. The pullbacks come, but over the last year, they come later than expected. Just as soon as everyone is accustomed to holding trades longer, look out.

tpx

Tempur-Pedic International Inc. [[TPX]]

If you believe you might benefit from disciplined buy and sell rules and would like to receive setups like these in both web-based and email-based formats, check out PDS trial. Its free and requires only an email address.

Comments »

Thursday’s Cup With Handle-Updated- EAT Breaks Out

[[EAT]] made a delicious looking break out today, after being selected last Thursday by the Cup-with-Handle screen. The original post follows the chart below which shows the breakout.

[[TCBI]] is not making the screen anymore, but it still looks ripe for a breakout.

eat-breaks-out

cwh-eat

Brinker International, Inc. [[EAT]]

The target price for this one is conservative. In backtesting, we would sell this position after a close over $18.33

I suspect that if this breaks out, $19.00-$20.00 would be a better target. Note the volume in January. This one might still have legs.

By the way, Texas Capital Bancshares, Inc. [[TCBI]] is still a valid C-w-H.

Comments »

Can’t Recreate Results from Fidelity Select System

Here are the posts on the Fidelity Select System.

Try as I might, I cannot replicate the results posted in Part 4. When I run the test now, I get a compound annual rate of ~11% with a final equity of ~$1.2 million. The new equity curve is very similar to the one in Part 4, but with a difference  from previous tests in final equity of over $2 million, there is definitely something strange happening.

Keep in mind, as I have tried to replicate the results, I have consulted the code and settings for all of the previous tests. Every test I run saves the code and the settings for future reference. I am 100% positive that I am using the same code and the same settings.

The only thing that has changed is that I overwrote the original data from yahoo with the same data from yahoo. There was no particular reason for doing this except that I was just playing around with the AmiQuote data downloader. Theoretically, the data should not be different, just overwritten.

At this point, my primary suspicion is that a change was made to the yahoo data, but it is entirely possible that I have changed something and have not discovered it yet.

If anyone else out there has been playing around with this system and using yahoo data, I would be interested in hearing if you have noticed anything similar.

Comments »

The Cup With Handle Screen Returns

Look, I know, its been a long time since I’ve posted any Cup with Handles. Truth be told, if I’m not trading a particular system, I tend not to update the signals daily, and then I forget about it and don’t post about it for about 4 months or so…So that is what has happened with the CwH screen. I will, from here on out, endeavor to run this screen nightly, and post any picks from the screen.

The CwH screen has produced picks which have backtested extraordinarily well since early 2009. But then again, the market has pretty much moved straight up over this period. We would expect breakouts to work well, and they have. But no matter how I run this system, it handily beats a buy and hold of [[SPY]] , over the same time period.

Tonight’s pick is Texas Capital Bancshares, Inc. [[TCBI]]

cwh-tcbi

In backtesting, a sell signal is generated on a close above the left cup, which for TCBI equals $17.98

Keep in mind, you might hold this pick for a LONG time waiting for the left cup sell target to be hit. And that is what the problem usually is when trading breakouts: they work very well until the market hits a downtrend, and they tend to fail, miserably. Perhaps this could be mitigated with a moving average filter. Who knows… I will have to tinker with this more in the near future.

Comments »

ETF Rotational System V1.0, Part 4 – Updated

Part 1

Part 2

Part 3

In Part 3, we examined the effect of weighting two different RSI lengths, and using those weights to rank ETFs. After backtesting, the resulting statistics and equity curve appeared to be curve fit, and I acknowledged that the weights chosen were optimal. I ended part 3 by noting that the next step is to test a moving average filter vs. using short side ETFs. We will examine those two factors in this installment.

First, a note about the ETF portfolio. I began tweaking the portfolio a bit based on the recommendations made by a reader in the comments section here. I think his recommendations are important because the portfolio has some redundancies. The redundancies will mean that it is possible to be over-weighted in certain sectors or countries. For example, if the system chose [[EWZ]] and [[ILF]] , it would have 50% of its capital invested in highly correlated ETFs. For this reason, I believe it is necessary to weed out highly correlated ETFs. I also propose removing [[USO]] and [[UNG]] due to the contract rollover shenanigans.

In terms of adding ETFs, there are more that could be added to give broader exposure.

The point of this discussion is that the portfolio is almost as important as the factors of the system itself. After making changes to the portfolio, the results dropped fairly significantly from what was reported in Part 3 (another sign of curve-fitting?) I decided for purposes of continuity and consistency to use the same portfolio in Part 4 as in Part 3 so that we could have an apple to apples comparison of the moving average filter, but I think we should spend more time refining the portfolio. My gut feeling is that it is too large, and because of that, it makes it more difficult to isolate what effects (if any) the factors have on performance.

On to the tests…

Lets Remove the Short ETFs

I removed [[SH]] , [[PSQ]] , [[DOG]] , and [[RWM]] and then ran the test with the system using the same parameters as in Part 3. Here are the results:

etf-rotation-stats-no-short-etfs

etf-rotational-ec-no-short-etfs

The Annual Return % drops over 3% and the Max System % Drawdown increases ~2% when the short ETFs are removed.

Add Short ETFs Back to Portfolio and Add a Moving Average Filter

Now I will add the four short ETFs back to the portfolio and add a 200 day simple moving average filter. The filter will not let the system rotate into new positions if the SPX has closed beneath its 200 day SMA. As soon as the SPX closes above the 200 day SMA, the system will jump in long on the next open.

Note that the 200 day moving average filter does not allow the system to rotate into the short ETFs, so even with the ETFs added, we  have an apples to apples comparison of the system without the short ETFs versus the system with a moving average filter.

The Results:

etf-rotational-system-200dsma-filter-stats

etf-rotational-system-equity-curve-200dsma-filter

Summary

We now see that the performance without short ETFs is very similar to the performance with a 200 day SMA filter, in terms of the compound annual return. However, the max system drawdown is ~7% less when using the moving average filter. That is a ~20% improvement in the drawdown.

The moving average filter also improves other metrics, such as average trade, profit factor, and the Sharpe ratio. And since the filter means the system makes fewer trades, if commissions were added, there would be even greater improvement shown in the moving average filter results vs. no filter and no short ETFs.

A Few More Thoughts…

I ran an optimization to determine the best moving average length for the filter. I graphed two metrics, Compound Annual Return (CAR) and CAR/Maximum System Drawdown (CAR/MDD). The results show that there are many moving average filter lengths that will work, but it appears that lengths greater than 170 bars give fairly smooth results with lengths greater than 220 resulting in improved performance.

graph-of-various-moving-average-lengths

What Have We Learned?

I’m not sure. There are still a lot of variables here, with portfolio composition being a formidable one. I would say that short ETFs helped results more than I thought they would, and I am always surprised how well a simple moving average filter performs. I have learned that RSI seems to be sub-par as a ranking tool, compared to Rate of Change. More than anything, these tests have created more ideas for future tests. Ultimately, I hope to be able to synthesize all that I have learned into a robust rotational system. I do not believe that this system is a good final product and therefore I will take the good, leave the not-so-good, and push forward.

Where Do We Go From Here?

Long story short, I’m done messing around with RSI as it was used in the tests as a tool for ranking ETFs in a rotational system. I’m positive that Rate of Change is a better ranking tool. However, I am interested in using RSI in a different way, based on the comments left by Ruschem:

I was thinking about your approach to ranking ETFs. While I like RSI based system (RSI is one of my favorite indicators) there are a few points that I am not quite sure about. First, using blended RSI(65) and RSI (30) is somewhat redundant because the entire RSI (30) set of data is already included in RSI(65). Adding RSI(30) to RSI(65) simply adds some more weight to the last 30 days regardless in what proportion the two are used. Instead, I suggest using three independent periods. For example, X*RSI(21) today + Y*RSI(21) 22 days ago + Z*RSI(21) 43 days ago. In all, this system will use 65 days worth of data but split into three independent (or almost independent because of the way RSI is calculated) periods. What it does, it measures the consistency of outperformance or underperformance in each of the last three months. I did RSI ranking both ways (yours and mine). Most numbers were very close but there were notable differences as well. I didn’t run the backtest because I don’t have good backtesting software and lack skills to do it in excel.

Another problem that I see with RSI ranking is that it’s a measure of the internal strength and it really doesn’t tell the whole story. As a result, an ETF may have a high RSI rank but only a very low absolute return. This is why it seems that some kind of a combined RSI and ROC ranking should do the best. Ideally, I would filter ETF pool using RSI ranking (maybe 8 best) and buy four with the highest ROC out of these eight. What do you think?”

I will begin playing around with Ruschem’s idea, to see if it has any merit.

I also want to dig deeper in the following areas:

1. Portfolio construction

2. Shorter minimum hold times

3. Better weighting and smoothing of the ranking metric

Thanks for reading and contributing ideas.

Comments »

Climategate Saga: Responses to the UK Parliamentary Inquiry

I want to break away from my normal system trading blogging to report on something that I find fascinating and disturbing as I believe that the Climategate saga will likely shape how the world views science, scientists, and politics, for decades to come.

I am in no way an expert on the research concerning climate science, nor am I an expert on the recent inquiries into the possible problems with climate science as a response to the information within the hacked emails.

And I will not offer my opinion on anthropogenic global warming (AGW).

—————————————————————————————————–

The UK has begun an inquiry into Climategate, and the responses submitted to the UK Parliamentary Inquiry are very, very good reading. I think their importance to the debate cannot be overstated.

The committee has accepted submissions, as best as I can tell, from anyone who could meet the deadline. These submissions constitute a general summary of the arguments against AGW, as well as a summary of the alleged fraudulent activities of a group of climate scientists.

It remains to be seen whether the UK Parliamentary Inquiry will investigate these responses without bias and use them to assist in their final judgment, but one must suppose that they will have some impact.

This link is to the UK Science and Technology Committee announcement of the “…inquiry into the unauthorised publication of data, emails and documents relating to the work of the Climatic Research Unit (CRU) at the University of East Anglia (UEA).”

This link is to the responses submitted to the Science and Technology Committee. There are 54 responses submitted there. I highly recommend picking some of them to read, especially the ones from individual citizen scientists.

My favorite submission, simply because it is easy for a layman to read and understand is this response from Stephen McIntyre. However, I prefer this .pdf document which is the same response but with the graphs. The graphs are extremely helpful and I think even the most un-scientific of minds will clearly see the problems Mr. McIntyre presents. There are of course many other submissions from which to choose from various individuals and institutions.

As the American Main-Stream Media has purposefully chosen not to cover this profoundly important story, I highly encourage anyone even remotely interested in Climategate to read some of these submissions, and I implore everyone to watch for the results of the inquiry in the future. The results of the UK inquiry will likely influence future US government policies concerning climate change and AGW, and this means that all of us should be keenly aware of their implications.

Comments »

Can’t Bring Myself To Buy This Strength

Still sitting here, waiting for a pullback to get long. I increased my short exposure slightly yesterday.

At some point, I’m going to have to pull the trigger and either hedge these shorts with some longs, or just cover them. If I were going to get long, I’d be looking at the following stocks:

ivan

[[IVAN]]

alksAlkermes, Inc. [[ALKS]]

exxid [[EXXID]]

Comments »