We collect cookies to improve your browsing experience. By using our site, you agree to ourPrivacy Policy andTerms of Service.

This week we are looking at an investment strategy that beat the S&P 500 (SPX) return over a 10 year period. Using a breadth measure for our primary signal generator, we turned a $100,000 starting capital account into $321,285, returning 221.29% after fees against a 213.34% raw return for the index price benchmark. The idea is to buy when participation across the market starts to improve, then wait for a modest rise in the index taking profits at a fixed target, but as with a buy & hold approach there is no stop loss or time limit.
The indicator behind this strategy is the Bullish Percent Index (BPI), which tracks the number of stocks within the S&P 500 above a set moving average. For each constituent stock, we compare its adjusted closing price with its own simple moving average over the latest 200 trading sessions. In the code below we first bring up a list of stocks within SPX, then bulk download 10 years of daily timeframe OHLC data for each, using the yFinance library download method.
Next we isolate just the Close prices, create our 200 day moving averages, and add a check to make sure the data returned is valid. We then calculate which are above and which are below their average each day. Finally we divide the number of stocks above their average by the total number above or below it, so if 300 stocks are above and 200 are below, BPI is 60% (stored as a fraction - 0.6 - in a column called 'Net').
# Pull a list of tickers in the S&P500url = "https://raw.githubusercontent.com/datasets/s-and-p-500-companies/main/data/constituents.csv"
sp500 = pd.read_csv(url)tickers = sp500["Symbol"].tolist()tickers = [t.replace(".", "-") for t in tickers]
# Download data for each ticker (Yfinance)data = yf.download( tickers, period="10y", interval="1d", group_by="ticker", progress=False,)
# Calculate each stock's 200 session simple moving average.close = data.xs("Close", axis=1, level=1)ma200 = close.rolling(200).mean()valid = close.notna() & ma200.notna()
# Count stocks strictly above or below their own average.above = ((close > ma200) & valid).sum(axis=1)below = ((close < ma200) & valid).sum(axis=1)
# Store BPI as a fraction: 0.60 represents 60%.net = (above / (above + below)).dropna()data = net.to_frame(name="Net")
We then apply a stochastic oscillator to BPI (the values in our Net column). Over the latest 14 sessions, we find its highest and lowest readings and then calculate 'k' which measures where today's BPI sits inside that range. For example, a BPI of 60%, within a recent range of 40% to 80%, gives a raw stochastic reading of 50. We smooth that raw reading with a three session simple average to obtain Full_K, then take a further three session average of Full_K to obtain the Full_D (signal) line.
# Apply the stochastic to BPI, not to the index price.hi = data.Net.rolling(14).max()lo = data.Net.rolling(14).min()k = 100 * (data.Net - lo) / (hi - lo)
# Smooth once for Full_K, then again for the Full_D signal line.data["Full_K"] = k.rolling(3).mean()data["Full_D"] = data.Full_K.rolling(3).mean()
BPI tells us how many stocks are above their long term average; the stochastic tells us where that participation sits within its recent range. A high stochastic reading can therefore occur while fewer than half of the stocks are above their averages, provided BPI is near the top of a low recent range. The stochastic in oversold or overbought position is an indication the recent trend in breadth may be about to change.
Looking beneath the index
So with the technical stuff out of the way, we can move on to signal generation. In the chart below we have the SPX daily chart, with 2 indicators below it. The first is our raw Bullish Percent Index, and then we have our Bullish Percent Stochastic below that for comparison. We use two kinds of signal. One responds to a major improvement in breadth itself (BPI), while the other looks for its short term breadth momentum to turn upwards (BPI Stochastic).
The BPI signal takes priority if both appear together, and once we hold a position, further entry signals are ignored until it closes. The breadth signal is simply BPI closing back above the 0.5 level (yesterday's value < 0.5; today's value > 0.5) and is marked on the chart with a white arrow. The short term breadth momentum signal comes from a bullish cross of the Full\_K line above the Full\_D line (yesterday K < D; today K > D) and is marked on the chart with a gold dot.

Strategy Parameters & Results
We assess signals after the daily close and buy at the following session’s open. Each trade allocates 99% of available account equity, allowing for entry fees. The breadth recovery entry sets a target 2% above the signal day’s close; the breadth momentum entry sets it 3% above that close. We assumed a fee of 0.05% on entry and 0.05% on exit, equating to 0.1% for a completed trade. There is no separate allowance for spreads, slippage beyond opening gaps, product costs or interest on cash. The benchmark index return comparison excludes dividends and transaction fees. Strategy stats are as follows:

The strategy finished $7,946 ahead of the benchmark’s $313,340, beating the benchmark raw return by 7.95%. It was invested for 87.38% of the time versus 100% for buy & hold, taking profits and waiting for another opportunity, rather than a strategy that spent long stretches sheltered in cash. You'll note from the comparison return chart below that it started to outperform during one of the larger correction periods, but being an investment strategy it did not do much to avoid drawdown periods.

The strategy’s deepest daily closing drawdown was 33.43%, against 33.92% for the benchmark. That is only 0.49 percentage points less. The account’s worst and quickest drawdown period occurred on 23 March 2020 during the covid crash.

Completed trades generated $224,236 in net profit after $7,855 in commissions. Including the final position’s entry charge, total fees paid were $8,015. The original $100,000 plus closed trade profit, less the open position’s $2,951 loss after its entry fee, reconciles to the $321,285 final account value. The closed trade profit line looks great but you should note that it never falls because being an investment strategy it is doing very little for risk management. During the long wait for a target, this line stays flat while the account can lose a substantial part of its value.

What we take from the test
We think the useful finding is that a small fixed target can produce an impressive closed trade record while leaving most of the market’s downside intact. Time in the market was reduced, but drawdown periods were not avoided. The strategy did finish ahead of the price benchmark after paying fees, but the lead was modest. All that being said the strategy itself merits further analysis, perhaps on a more volatile index, and with defined risk management parameters in place.
If you have any questions about the strategy or the results, please get in touch. We’re always happy to hear from you.

01-Dec-2026

30-Nov-2026

21-Nov-2026

14-Nov-2026

07-Nov-2026

04-Nov-2026

02-Nov-2026

01-Nov-2026

24-Oct-2026

17-Oct-2026

14-Oct-2026

10-Oct-2026

07-Oct-2026

03-Oct-2026

01-Oct-2026

30-Sept-2026

01-Sept-2026

21-Jun-2026

21-Jun-2026

14-Jun-2026

08-Jun-2026

01-Jun-2026

24-May-2026

17-May-2026

10-May-2026

03-May-2026

26-Apr-2026