Cesar Alvarez

Author Archives: Cesar Alvarez

January Effect on Stocks

A member of The Crew recently asked me about the January Effect and if had I done any research on it. I had not. I have tested the December effect, which is buying the worst stocks of the year on December 1st, Should You Buy the Best or Worst YTD Stocks.

From Investopedia, ‘The January Effect is a perceived seasonal increase in stock prices during the month of January. Analysts generally attribute this rally to an increase in buying, which follows the drop in price that typically happens in December when investors, engaging in tax-loss harvesting to offset realized capital gains, prompt a sell-off.” And then they state that the effect has largely disappeared. Time to find out.

Continue reading

November 10, 2021

Rolling Returns for the SP-500

I just got back from a long vacation in Iceland (highly recommend visiting). As usual, when people discover what I do, they ask me about the markets. Several people were worried that the markets are too high. Then I read that the 20-year return of the SPX from 2001 to 2020 was way below the average 20-year return. My thinking was how could the massive run since 2009 not have gotten us above the average. As usual, I had to test it.

Continue reading

Multi-day Limits for Mean Reversion

A reader recently suggested leaving the limit orders for a mean reversion trade on for a couple of days. Typically, these orders are good only for one day unless the stock sets up again. I did not think that this would help but as I always tell my consulting clients when they ask me if an idea will work or not, “I am always surprised but what works and what doesn’t, so I test everything and let the numbers decide.” My expectation would be higher exposure but will this lead to higher returns?

Continue reading

Mean Reversion Entry: At Open vs. Intraday Pullback vs Confirmation

For the mean reversion strategies that I have created in the past and are trading now, they typically enter at the next day’s open or wait for a further pullback intraday before entering. My current mean reversion strategy, which enters on a limit down, was doing great until a few months ago when the performance started to slip. Looking at the missed trades and the trades taken, it seemed like the best trades would have been entering at open or waiting for some intraday confirmation.

Waiting for a pullback to take out the previous day’s high was very popular when I started trading. But my testing then showed that it was better to wait for a further intraday pullback to enter. Have the markets changed such that waiting for confirmation is better?

Continue reading

Volume Positive Negative Indicator for Breakouts

Probably like a lot of you, I am an indicator junkie. Whenever I read about an indicator I have not tested and makes some sense, I got to try it out. Now, most of the time they turn out to not be useful for my strategies.

While reading the April 2021 Technical Analysis of Stocks & Commodities, I came across an article about Volume Positive Negative (VPN) Indicator for detecting high-volume breakouts. As I have written before, I rarely use volume in my strategies because I can never get it to work. Here was an indicator using volume, not a chance I would not test this.

Continue reading

Different ranking methods for a monthly S&P500 Stock Rotation Strategy

Recently for my own trading, I have been researching rotational strategies on both the weekly and monthly timeframes. The most common indicator that I use for ranking stocks is Rate of Change (ROC) of the closing price. I read about using Rate of Change on the EMA to rank stocks. I liked a small twist on the idea and wanted to know how it compared to what I am using.

Then this led me down another path of trying other ranking methods with an interesting result using historical volatility (HV) that I did not expect.

Continue reading

Adding candlesticks to mean reversion setup

My preferred chart style is a candlestick chart but I have never investigated candlestick formations to see if they can help provide an edge in my trading. I recently ran into this blog post, Do Candlesticks Work? A Quantitative Test Of 23 Candlestick Formations, where he did his own investigation. Even better he shared the code for the formations in AmiBroker which would make it a lot easier. You can get my version of the code below.

Using the mean reversion strategy from my previous post, I wanted to know if any of the candlestick formations could improve the results.

Continue reading

Avoiding Gap Trades

Should you avoid trades that have recently gapped? What if you are trading a mean reversion strategy and a stock has recently had a large gap? Is that a good trade to take? Avoid? Does it depend on the direction of the gap? I did research on this about 15 years ago. Let’s see what the current research says.

Continue reading