COST 100-Day SMA Crossover Backtest

HISTORICAL BACKTEST · COST DAILY

What this backtest found

1994-01-03 to 2026-10-01 · $10,000.00 USD starting capital · costs as specified below

The strategy returned 444.32% over the full test period, compared with 4696.81% for buy and hold. It underperformed that benchmark on total return. Its largest decline from a previous equity high was 43.41%.

Modify this strategy
Total return444.32%
Profit factor1.9
Longest losing streak11 trades
Best closed trade41.94%
Worst closed trade-6.79%
Longest drawdown duration4339 calendar days
Ending equity$54,432.26
Closed trades185
Win rate29.7%
Average winner8.8%
Average loser-2.1%
Average holding period25.3 sessions
Time invested56.88% of sessions

CAGR is the equivalent compounded yearly return across these dates, not the return earned in every year. Drawdown measures the largest fall from a previous daily equity high. Ending equity includes any open position marked to the final close.

How this strategy works

COST is tested on daily bars with one long position at a time. Entry conditions are combined using AND: every condition must match. A close signal executes at the next session’s open.

  • Entry: close crosses above SMA(100).
  • Indicator exit: close crosses below SMA(100). It executes at the next open.

SMA: a simple moving average is the arithmetic mean of the requested number of daily closes. A price crossover compares the close with that average; a moving-average crossover compares the two averages. Moving averages lag prices and can whipsaw when trends do not persist.

10% trailing stop: starts at the entry open and follows the highest daily close reached while invested. The updated level becomes active the next session. The line is not tightened using the same day’s high or low. Gaps can execute beyond the level; it is not a guaranteed maximum loss.

Strategy versus buy and hold

Both curves start with $10,000.00 USD and use the same historical dates. Buy and hold returned 4696.81% (12.55% annualized), with 72.4% maximum drawdown.

● Strategy ● Buy and hold

Drawdowns over time

● Strategy ● Buy and hold

Annual performance

YearStrategyBuy and holdClosed tradesWorst ongoing drawdown
1994 (partial)-11.74%-32.67%413.13%
19957.07%18.4%519.98%
19969.69%64.79%616.13%
19978.17%77.6%210%
199819.7%61.75%416.35%
19992.24%26.4%821.6%
2000-19.22%-56.23%835.92%
2001-9.24%11.12%742.07%
2002-9.9%-36.77%541.29%
200312.66%32.5%343.41%
200422.54%30.34%336.49%
2005-3.21%1.92%528.5%
2006-2.4%6.94%724.24%
200720.99%32.15%826.14%
2008-17.41%-24.79%723.34%
200913.61%12.7%1131.22%
201016.06%22.04%618.33%
20114.53%15.39%511.96%
2012-6.56%18.49%918.37%
201312.95%20.55%418.92%
201418.4%19.1%611.31%
201512.75%13.93%510.34%
2016-5.58%-0.86%514.04%
201715.31%16.25%212.88%
2018-1.14%9.45%816.83%
201932.54%44.28%117.96%
2020-2.06%28.19%1226.18%
202150.28%50.67%213.18%
2022-17.1%-19.59%1022.2%
202320.31%44.6%627.36%
20247.11%38.81%110%
2025-1.4%-5.89%916.22%
2026 (partial)7.32%6.41%116.06%

Annual returns use the previous year’s final equity, or initial capital for the first year. Ongoing drawdown retains the previous all-time peak, including peaks in earlier years.

Execution risk observed in this test

A 10% stop did not cap every loss: the trade exiting on 2008-07-23 lost 6.39% after opening beyond the stop. Daily gaps can bypass the intended exit level.

What these results mean

The strategy’s 5.31% annualized return was 7.24 percentage points below the long buy-and-hold benchmark’s 12.55%. Its worst daily peak-to-trough decline was smaller by 28.99 percentage points. That is a return/drawdown trade-off, not proof of better risk-adjusted performance. It held a position during 56.88% of sessions; cash earned no interest in this simulation.

Across 185 closed trades, 29.7% were profitable. The average winner was 8.8% and the average loser was -2.1%. Profit factor was 1.9: $1.9 of positive closed-trade P&L for each $1 of losses. The longest losing run was 11 trades. Win rate alone does not capture the size of wins and losses.

