Quant Mashup - Alvarez Quant Trading
Missing the best or worst market days [Alvarez Quant Trading]
This morning I saw the chart on Ritholz.com of what happens when you miss the best X days of the market. I see a variation of this chart often and is used to argue why someone should not try and time the market. One concept I like to do is to invert. Meaning try the opposite idea and see what you
- 4 years ago, 28 Oct 2018, 08:50pm -
Backtesting a Dividend Strategy [Alvarez Quant Trading]
I was recently at a NWTTA presentation about the “S&P 500 Dividend Aristocrats” and how to trade these stocks. The strategy was part quantitative and part discretionary. It was popular talk with lots of good questions. People always seem interested in dividend stocks but for me they are just
- 4 years ago, 17 Oct 2018, 02:19pm -
StockCharts Technical Rank (SCTR) Rotation Strategy [Alvarez Quant Trading]
My post last week on the analysis of SCTR produced lots of emails and comments with great ideas. One idea that I liked was a simple rotation strategy using SCTR. I mentioned in the post that maybe using SCTR as ranking method would produce different results. Normally I don’t post this quickly but
- 4 years ago, 19 Sep 2018, 12:05pm -
StockCharts Technical Rank (SCTR) Indicator Analysis [Alvarez Quant Trading]
Overall the last few months, I’ve had several consulting client’s strategy use SCTR for either a ranking or a filter. I finally got curious about the predictive ability of SCTR. How good is? I could find no information on how each of the ranking buckets did X days later on StockCharts.com. Maybe
- 4 years ago, 12 Sep 2018, 11:06am -
Pre-inclusion Bias: How to create a false strategy [Alvarez Quant Trading]
In the previous post I described a simple rule to double the returns of a mean reversion strategy. In this post, I show how pre-inclusion bias can take a losing strategy and make it a winning one. Recently I had reader send me the rules for a stock trend following strategy. He knew these are the
- 4 years ago, 22 Aug 2018, 11:05pm -
RSI2 Strategy: Double returns with a simple rule change [Alvarez Quant Trading]
While playing around with a 2 period RSI (Relative Strength Index) mean reversion strategy, I came up with a very simple rule change with a much larger impact on the results than expected. I doubled the compounded annual growth rate and cut the maximum drawdown in half. That never happens. In my
- 4 years ago, 1 Aug 2018, 12:04pm -
Norgate Data Review [Alvarez Quant Trading]
I am frequently asked what data provider I use and recommend for stocks. I have been using Norgate Data for four years and recommend them to anyone looking for data. This review will focus on US Stocks and AmiBroker integration which is what I use daily. Norgate Data has data for the Australian and
- 4 years ago, 27 Jun 2018, 10:48pm -
RSI2 (Relative Strength Index) Analysis [Alvarez Quant Trading]
From my time with working with Larry Connors, I have become known for using the 2-Period RSI (RSI2) (Relative Strength Index) in my trading. I have written lots of blog posts that use it and I often use it in my personal strategies. One thing I like to do with indicators that I use frequently is a
- 4 years ago, 13 Jun 2018, 10:39pm -
Trading the Equity Curve – More Ideas [Alvarez Quant Trading]
A couple posts ago, I looked at Trading the Equity Curve and found interesting results but nothing that made me decide this works for me. Using the equity curve to decide when to stop trading a strategy just sounds like it should work. But for me it is always about testing. I cannot count how often
- 5 years ago, 24 May 2018, 09:51am -
Mean Reversion Entry Timing [Alvarez Quant Trading]
One of the first tests I did when I got AmiBroker twenty years ago was a mean reversion test. It was a classic set up, a stock in an uptrend, followed by a pullback. But the entry differed from what I do now. The entry waited for a confirmation of the trend back up. The trade would enter when the
- 5 years ago, 25 Apr 2018, 01:02pm -
Trading rules that keep you trading [Alvarez Quant Trading]
I have written the difficulty in trading and testing short strategies. I had stopped trading my short strategy because it was too hard to trade psychologically for me. About nine months ago, I revisited my short strategy to see how it had been doing since I stopped and of course it has been doing
- 5 years ago, 29 Mar 2018, 11:25am -
XIV Barbell Strategy [Alvarez Quant Trading]
Well that was fun! I have been telling my trading buddy and anyone else that would listen that I fully expected XIV to open at zero one day. Now I did not expect it to happen so soon or the way it did. I trade a strategy that can be long XIV or long VXX or in cash. Because of the very likely
- 5 years ago, 28 Feb 2018, 10:31pm -
Trading the Equity Curve [Alvarez Quant Trading]
A popular method for determining if a strategy should be kept trading is trading the equity curve. What this means we apply an indicator, say 200-day moving average, to the equity curve. When the equity curve falls below this value we stop trading. We then continue to paper trade the strategy until
- 5 years ago, 14 Feb 2018, 01:38pm -
Equity Curve Monte Carlo Analysis [Alvarez Quant Trading]
Imagine the following. You spent time developing a strategy with a compounded annual return of 24% and max drawdown of 18%. Profitable 10 of the last 11 years. An average 21 day rolling correlation with the SPY of .20. Passes your out-of-sample testing. Passes your parameter sensitivity testing.
- 5 years ago, 24 Jan 2018, 03:01pm -
How to turn a losing strategy to a winning strategy with commissions [Alvarez Quant Trading]
A mean reversion strategy I trade was developed with another researcher. This strategy enters on a further intraday weakness with a limit order and typically exits a few days later when the stock bounces. Recently this researcher sent me and email saying “Try the strategy as a day trade. Enter at
- 5 years ago, 10 Jan 2018, 11:15am -
Do you have a plan for your screw ups? [Alvarez Quant Trading]
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. The Nightly Ritual Each night for 250 days of the year, I do the following for my trading. Step 1: In the
- 5 years ago, 14 Dec 2017, 11:25am -
External Strategy Rule Evaluation. Too many rules? [Alvarez Quant Trading]
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
- 5 years ago, 6 Dec 2017, 01:28pm -
Weekly Mean Reversion Rotation Strategy on S&P500 Stocks [Alvarez Quant Trading]
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
- 5 years ago, 15 Nov 2017, 11:52am -
The ABCs of creating a mean reversion strategy – Part 2 [Alvarez Quant Trading]
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
- 5 years ago, 1 Nov 2017, 01:01pm -
The ABCs of creating a mean reversion strategy – Part 1 [Alvarez Quant Trading]
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.
- 5 years ago, 18 Oct 2017, 02:35pm -
Indicator Comparison: Ehler My Stochastic Indicator, RSI and ConnorsRSI [Alvarez Quant Trading]
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.
- 5 years ago, 4 Oct 2017, 07:42pm -
ETF Sector Trading: The effect of daily, weekly and monthly timeframes [Alvarez Quant Trading]
I recently gave a presentation on Sector trading using the 200-day moving average at the Northwest Traders and Technical Analysts. Some questions asked were: What if we only trade this monthly? What if we used weekly bars to trade only weekly? Wat if we used weekly bars to trade monthly? The reason
- 5 years ago, 20 Sep 2017, 01:50pm -
Broken Strategy or Market Change: Investigating Underperformance [Alvarez Quant Trading]
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
- 5 years ago, 7 Sep 2017, 12:11am -
Sector trading using the 200-day moving average – Part 2 [Alvarez Quant Trading]
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. SPY MA200 10 day Buy Rule: Buy SPY when it
- 5 years ago, 23 Aug 2017, 11:36pm -
Sector trading using the 200-day moving average [Alvarez Quant Trading]
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. Rules If the Select Sector SPDR ETF (XLY, XLP, XLF, XLE, XLV, XLI, XLB, XLK, XLU) is above its
- 5 years ago, 2 Aug 2017, 02:24pm -
Out-of-sample testing and luck [Alvarez Quant Trading]
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 in out-of-sample. How you split your in-sample(IS) and out-of-sample(OOS) can change results. The
- 5 years ago, 12 Jul 2017, 12:54pm -
In-Sample and Out-Of-Sample Testing [Alvarez Quant Trading]
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
- 5 years ago, 21 Jun 2017, 07:36pm -
Can A Simple Market Timing Indicator Be Beat? [Alvarez Quant Trading]
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
- 6 years ago, 31 May 2017, 06:30pm -
ConnorsRSI Strategy: Sensitivity Analysis [Alvarez Quant Trading]
In Simple ConnorsRSI Strategy on S&P500 Stocks I showed a ConnorsRSI strategy on S&P500 stocks. In ConnorsRSI Strategy: Optimization Selection, I narrowed down the optimization to three potential variations that one could consider trading. This post will explore Sensitivity Analysis (also
- 6 years ago, 4 May 2017, 04:52am -
ConnorsRSI Strategy: Optimization Selection [Alvarez Quant Trading]
In the previous post, Simple ConnorsRSI Strategy on S&P500 Stocks, I showed a simple strategy which I optimized which gave 1,300 variations. Today, I will cover various methods to choose a strategy to potentially trade. Goals The goals were to find a variation with over 20% CAR and Max Drawdown
- 6 years ago, 12 Apr 2017, 08:35pm -
Simple ConnorsRSI Strategy on S&P500 Stocks [Alvarez Quant Trading]
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 on the parameters to give us lots choices to be used in the next post. I the next post, I will show how I take the
- 6 years ago, 15 Mar 2017, 02:46pm -
Country ETF Rotation – Reader’s Suggestions [Alvarez Quant Trading]
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,
- 6 years ago, 22 Feb 2017, 12:00pm -
Country ETF Rotation [Alvarez Quant Trading]
My recent research has been focused on finding strategies that are not highly correlated with the S&P500 index. One of my most popular posts is ETF Sector Rotation. The idea for this post is to apply those concepts to a list of country ETFs. Would this produce decent returns that were not highly
- 6 years ago, 26 Jan 2017, 11:19am -
N-Day exits with Mean Reversion [Alvarez Quant Trading]
My last post on using PercentRank to measure mean reversion proved very popular. A reader looked at the trades and wondered if it would be best to exit after five days because the average trade with longer holds was a loser. I am surprised I have not covered this topic before. Background Early in
- 6 years ago, 4 Jan 2017, 08:29pm -
Using recent returns for Mean Reversion [Alvarez Quant Trading]
In most of my mean reversion posts, I use RSI(2) to determine if a stock has sold off. In this post, I will explore how to use a stock’s recent return to determine if it has sold off. This will be done in way to normalize the return between low and high volatile stocks. This basic strategy has
- 6 years ago, 7 Dec 2016, 06:38pm -
Is synthetic XIV/VXX data safe to use? [Alvarez Quant Trading]
I have done several posts about trading XIV & VXX. In these posts (here, here and here) I refer to using synthetic data before these ETFs started trading. I supported the use of the data due to the very high correlation of daily returns during the overlap period. With a correlation of .97, I
- 6 years ago, 16 Nov 2016, 06:38pm -
VXX & XIV Strategies [Alvarez Quant Trading]
My recent research has been on the volatility Exchange Traded Products. My focus has been on long trades using VXX and XIV. Although VXX has a very strong downtrend, I am not a fan of developing short strategies on it due to the huge upside risk. I wrote about XIV here and expressed some of the
- 6 years ago, 26 Oct 2016, 07:35pm -
Presenting in Dallas and Austin, Texas [Alvarez Quant Trading]
I will be in Texas next week giving presentations. Click the links below for more details. I hope to see some readers there. October 17, 2016 Austin Market Technicians Association For more information see https://www.mta.org/event-registration/austin-chapter-meeting-featuring-cesar-alvarez/ October
- 6 years ago, 10 Oct 2016, 03:06pm -
Ask Me Anything Video for October 5, 2016 [Alvarez Quant Trading]
In this short five minute video I will answer the following questions: Have you used HV10/HV100 ratio? Have you found any value in it? When trading multiple strategies, how do you decide what percentage to allocate to each. What do you think about asset allocation ETF strategies, like Ray Dalio’s
- 6 years ago, 5 Oct 2016, 02:04pm -
Taming High Return and High Risk [Alvarez Quant Trading]
I was at a recent talk of the Northwest Traders and Technical Analysts group where they presented a VXX strategy with some huge return and drawdown numbers. Trading this would be very difficult. This got me thinking. If I had a strategy like this, how could I tame the numbers? Through the years, I
- 6 years ago, 28 Sep 2016, 01:21pm -
Ask Me Anything Video [Alvarez Quant Trading]
In this short five minute video I will answer the following questions: I am interested in knowing a little bit more about your own trading. What types of strategies are you trading? Why do you not manage outside money? What are the trading books you recommend? Do you have a trading or AmiBroker or
- 6 years ago, 12 Sep 2016, 08:10pm -
Strategy Up/Down Capture [Alvarez Quant Trading]
A reader sent this interesting link about Up/Down Capture. The great part about this article it is something I have intuitively known about my trading strategies but never tried to quantify. This was the bump I needed to investigate this concept. When the SPY moves up on average how much does my
- 6 years ago, 7 Sep 2016, 12:19pm -
Cesar's Ask Me Anything Webinars [Alvarez Quant Trading]
To those on my new blog notification list, I sent out the opportunity to join me in a one hour webinar where people could ask me anything about trading. I had a ton of fun answering lots of great questions. See the bottom of the post for links to download the mp3 files of the webinars. Some
- 6 years ago, 25 Aug 2016, 03:41am -
Start Dates, Correlation and Random Strategy [Alvarez Quant Trading]
In my last post I showed research on how optimization results can be mean reverting. Sometimes, my research keeps getting side tracked as I think of random ideas to look at. In this post, we look at the random walk my research took starting from my mean reverting optimization research. I will show
- 6 years ago, 3 Aug 2016, 12:11pm -
Optimization Mean Reversion [Alvarez Quant Trading]
Often one runs a optimization of a testing idea, then using some set metrics from these results, one picks a variation to trade. What often comes as a surprise to people, and myself the first time I saw this, is that your optimization runs are often mean reverting. What do I mean by this? For
- 6 years ago, 13 Jul 2016, 12:04pm -
Mean Reversion and the Broken Rubber Band [Alvarez Quant Trading]
A common way to describe a mean reversion trade is a rubber band that stretches away and then snaps back. Something that Steve, my trading buddy, and I discuss when a trade keeps going against us is that the rubber band has broken. I have never tested that concept. Meaning after N day sell-off, are
- 6 years ago, 17 Jun 2016, 11:17am -
ConnorsRSI Analysis [Alvarez Quant Trading]
A couple posts ago, I did the RSI Analysis. This post will focus on ConnorsRSI which I created while working for Larry Connors. When creating the indicator, the focus was on short-term mean-reversion results. We will look at that here but also how does it handle longer-term holds. Since I did not
- 7 years ago, 25 May 2016, 12:51pm -
Making new equity highs. It happens less than you think [Alvarez Quant Trading]
A reader sent me a link to presentation, Robert Frey – 180 years of Market Drawdowns, about drawdowns and the time that a strategy is underwater. I highly suggest you watch it. I wanted to perform my own analysis on how often a buy and hold strategy on the S&P500 index is making new equity
- 7 years ago, 4 May 2016, 07:28pm -
Relative Strength Index (RSI) Analysis [Alvarez Quant Trading]
Recently I have been researching longer term hold strategies. I wondered which indicators by themselves would show an edge 3 to 6 months out. I am not looking to create a strategy from the indicator alone but want to know is there a statistical edge with it. Naturally, I started with my favorite
- 7 years ago, 13 Apr 2016, 01:31pm -
Adding Stops and Scaling Out to a Mean Reversion Strategy [Alvarez Quant Trading]
I came on an idea recently that I had tested. I have tested adding max loss stops to a mean reversion strategy, with no success. See this post for more on that. About eight years ago, I tested scaling out of trades. But this person claimed that adding the two together was how to improve a mean
- 7 years ago, 16 Mar 2016, 06:33pm -