When SPY/S&P 500 Closes In the Bottom of Today’s Range (IBS)

Last Updated on August 26, 2021 by Oddmund Groette

One of my favorite “formulas” to look at in mean reverting instruments is this formula:


The formula is called The Internal Bar Strength Indicator (IBS).

This simple formula increases the odds a lot, in my experience, for mean-revertive assets like stocks and stock indices.

Here is an example: Enter at close if the above formula is less than 0.5:

The blue line is the accumulated return in percent buying every close and holding until tomorrow’s close. The pink line is buying every close and holding until tomorrow’s close if the formula is below 0.5. The latter is a lot better, and certainly in bear markets. The period covered is from 1. January 2010 until July 2012. Neither slippage nor commission is considered.

If the daily range ends below 0.33, we get this chart:

The number of trades is reduced to 175 (from 640 if buy every close) and the drawdown is also reduced a lot.

What happens if we include a moving average? Let’s buy at the close if yesterday’s close was under the 10-day moving average and the formula was below 0.5:


The number of fills is 145 trades. In total that gives a 37% return, an average of 0.25% per trade! That is more than enough to offset slippage and commission. SPY can be bought as an opening order and an exit on market on close.

Testing further back it seems to hold up pretty well. Testing back to 1.1.2005 until October 2012, there are only 24 losing months (of 93 months). The average annual return is a respectable 10.6%.

Worth noting is that all strategies mentioned here come from CLOSE to CLOSE. OPEN to CLOSE does not work.


If you would like to have the code for this strategy plus 70+ other free trading strategies published on this website, please click on this link:

For more trading strategies, please click here:


Disclosure: We are not financial advisors. Please do your own due diligence and investment research or consult a financial professional. All articles are our opinions – they are not suggestions to buy or sell any securities.