The weakest displayed calendar period was 2000 at -19.22%. First and last years may be partial. A full-period average can hide substantial variation.

The longest observed drawdown lasted 4339 calendar days, with 2990 underwater sessions, from 1999-01-29 to 2010-12-16. Equity regained the earlier peak on the ending date.

Best closed trade: 41.94% · 2021-04-06 to 2022-01-10, exiting because of fixed / trailing stop.

Worst closed trade: -6.79% · 2020-03-11 to 2020-03-12, exiting because of indicator exit.

Fees and slippage are 0% and 0% per side. This is a zero-cost simulation; adding execution costs can reduce results. This report contains no out-of-sample validation or parameter robustness study, so it does not establish that these rules generalize.

Price, trades and active exit levels

● Daily close ● SMA(100) ● Trailing stop (10%)

Price circles show executed entries and exits; select a circle to open its trade. Triangles mark individual crossover conditions, not executed orders: other conditions and the existing position can prevent execution. Dashed exit levels apply only while a position is held. All charts share the same date range. Zoom in/out, select a year, or pan on any chart to update them together.

Trade history

Show 185 closed trades
EntryExitEntry $Exit $ReturnReason
1994-08-021994-08-0315.6315.00-4.03%Indicator exit
1994-08-261994-09-2615.0014.29-4.72%Fixed / trailing stop
1994-09-281994-10-2715.1314.97-1.08%Fixed / trailing stop
1994-12-011994-12-0215.2514.88-2.43%Indicator exit
1995-03-271995-05-1014.5013.73-5.34%Fixed / trailing stop
1995-05-191995-05-2414.1314.00-0.92%Indicator exit
1995-06-011995-06-0514.0013.88-0.86%Indicator exit
1995-06-061995-09-2614.2516.6516.84%Fixed / trailing stop
1995-10-311995-11-0117.2517.00-1.45%Indicator exit
1996-02-091996-02-1216.5016.38-0.73%Indicator exit
1996-02-131996-04-0817.0017.553.24%Fixed / trailing stop
1996-09-041996-09-1720.6319.92-3.46%Fixed / trailing stop
1996-10-021996-10-0320.6320.25-1.84%Indicator exit
1996-10-091996-10-2120.7520.50-1.2%Indicator exit
1996-11-061996-11-1920.5020.751.22%Indicator exit
1996-11-201997-02-2422.2524.8711.76%Fixed / trailing stop
1997-10-291997-12-1237.0040.459.31%Fixed / trailing stop
1998-07-311998-08-0359.5056.69-4.72%Indicator exit
1998-08-111998-08-1257.0057.941.65%Indicator exit
1998-08-191998-08-2459.5057.75-2.94%Indicator exit
1998-10-211998-10-2756.1956.00-0.34%Indicator exit
1998-10-301999-02-0956.5074.5932.02%Fixed / trailing stop
1999-05-121999-05-1382.7581.63-1.35%Indicator exit
1999-05-141999-05-1783.0079.25-4.52%Indicator exit
1999-07-081999-07-2183.1382.38-0.9%Indicator exit
1999-08-241999-08-2679.5678.50-1.33%Indicator exit
1999-10-051999-10-1577.8875.55-3%Fixed / trailing stop
1999-10-211999-10-2275.3874.38-1.33%Indicator exit
1999-10-291999-12-2079.1388.8212.25%Fixed / trailing stop
2000-09-132000-09-1837.6335.31-6.17%Indicator exit
2000-09-292000-10-0235.9433.56-6.62%Indicator exit
2000-10-202000-10-2433.7533.750%Indicator exit
2000-10-252000-10-2634.0033.03-2.85%Indicator exit
2000-10-312000-11-1035.0033.94-3.03%Indicator exit
2000-11-142000-11-3034.6333.19-4.15%Fixed / trailing stop
2000-12-062000-12-0735.3133.25-5.83%Indicator exit
2000-12-152000-12-2034.9433.75-3.41%Indicator exit
2000-12-222001-01-1035.5839.2710.36%Fixed / trailing stop
2001-03-082001-03-1340.1938.13-5.13%Indicator exit
2001-03-212001-03-2239.1938.69-1.28%Indicator exit
2001-04-022001-04-0338.8136.63-5.62%Indicator exit
2001-06-062001-06-2739.8039.26-1.36%Fixed / trailing stop
2001-08-282001-08-3039.8238.70-2.81%Indicator exit
2001-10-242001-10-3039.4938.17-3.34%Indicator exit
2001-11-022002-02-2839.3842.397.64%Indicator exit
2002-04-172002-04-1842.8042.43-0.86%Indicator exit
2002-04-192002-04-2242.9042.25-1.52%Indicator exit
2002-10-162002-10-1735.1535.410.74%Indicator exit
2002-10-242002-10-2936.3934.90-4.09%Indicator exit
2003-03-182003-03-2530.6430.30-1.11%Indicator exit
2003-03-262003-08-0530.8732.003.66%Gap below stop
2003-10-222003-10-2733.8533.75-0.3%Indicator exit
2003-10-282004-03-2433.7336.598.48%Indicator exit
2004-03-262004-03-2936.9636.64-0.87%Indicator exit
2004-03-302004-05-0637.0937.01-0.22%Indicator exit
2004-05-282005-02-0438.5046.3620.42%Indicator exit
2005-04-082005-04-1147.0545.67-2.93%Indicator exit
2005-05-262005-06-2446.3444.93-3.04%Indicator exit
2005-06-272005-06-2844.8444.980.31%Indicator exit
2005-06-292005-08-0445.4144.27-2.51%Indicator exit
2005-10-072006-06-0144.9353.1018.18%Indicator exit
2006-06-022006-06-0653.9352.66-2.35%Indicator exit
2006-06-092006-06-1253.5552.96-1.1%Indicator exit
2006-06-162006-07-1753.6153.44-0.32%Indicator exit
2006-10-132006-10-2053.6051.84-3.28%Indicator exit
2006-10-242006-11-0652.6252.03-1.12%Indicator exit
2006-11-072006-11-1052.5151.97-1.03%Indicator exit
2006-11-132007-03-0953.0154.442.7%Indicator exit
2007-03-262007-03-2854.4453.80-1.18%Indicator exit
2007-04-092007-04-1255.0054.68-0.58%Indicator exit
2007-04-182007-04-2555.2554.34-1.65%Indicator exit
2007-05-102007-05-1555.4554.93-0.94%Indicator exit
2007-05-182007-06-0855.9255.15-1.38%Indicator exit
2007-06-112007-06-1355.7255.15-1.02%Indicator exit
2007-06-142007-08-1555.8158.574.95%Fixed / trailing stop
2007-09-122008-01-1458.3164.6010.79%Fixed / trailing stop
2008-01-232008-01-2865.2665.540.43%Indicator exit
2008-01-292008-02-0666.1765.26-1.38%Indicator exit
2008-03-262008-03-2866.5064.96-2.32%Indicator exit
2008-04-022008-04-1465.9465.71-0.35%Indicator exit
2008-04-172008-07-2367.4363.12-6.39%Gap below stop
2008-09-112008-09-1668.9268.14-1.13%Indicator exit
2009-03-272009-03-3047.6846.89-1.66%Indicator exit
2009-04-032009-04-0847.8646.66-2.51%Indicator exit
2009-04-092009-04-1345.8346.922.38%Indicator exit
2009-04-232009-04-2446.6847.120.94%Indicator exit
2009-04-272009-05-0847.5046.47-2.17%Indicator exit
2009-05-112009-05-1245.8246.571.64%Indicator exit
2009-05-132009-05-1446.2545.39-1.86%Indicator exit
2009-05-192009-06-2346.2346.01-0.48%Indicator exit
2009-06-262009-07-0646.0344.57-3.17%Indicator exit
2009-07-072009-07-0845.2244.60-1.37%Indicator exit
2009-07-092009-07-1046.4045.30-2.37%Indicator exit
2009-07-162010-01-2146.7358.4425.06%Indicator exit
2010-02-032010-02-0458.5958.17-0.72%Indicator exit
2010-02-112010-04-0158.8659.731.48%Indicator exit
2010-04-052010-04-1560.3359.41-1.52%Indicator exit
2010-04-232010-04-2860.1859.30-1.46%Indicator exit
2010-05-052010-05-0759.7558.23-2.54%Indicator exit
2010-09-022011-03-1758.5570.4620.34%Indicator exit
2011-03-212011-07-2971.1077.509%Indicator exit
2011-09-022011-09-0678.1577.54-0.78%Indicator exit
2011-09-082011-09-1280.2878.03-2.8%Indicator exit
2011-09-132011-10-0780.0779.31-0.95%Indicator exit
2011-10-112012-01-0980.9880.17-1%Indicator exit
2012-02-022012-05-0483.7584.210.55%Indicator exit
2012-05-302012-06-0485.9085.44-0.54%Indicator exit
2012-06-052012-10-2286.3894.689.61%Indicator exit
2012-10-262012-11-0596.4295.85-0.59%Indicator exit
2012-11-062012-11-0997.9894.51-3.54%Indicator exit
2012-11-262012-11-2797.3896.30-1.11%Indicator exit
2012-11-292012-12-13103.0998.02-4.92%Indicator exit
2012-12-182012-12-2898.9097.17-1.75%Indicator exit
2013-01-022013-02-27100.1299.67-0.45%Indicator exit
2013-02-282013-08-28100.92111.5410.52%Indicator exit
2013-09-062013-10-08114.30113.49-0.71%Indicator exit
2013-10-102013-12-18114.98117.782.44%Indicator exit
2013-12-192014-01-03117.92118.760.71%Indicator exit
2014-01-102014-01-13118.63117.06-1.32%Indicator exit
2014-04-292014-05-06115.38114.35-0.89%Indicator exit
2014-05-092014-05-16114.49114.580.08%Indicator exit
2014-05-192014-05-28115.09114.00-0.95%Indicator exit
2014-05-292014-05-30114.58114.610.03%Indicator exit
2014-06-022015-04-20115.84146.6626.61%Indicator exit
2015-04-212015-04-30146.98143.85-2.13%Indicator exit
2015-07-212015-07-28145.19144.53-0.45%Indicator exit
2015-07-302015-08-21145.06142.33-1.88%Indicator exit
2015-09-162015-09-21142.21142.360.11%Indicator exit
2015-09-222016-01-08141.82151.987.17%Fixed / trailing stop
2016-01-122016-01-14155.58152.38-2.06%Indicator exit
2016-03-302016-04-08155.91152.98-1.88%Indicator exit
2016-06-022016-09-02150.12156.844.48%Indicator exit
2016-09-062016-09-08158.13155.22-1.84%Indicator exit
2016-12-092017-06-19157.28167.166.28%Indicator exit
2017-09-272017-10-09164.49157.01-4.55%Indicator exit
2017-10-232018-02-06160.85178.9111.23%Gap below stop
2018-03-272018-03-28187.44183.61-2.04%Indicator exit
2018-04-022018-04-03186.91183.53-1.81%Indicator exit
2018-04-062018-04-09185.34185.20-0.08%Indicator exit
2018-04-132018-10-05189.81219.7915.79%Fixed / trailing stop
2018-10-312018-11-21228.87220.56-3.63%Indicator exit
2018-11-292018-12-06229.00228.01-0.43%Indicator exit
2018-12-072018-12-10233.15224.54-3.69%Indicator exit
2019-03-012019-03-08219.76225.482.6%Indicator exit
2019-03-112020-01-03227.53290.1327.51%Indicator exit
2020-01-092020-02-28298.55285.25-4.45%Gap below stop
2020-03-032020-03-10308.94307.41-0.5%Indicator exit
2020-03-112020-03-12300.86280.44-6.79%Indicator exit
2020-03-162020-03-17281.83289.002.54%Indicator exit
2020-03-182020-03-23298.00292.00-2.01%Indicator exit
2020-04-072020-04-13305.85298.58-2.38%Indicator exit
2020-04-152020-04-22311.64304.04-2.44%Indicator exit
2020-04-232020-05-04308.00303.00-1.62%Indicator exit
2020-05-052020-05-14305.27301.50-1.23%Indicator exit
2020-05-202020-05-22306.77302.01-1.55%Indicator exit
2020-05-272020-06-12304.56302.52-0.67%Indicator exit
2020-07-022021-01-12305.99363.9918.95%Indicator exit
2021-01-142021-01-15366.00361.05-1.35%Indicator exit
2021-04-062022-01-10360.00510.9941.94%Fixed / trailing stop
2022-02-012022-02-15504.89513.341.67%Indicator exit
2022-02-162022-02-23511.49502.94-1.67%Indicator exit
2022-02-282022-04-28513.53547.256.57%Fixed / trailing stop
2022-05-052022-05-06542.92514.40-5.25%Indicator exit
2022-07-182022-07-27521.67513.31-1.6%Indicator exit
2022-07-282022-09-14521.53504.86-3.2%Fixed / trailing stop
2022-09-202022-09-21503.56502.50-0.21%Indicator exit
2022-10-312022-11-01509.64504.69-0.97%Indicator exit
2022-11-112022-12-02514.33498.52-3.07%Indicator exit
2023-01-242023-02-27492.05491.81-0.05%Indicator exit
2023-03-272023-03-29497.28489.20-1.62%Indicator exit
2023-04-032023-04-10496.79483.90-2.59%Indicator exit
2023-04-112023-04-13493.83492.68-0.23%Indicator exit
2023-04-142023-05-23496.19486.87-1.88%Indicator exit
2023-05-302023-10-27510.17547.607.34%Indicator exit
2023-10-312024-04-03552.16707.0328.05%Fixed / trailing stop
2025-01-062025-01-15917.98925.930.87%Indicator exit
2025-01-162025-03-07924.73969.174.81%Fixed / trailing stop
2025-04-152025-04-17985.35973.28-1.22%Indicator exit
2025-04-212025-04-22993.00970.30-2.29%Indicator exit
2025-04-232025-06-16994.52992.33-0.22%Indicator exit
2025-06-242025-06-261,005.84987.73-1.8%Indicator exit
2025-07-082025-07-09988.09988.390.03%Indicator exit
2025-08-082025-08-14977.15980.600.35%Indicator exit
2025-08-212025-08-22988.90971.54-1.76%Indicator exit
2026-01-122026-05-29917.70984.897.32%Fixed / trailing stop

