Cesar Alvarez

Author Archives: Cesar Alvarez

July 12, 2017

Out-of-sample testing and luck

Continuing from the last post, I will show how using different definitions of passing our out-of-sample test can change our results. How luck can play a role if you use only one strategy to test out-of-sample. How you split your in-sample(IS) and out-of-sample(OOS) can change results.

Continue reading

June 21, 2017

In-Sample and Out-Of-Sample Testing

I am frequently asked if I do out-of-sample testing. The short answer is not always and when I do, it is not how most people do the test. There are lots of considerations and pitfalls to avoid when doing out-of-sample testing. Out-of-sample testing is not the panacea it is made out to be. There are lots of grey areas which I will discuss below.

Continue reading

May 31, 2017

Can A Simple Market Timing Indicator Be Beat?

As long time readers of my blog know, I often use a market timing indicator in my strategies. My favorite one, and a simple one, is using the 200 day moving average on either the SPY or S&P 500 Index. I recently ran into these posts, Using Market Breadth To Gauge Market Health (Part 5) and Matt’s Breadth Indicator. Matt’s Breadth Indicator (MBI) intrigued me because I had not seen something like this and conceptually it is simple. I also liked that it was not “easy” to test or optimize on. Therefore hopefully not many people would be using this indicator and I could potentially find better values.

Continue reading

March 27, 2017

CORRECTION: Simple ConnorsRSI Strategy

While doing the research for the next article based on Simple ConnorsRSI Strategy on S&P500 Stocks, I discovered that I had not tested what I wanted. Unfortunately errors are made while doing research and my goal is to catch them before publishing them. I did not in this case. Fortunately the results did not significantly change. The top CAR went from 27.32 to 26.63. As usual the error made the numbers comes down. Why is it that it never happens that they go up? See the post for the corrected numbers. I have also uploaded a new corrected spreadsheet.

Good Quant Trading,

 

Simple ConnorsRSI Strategy on S&P500 Stocks

A frequently asked question is how I pick which variation from an optimization run to trade.  This post will cover a ConnorsRSI strategy on S&P500 stocks. We will use a wide range of parameters to give us lots of choices to be used in the next post. In that next post, I will show how I take the results and narrow them down to one potential variation to trade. And then the final post, I will cover parameter sensitivity to help determine if the results are likely overfitted or not.

3/27/2017 CORRECTION: When I originally posted this, the results shown in the tables were not for the rules shown below. The table results are now matching the rules as below. The spreadsheet also has the corrected results.

Continue reading

February 22, 2017

Country ETF Rotation – Reader’s Suggestions

My last post on Country ETF Rotation generated several ideas of what to test to improve the results. See the original post for the list ETFs being traded. One important test I left out from the original post was a baseline case. An idea applied to all the tests was trading more ETFS. For all tests, I will be showing results of trading (2,5,8) ETFs in the spreadsheet. Testing is from 1/1/2007 to 12/31/2016.

Continue reading

1 8 9 10 11 12 19