Stocks. Options. Futures.
The Setup Lab · Test 13 · S&P 500

Buying the S&P 500 when the Stochastic leaves oversold

3.9%Per year
−54.5%Max drawdown
63.0%Win rate
216Trades
Slow Stochastic back above 20 on S&P 500, 1980–2026 · buy-and-hold over the same days: 9.4% a year, max drawdown −56.8%

The Stochastic Oscillator is George Lane’s indicator from the late 1950s. It asks one question: where did today’s close land inside the range of the last 14 days? 0 is the lowest low of those days, 100 the highest high. The Slow version, the one most charting sites show, smooths that reading over three days. Under 20 counts as oversold, over 80 as overbought.

The textbook trade is to buy when it climbs back above 20 and sell when it drops back under 80. I tested exactly that on the S&P 500 since 1980, long only: 216 closed trades.

The rules

  • Buy when the Slow Stochastic (14, 3) crosses back above 20: the S&P 500 is climbing off the bottom of its 14-day range.
  • Sell when it crosses back below 80, after the index has been near the top of its range.
  • Daily high, low and close from January 1980. Long only; in cash between trades.

Market: S&P 500 index (^GSPC), price only, dividends not included.

The result

1×2×5×10×20×50× 1990200020102020
Slow Stochastic back above 20 test Buy-and-hold Growth of 1, log scale. Jan 1980 – Nov 2026.
Slow Stochastic back above 20Buy-and-hold
Annual return3.91%9.42%
Total return505%6709%
Max drawdown−54.5%−56.8%
Worst fall, from – toSep 2000 – Mar 2009Oct 2007 – Mar 2009
Time in the market39%100%
TradesValue
Closed trades216 (+1 open)
Winners136 (63.0%)
Average winner+3.23%
Average loser−2.87%
Win/loss ratio1.13
Profit factor1.92
Best / worst trade+15.8% / −25.8%
Average holding time22 sessions

My read

On the scoreboard most traders look at first, it did well: 63% of trades won, the median trade made 1.10%, and the profit factor was 1.92. A trade lasted about 22 trading days on average.

It still made 3.91% a year, less than half of the 9.42% a year for holding the index. It was in the market only 39% of the days, and in a market that rises most years, sitting out costs money. And sitting out did not protect it: its worst fall was 54%, from Sep 2000 to Mar 2009, against 57% for holding.

One trade shows why. It bought on Sep 19, 2008, as the 2008 crash was getting going, and the rule had no way out until the indicator had been back above 80. That took until Nov 7, 2008, and the trade lost 25.8%. No other trade lost even 15%. My RSI under 30 test on Bitcoin had the same problem: an oversold buy signal with an exit that only comes after a rally.

My read: the Stochastic tells you where the close sits in a short range, and that is useful context on a chart. As a stand-alone rule it buys dips with no plan for the dip that keeps going. If I used it, the stop would come from the chart, as I explain in my stop-loss post, not from the oscillator.

Every trade

Open at the end of the data: bought Oct 28, 2026 at 7,744, −7.0% at the last close (Nov 24, 2026). Not counted in the trade statistics.

