Author Archives: Cesar Alvarez
Author Archives: Cesar Alvarez
You should have a plan for when you screw things up because I can guarantee it will happen. This is the screw up I did last night and how I handled it this morning. Enjoy this unplanned post.
Each night for 250 days of the year, I do the following for my trading.
Step 1: In the early evening, log into InteractiveBrokers, get the executions for the day, update my current positions and P&L spreadsheet. This is all done with a push of a couple of buttons. Last, push button in Excel that starts code that waits for data to be updated for the day and then runs my scans in AmiBroker and imports results into Excel. Time to do 2 minutes
A common question I get is where do I find all my research ideas. My main source is Quantocracy. He does a great job of curating posts because the work is manually done. Then there the Better System Trader and Trend Following Radio podcasts. Usually from these sources I get a nugget of an idea to research or a simple strategy. Sometimes the post/podcast will recommend a book.
From one of these sources came the recommendation of the book “Trade Like A Stock Market Wizard” by Mark Minervini. Fortunately for me, my local library carried it. The strategy he covers in the book is a mixed of fundamentals, chart reading and technical analysis. Not something I would normally care about. I really enjoyed the chapters on risk management. In one chapter, he has very specific technical rules that all stocks must follow. On seeing this, I wondered could these rules be a basis for a trend following stock strategy? My second thought was, there are lots of rules there. Are all the rules necessary? The latter question is what I will focus on this post.
A reader emailed me about testing a weekly mean reversion rotation strategy on S&P500 stocks. My first thought was, why had I not done this type of test before? The very first strategy that I worked on with Larry Connors was this type of strategy. The strategy I will be testing today is a simpler version and different universe but how well will it hold up?
Testing period is from 1/1/2007 to 10/31/2017.
Each weekend, take all the stocks that have setup and then rank using one of the mean reversion methods below. Buy top 5 that are most sold off. Hold 1 week and sell. Then buy the ones that are now the most sold off
This post is the continuation of the steps for creating a mean reversion strategy from the first part of The ABCs of creating a mean reversion strategy – Part 1. You can also listen to part 2 of my interview on Better System Trader here.
A quick recap of the topics covered in part 1. I covered trading universe, indicators to measure daily mean reversion, combining multiple mean reversion indicators, and last bar mean reversion.
I was recently interviewed on Better System Trader, click here for part one of the interview, about the steps for creating a stock mean reversion strategy. I will be covering and expanding on the topics from the interview. These steps, for the most part, would apply to any strategy one is creating. The focus will be a long stock mean reversion strategy using daily bars.
Like all traders, I am always on the lookout for any new indicators better than the ones I am using. I have been using and promoting RSI2 since 2004 for mean reversion trading. I created the ConnorsRSI in 2012. Am I married to these indicators? No. If I find something ‘better’ I will drop them. I came across this article Battle of the oscillators, I had to try it out.
One thing to understand, is that each situation is different. An indicator that works great on ETFs may work not as well on futures. Also, each person has a different metric on what is ‘better.’
The reason for these questions was to reduce the frequency of having to check signals and the total number of trades. My first response was that the results would probably be a little lower and the trade count also would be lower. But that was just a guess. I have been doing this long enough to know that I wrong 40% of the time. Curiosity got the better of me and I tested it out.
I recently had someone email me about the performance of a strategy I created back in late 2005/early 2006 and traded for a few years. I remember the strategy being a daily mean reversion set up with an intraday pullback entry. I figured it probably had not done well over the last decade. I stopped trading in the middle of 2008 because I did not like how it was behaving. In the backtest it did well in bear markets but was not doing so in the middle of 2008.
I ran the strategy from 2007, using the rules as they were published and was pleasantly surprised by the results. A CAR of 25%. Overall not too bad. Wish I had still been trading it. This is an eleven year out of sample test.
Several readers asked for additional tests to be done on the strategy on Sector trading using the 200-day moving average. We will be testing allocated 11% per ETF instead of 10%, using asymmetric number of days and adding IEF to the SPY MA200 10 day test.
A user commented on ETF Sector Rotation post about a simple idea for trading the sector ETFs, which I can’t believe I have never tried. I like keeping things simple just like my Brazilian Jiu-Jitsu game.