Cesar Alvarez

Author Archives: Cesar Alvarez

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

December 11, 2020

Using Probability Cones to Test for Strategy Death

The most common question I get is how do you determine that a strategy is no longer working. It is also the question that I don’t have a good answer for. I have written several posts about this: Trading the Equity Curve, How to turn off a strategy using historical volatility, Broken Strategy or Market Change. During his How to detect a failing trading strategy presentation, Kevin Davey discusses how he uses probability cones to determine when to stop trading a strategy. I had not investigated this concept and was very intrigued.

Continue reading

Slippage and low liquidity stocks

Recently, I have been working on a strategy that trades stocks with low dollar turnover. The initial performance was attractive and I was liking the strategy. But there were two issues that I needed to deal with in the backtesting. How much slippage to add to these stocks. The strategy enters and exits on the open and while looking over the trade list, I noticed some trades entered at the low of the day and exited at the high of the day. From my trading, I knew this would not be a realistic price. Should these cases get extra slippage? What follows is how I try to account for these issues.

Continue reading

September 30, 2020

Using strength to exit a mean reversion trade

I had a long-time reader, Cristian Franchi, send me a mean-reversion strategy that he wanted me to test and write about.  What caught my attention was the rules differing from what I typically see and use. Different ways of measuring strength of a sell-off and volatility expansion. Along with a different type of exit being used on a mean reversion strategy. Not simply waiting for the bounce.

Continue reading