216 closed trades, newest first
BoughtPriceSoldPriceResult
2026-08-287,7122026-09-257,743+0.4%
2026-07-297,3162026-08-207,641+4.4%
2026-03-266,4772026-05-207,433+14.8%
2025-12-226,8782026-01-026,858−0.3%
2025-11-256,7662025-12-166,800+0.5%
2025-03-055,8432025-05-235,803−0.7%
2024-12-246,0402025-01-306,071+0.5%
2024-11-065,9292024-11-185,894−0.6%
2024-09-115,5542024-10-035,700+2.6%
2024-07-315,5222024-09-045,520−0.0%
2024-04-245,0722024-05-285,306+4.6%
2024-01-094,7572024-01-174,739−0.4%
2023-11-024,3182023-12-074,586+6.2%
2023-10-094,3362023-10-164,374+0.9%
2023-08-094,4682023-09-074,451−0.4%
2023-03-064,0482023-04-244,137+2.2%
2022-12-134,0202023-01-203,973−1.2%
2022-08-264,0582022-11-033,720−8.3%
2022-06-243,9122022-07-274,024+2.9%
2022-04-214,3942022-06-103,901−11.2%
2022-02-284,3742022-04-064,481+2.5%
2022-01-274,3272022-02-144,402+1.7%
2021-12-074,6872021-12-174,621−1.4%
2021-09-164,4742021-11-114,649+3.9%
2020-11-043,4432020-11-123,537+2.7%
2020-09-163,3852020-10-193,427+1.2%
2020-03-033,0032020-04-232,798−6.8%
2019-10-072,9392019-11-223,110+5.8%
2019-08-082,9382019-09-242,967+1.0%
2019-06-062,8432019-06-272,925+2.9%
2018-12-132,6512019-01-302,681+1.2%
2018-11-292,7382018-12-062,696−1.5%
2018-10-172,8092018-11-132,722−3.1%
2018-07-032,7132018-07-312,816+3.8%
2018-04-042,6452018-04-242,635−0.4%
2018-02-082,5812018-03-022,691+4.3%
2017-08-152,4652017-09-072,465+0.0%
2017-03-282,3592017-05-152,402+1.9%
2017-01-042,2712017-01-112,275+0.2%
2016-11-082,1402016-12-022,192+2.4%
2016-06-302,0992016-08-032,164+3.1%
2016-05-112,0642016-06-142,075+0.5%
2016-02-161,8962016-03-292,055+8.4%
2016-01-251,8772016-02-041,915+2.0%
2015-12-162,0732016-01-042,013−2.9%
2015-11-182,0842015-12-042,092+0.4%
2015-10-021,9512015-11-102,082+6.7%
2015-08-281,9892015-09-211,967−1.1%
2015-07-062,0692015-07-242,080+0.5%
2015-06-112,1092015-06-262,101−0.3%
2015-03-172,0742015-03-262,056−0.9%
2015-01-212,0322015-01-282,002−1.5%
2014-12-192,0712015-01-052,021−2.4%
2014-09-291,9782014-12-022,067+4.5%
2014-08-121,9342014-09-101,996+3.2%
2014-04-171,8652014-05-071,878+0.7%
2014-02-101,8002014-03-131,846+2.6%
2013-12-181,8112014-01-071,838+1.5%
2013-10-111,7032013-11-081,771+4.0%
2013-08-261,6572013-09-251,693+2.2%
2013-06-101,6432013-07-311,686+2.6%
2012-10-171,4612012-12-141,414−3.2%
2012-05-111,3532012-06-251,314−2.9%
2012-04-131,3702012-05-041,369−0.1%
2011-12-011,2452011-12-131,226−1.5%
2011-10-061,1652011-11-021,238+6.3%
2011-08-121,1792011-09-061,165−1.2%
2011-05-191,3442011-07-131,318−1.9%
2011-03-161,2572011-04-131,314+4.6%
2010-08-181,0942010-09-241,149+5.0%
2010-07-081,0702010-07-201,083+1.2%
2010-05-261,0682010-06-231,092+2.3%
2010-02-031,0972010-03-291,173+6.9%
2009-11-031,0452009-11-241,106+5.8%
2009-10-071,0582009-10-261,067+0.9%
2009-06-269192009-08-121,006+9.5%
2009-01-268372009-04-01811−3.0%
2008-11-258572008-12-15869+1.3%
2008-09-191,2552008-11-07931−25.8%
2008-05-301,4002008-08-141,293−7.7%
2008-03-061,3042008-03-311,323+1.4%
2007-12-211,4842008-03-031,331−10.3%
2007-10-251,5142007-12-131,488−1.7%
2007-08-081,4972007-09-101,452−3.1%
2007-03-091,4032007-03-301,421+1.3%
2006-07-201,2492006-08-091,266+1.3%
2006-05-301,2602006-07-101,267+0.6%
2006-04-191,3102006-04-251,302−0.6%
2006-02-101,2672006-03-021,289+1.7%
2006-01-041,2732006-01-191,285+0.9%
2005-09-271,2162005-12-011,265+4.0%
2005-09-011,2222005-09-151,228+0.5%
2005-06-301,1912005-08-021,244+4.4%
2005-04-011,1732005-05-131,154−1.6%
2005-01-191,1852005-02-221,184−0.0%
2004-10-281,1272004-11-241,182+4.8%
2004-09-301,1152004-10-111,124+0.9%
2004-07-291,1002004-09-231,108+0.7%
2004-05-061,1142004-06-151,132+1.6%
2004-03-191,1102004-04-151,129+1.7%
2003-11-251,0542003-12-081,069+1.5%
2003-10-021,0202003-10-231,034+1.3%
2003-08-119812003-08-26997+1.6%
2003-06-279762003-07-11998+2.2%
2003-02-188512003-03-27869+2.0%
2002-12-198842003-01-17902+2.0%
2002-09-109102002-11-01901−0.9%
2002-06-181,0372002-08-28918−11.5%
2002-04-011,1472002-05-221,086−5.3%
2002-01-281,1332002-03-221,149+1.4%
2001-12-191,1502002-01-031,165+1.4%
2001-08-271,1792001-10-191,073−9.0%
2001-06-051,2842001-08-071,204−6.2%
2001-02-271,2582001-04-261,235−1.9%
2000-12-271,3292001-02-051,354+1.9%
2000-12-041,3252000-12-151,312−1.0%
2000-09-251,4392000-11-101,366−5.1%
2000-08-031,4532000-08-311,518+4.5%
2000-05-151,4522000-06-131,469+1.2%
2000-02-011,4092000-03-311,499+6.3%
2000-01-101,4582000-01-211,441−1.1%
1999-10-211,2841999-12-011,398+8.9%
1999-09-291,2681999-10-141,283+1.2%
1999-08-131,3281999-08-311,320−0.5%
1999-06-071,3351999-06-251,315−1.4%
1999-02-121,2301999-03-241,269+3.1%
1998-10-129981998-11-131,126+12.8%
1998-07-291,1251998-09-291,049−6.8%
1997-12-309711998-01-08956−1.5%
1997-10-299191997-11-28955+3.9%
1997-08-209391997-09-26945+0.6%
1997-03-257891997-04-28773−2.0%
1996-12-207491997-01-02737−1.6%
1996-07-156301996-08-27666+5.8%
1996-06-256681996-07-08653−2.4%
1996-05-096451996-05-31669+3.7%
1996-04-156421996-05-03642−0.1%
1996-01-176061996-02-20641+5.7%
1995-12-226121996-01-08618+1.1%
1994-11-294551995-01-05460+1.1%
1994-09-294621994-10-25462−0.2%
1994-06-294481994-07-22453+1.2%
1994-05-174491994-06-09458+1.9%
1994-04-064481994-05-09442−1.3%
1994-02-104691994-03-24464−1.0%
1993-11-094601993-12-13466+1.2%
1993-07-094481993-08-13450+0.5%
1993-06-154461993-07-06441−1.1%
1993-04-134491993-05-14440−2.2%
1993-02-234351993-03-16451+3.8%
1993-01-134331993-01-29439+1.3%
1992-08-274141992-09-17420+1.5%
1992-06-164081992-07-08410+0.5%
1992-02-054141992-04-23412−0.5%
1991-11-213801991-12-20387+1.8%
1991-10-143861991-10-23388+0.4%
1991-09-193881991-10-04381−1.6%
1991-06-283711991-07-24379+2.0%
1991-05-203721991-06-07379+1.9%
1991-03-273751991-04-08379+0.9%
1991-01-173281991-02-27368+12.1%
1990-08-143391990-10-29302−11.1%
1990-06-223551990-07-20362+1.7%
1990-05-033361990-06-08359+6.9%
1990-02-273301990-03-16342+3.5%
1990-02-023311990-02-21328−1.0%
1989-12-223471990-01-08354+1.8%
1989-11-093371989-12-08349+3.6%
1989-09-193471989-10-16343−1.1%
1989-03-302931989-05-05308+5.2%
1989-03-062951989-03-21291−1.2%
1988-11-232691988-12-15274+2.0%
1988-08-292621988-09-28269+2.6%
1988-07-292721988-08-09266−2.0%
1988-04-262641988-06-21272+2.9%
1988-04-072661988-04-15260−2.4%
1988-01-142461988-02-04252+2.6%
1987-10-232481987-12-30248−0.1%
1987-09-113221987-10-08314−2.4%
1987-05-272891987-07-01303+4.9%
1987-04-202861987-05-13294+2.8%
1987-01-052521987-01-27274+8.5%
1986-09-242361986-10-14235−0.4%
1986-07-112421986-09-03250+3.2%
1986-05-072361986-06-05246+4.1%
1986-04-092341986-04-30236+0.8%
1986-01-162091986-03-06225+7.6%
1985-09-241831985-12-04204+11.8%
1985-08-021911985-09-04187−2.1%
1985-06-181871985-07-23193+2.8%
1985-05-071811985-05-29188+3.8%
1985-03-211791985-04-04179−0.2%
1984-11-261661985-02-13183+10.8%
1984-10-121641984-10-24167+1.8%
1984-09-131681984-09-20167−0.3%
1984-07-171521984-08-16164+7.5%
1984-06-041541984-06-27152−1.7%
1984-04-111551984-05-07159+2.9%
1984-02-171561984-03-07155−0.8%
1983-12-231631984-01-04167+2.2%
1983-11-111661983-12-02165−0.5%
1983-08-121621983-08-23163+0.4%
1983-07-211691983-07-29163−3.8%
1982-12-011391982-12-10140+0.6%
1982-10-061261982-10-27135+7.4%
1982-08-031081982-09-21125+15.8%
1982-06-141101982-07-27109−0.5%
1981-12-211231982-03-30112−9.0%
1981-09-141211981-10-15120−0.8%
1981-07-101291981-08-11134+3.5%
1981-05-081321981-06-01132+0.6%
1981-01-141331981-03-05130−2.7%
1980-12-161311981-01-08133+1.9%
1980-11-051311980-11-26140+6.7%
1980-09-031261980-09-26126+0.2%
1980-03-051111980-04-17101−9.1%

How it was tested

  • Signals are read on the daily close; each trade happens at the next day’s close. No look-ahead.
  • Long only, fully in or fully out. No commissions, slippage, interest or dividends.
  • The test starts on the first day every indicator has a value (Jan 2, 1980); buy-and-hold covers the same days.
  • Prices: Yahoo Finance daily data (^GSPC), snapshot spx-2026-11-25.csv. Checked by a second, independent program before publishing.

Not financial advice. This is educational content, shared for information and entertainment only, and it is not a recommendation to buy or sell any asset. Backtests and past results do not guarantee future results, and the numbers or charts here may contain mistakes. Trading carries risk, including losing all the money you put in. Do your own research before you make any decision.