Exact rules and methodology

Read the strategy-specific explanation above.

  • Signals use completed daily bars; entries and indicator/holding exits execute at the next session open. Indicators warm up using earlier history; no pre-range entry signal is carried in.
  • Opening stop/target gaps execute at open. Otherwise a scheduled indicator/holding exit executes at open; within a bar, stop takes priority if both stop and target touch.
  • Initial capital $10,000.00 USD; one fully allocated fractional position, no pyramiding or leverage. Fees and adverse slippage apply to entry and exit. Buy-and-hold benchmark is always long.
  • Open positions are marked at the last close without an assumed final sale fee. Cash interest and dividends are excluded.

Results are calculated on the supplied daily prices. Dividends and cash interest are excluded.

Calculated: 2026-10-03 22:10:53 UTC. Engine: 3.1. Data: COST, 1994-01-03–2026-10-01.

Dataset fingerprint32e4b86a447598e3ba07f268d1fed3bd1848a4a4b12e9763d0ab78431926d1a3

Related backtests

These are separate saved tests. Compare dates and costs before comparing results.

Understand the metrics

What is CAGR?

The equivalent compounded yearly growth across the test’s elapsed calendar dates. It is not the return earned in each year.

What are drawdown and drawdown duration?

Drawdown is the percentage decline from a previous daily equity peak. Longest drawdown duration is the longest observed calendar time from a peak until that equity level is regained, or until the test ends. Underwater sessions count daily closes below the peak and exclude the recovery close. This duration need not belong to the deepest drawdown. “Unrecovered at test end” means the recovery date is unknown.

How is profit factor calculated?

Gross positive dollar profit divided by the absolute sum of negative dollar profit across closed trades, after configured costs. It excludes open positions. Because capital compounds, later trades can have greater dollar weight. Legacy reports without saved dollar P&L use reconstructed amounts from rounded trade returns and are labeled approximate. No losses gives “No losing trades,” not a finite ratio.

What are best/worst trade and losing streak?

Best and worst rank closed trades by percentage return. Longest losing streak counts consecutive closed trades with negative returns; a zero-return or positive trade breaks the streak. These statistics do not forecast future outcomes.

How are holding period and time invested measured?

Holding periods count sessions inclusively, including entry and exit sessions. Time invested is the share of sessions with a position at any point; it does not measure intraday hours. Average winners and losers use closed-trade percentage returns.

Educational historical simulation, not investment advice.

As an Amazon Associate I earn from qualifying purchases.