COST RSI(7) Threshold 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 74.97% 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 46.7%.

Modify this strategy
Total return74.97%
Profit factor1.24
Longest losing streak7 trades
Best closed trade16.97%
Worst closed trade-8.22%
Longest drawdown duration7348 calendar days
Ending equity$17,496.95
Closed trades142
Win rate50.7%
Average winner5.33%
Average loser-4.37%
Average holding period9.7 sessions
Time invested16.71% 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: RSI(7) below 25.
  • Indicator exit: RSI(7) above 65. It executes at the next open.

RSI: Wilder’s smoothed average gains and losses produce an oscillator from 0 to 100. Each RSI period and threshold comes from the rules above. “Below 30” tests the current reading; “crosses above 30” requires a move from 30 or below to above 30. RSI can remain near extreme readings for extended periods; a threshold does not guarantee a reversal.

5% fixed stop: measured from the raw entry open, before execution slippage and fees. Opening gaps fill at open; otherwise daily high/low touches determine fills. A stop takes priority when both stop and target touch in one daily bar.

Holding limit: queue an exit after 15 invested sessions and execute at the next available open. Entry and exit sessions count toward the displayed holding period.

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)-28.29%-32.67%735.27%
199511.57%18.4%435.07%
199619.96%64.79%226.35%
199716.97%77.6%111.65%
1998-9.69%61.75%718.72%
19998.94%26.4%722.79%
2000-13.12%-56.23%930.53%
2001-7.12%11.12%438.96%
2002-13.05%-36.77%942.66%
200311.87%32.5%340.53%
20042.68%30.34%135.03%
20051.1%1.92%538.77%
20062.61%6.94%235.57%
20071.41%32.15%130.56%
2008-13.89%-24.79%638.53%
2009-0.71%12.7%446.7%
20103.05%22.04%239.32%
20119.17%15.39%341.29%
20126.35%18.49%331.53%
20135.35%20.55%228.3%
20142.42%19.1%426.84%
2015-0.6%13.93%526.91%
20166.47%-0.86%725.6%
2017-1.15%16.25%524.56%
20183.88%9.45%420.14%
20198.41%44.28%315.76%
202017.8%28.19%212.75%
2021-1.48%50.67%512.98%
2022-19.86%-19.59%923.95%
202325.85%44.6%524.42%
20246.47%38.81%23.98%
20257.88%-5.89%65.56%
2026 (partial)6.86%6.41%34.59%

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 5% stop did not cap every loss: the trade exiting on 2005-04-22 lost 8.22% after opening beyond the stop. Daily gaps can bypass the intended exit level.

What these results mean

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

Across 142 closed trades, 50.7% were profitable. The average winner was 5.33% and the average loser was -4.37%. Profit factor was 1.24: $1.24 of positive closed-trade P&L for each $1 of losses. The longest losing run was 7 trades. Win rate alone does not capture the size of wins and losses.

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

The longest observed drawdown lasted 7348 calendar days, with 5060 underwater sessions, from 2000-01-19 to 2020-03-02. Equity regained the earlier peak on the ending date.

Best closed trade: 16.97% · 1997-10-28 to 1997-11-04, exiting because of indicator exit.

Worst closed trade: -8.22% · 2005-04-21 to 2005-04-22, exiting because of gap below stop.

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 ● Fixed stop (5%)

RSI

● RSI(7)

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 142 closed trades
EntryExitEntry $Exit $ReturnReason
1994-01-131994-02-0317.3817.00-2.19%Holding limit
1994-03-281994-03-2818.6317.70-5%Stop
1994-03-291994-04-0618.1317.22-5%Stop
1994-04-141994-04-1816.0015.20-5%Stop
1994-04-191994-04-1915.3814.61-5%Stop
1994-04-201994-05-1214.6314.13-3.42%Holding limit
1994-12-091994-12-1213.8813.19-5%Stop
1994-12-131995-01-0513.1313.250.91%Holding limit
1995-09-261995-10-1717.1317.250.7%Holding limit
1995-11-211995-12-0515.7517.138.76%Indicator exit
1995-12-201995-12-2015.0014.25-5%Stop
1995-12-211996-01-0814.6316.3811.96%Indicator exit
1996-10-311996-11-0719.2521.5011.69%Indicator exit
1997-10-281997-11-0433.8839.6316.97%Indicator exit
1998-07-291998-07-3159.8856.89-5%Stop
1998-08-041998-08-0456.1353.32-5%Stop
1998-08-051998-08-2653.1355.815.04%Holding limit
1998-09-011998-09-2347.2552.5011.11%Holding limit
1998-10-021998-10-0244.7542.51-5%Stop
1998-10-051998-10-0544.5042.28-5%Stop
1998-10-061998-10-0845.7543.46-5%Stop
1999-04-161999-04-1983.6379.45-5%Stop
1999-04-201999-05-1178.3881.944.54%Holding limit
1999-05-281999-06-2171.7574.133.32%Holding limit
1999-07-301999-08-0975.1371.37-5%Stop
1999-08-101999-08-1871.6379.0010.29%Indicator exit
1999-09-131999-09-1469.5066.02-5%Stop
1999-09-151999-09-2768.4473.006.66%Indicator exit
2000-01-052000-01-1184.4494.2511.62%Indicator exit
2000-01-182000-01-2548.7546.31-5%Stop
2000-01-262000-01-2749.1346.67-5%Stop
2000-01-282000-01-2848.6346.20-5%Stop
2000-01-312000-02-1746.0643.76-5%Stop
2000-02-182000-03-1343.7544.000.57%Holding limit
2000-05-242000-05-2429.0027.55-5%Stop
2000-05-252000-05-2532.0030.40-5%Stop
2000-05-262000-06-1930.6332.255.29%Holding limit
2001-03-062001-03-1438.1336.22-5%Stop
2001-09-072001-09-1734.6032.76-5.32%Gap below stop
2001-09-182001-09-2132.2829.95-7.22%Gap below stop
2001-09-242001-10-0131.7035.2811.29%Indicator exit
2002-02-282002-03-0142.3940.27-5%Stop
2002-03-042002-03-0541.2139.15-5%Stop
2002-03-062002-03-2739.0940.172.76%Holding limit
2002-04-032002-04-1138.8942.018.02%Indicator exit
2002-06-272002-07-0238.2036.29-5%Stop
2002-07-032002-07-1536.4134.59-5%Stop
2002-07-222002-07-2432.9031.25-5%Stop
2002-11-122002-12-0431.6432.743.48%Holding limit
2002-12-102002-12-1729.6228.14-5%Stop
2002-12-192003-01-1027.2530.3411.34%Indicator exit
2003-08-062003-08-0630.3728.85-5%Stop
2003-08-072003-08-2829.2931.908.91%Holding limit
2004-05-072004-05-2636.1537.122.68%Indicator exit
2005-02-092005-03-0245.9245.42-1.09%Holding limit
2005-04-212005-04-2243.5539.97-8.22%Gap below stop
2005-04-252005-05-1640.5542.163.97%Holding limit
2005-08-042005-08-2544.2743.63-1.45%Holding limit
2005-09-212005-10-0741.3444.938.68%Indicator exit
2006-08-282006-08-3048.7046.27-5%Stop
2006-08-312006-09-2047.3151.108.01%Indicator exit
2007-03-132007-04-0353.2453.991.41%Holding limit
2008-01-072008-01-2266.0962.63-5.24%Gap below stop
2008-07-292008-08-1360.3967.3711.56%Indicator exit
2008-10-082008-10-1054.0051.30-5%Stop
2008-10-132008-10-1556.1053.30-5%Stop
2008-11-132008-11-1348.6446.21-5%Stop
2008-11-192008-11-2146.4044.08-5%Stop
2009-01-152009-01-3047.5245.14-5%Stop
2009-02-022009-02-0444.7842.54-5%Stop
2009-02-052009-02-2742.8541.29-3.64%Holding limit
2009-03-092009-03-1838.4443.8914.18%Indicator exit
2010-01-222010-02-1157.4058.862.54%Indicator exit
2010-07-012010-07-2354.7355.000.49%Holding limit
2011-08-022011-08-0877.3073.43-5%Stop
2011-08-092011-08-3071.6377.608.33%Holding limit
2011-10-072011-10-1979.3184.136.08%Indicator exit
2012-01-102012-02-0179.3782.924.47%Holding limit
2012-05-042012-05-2584.2184.900.82%Holding limit
2012-10-222012-11-1494.6895.600.97%Holding limit
2013-08-152013-09-06112.50114.301.6%Indicator exit
2013-10-082013-10-17113.49117.183.25%Indicator exit
2013-12-122014-01-06118.52117.49-0.87%Holding limit
2014-01-072014-01-29116.39114.03-2.03%Holding limit
2014-04-072014-04-22110.73114.002.95%Indicator exit
2014-05-082014-05-13113.08116.322.87%Indicator exit
2015-04-202015-05-11146.66145.59-0.73%Holding limit
2015-06-082015-06-29138.89137.01-1.35%Holding limit
2015-07-012015-07-08135.79139.983.09%Indicator exit
2015-08-242015-08-24131.97125.37-5%Stop
2015-08-252015-09-16137.20142.213.65%Holding limit
2016-01-082016-01-20155.28147.52-5%Stop
2016-02-052016-02-25143.27154.697.97%Indicator exit
2016-05-192016-05-27142.45150.245.47%Indicator exit
2016-08-262016-09-01165.39157.12-5%Stop
2016-09-022016-09-26156.84152.08-3.03%Holding limit
2016-09-292016-10-20149.03149.820.53%Holding limit
2016-11-042016-11-15143.00151.986.28%Indicator exit
2017-03-072017-03-28166.54166.11-0.26%Holding limit
2017-06-192017-06-23167.16158.80-5%Stop
2017-06-262017-07-18158.15152.61-3.5%Holding limit
2017-07-212017-08-01151.10159.105.29%Indicator exit
2017-10-102017-10-31155.67159.832.67%Holding limit
2018-02-062018-02-28178.91191.607.09%Holding limit
2018-10-082018-10-29219.28219.750.21%Holding limit
2018-11-212018-12-14220.56217.49-1.39%Holding limit
2018-12-172018-12-20206.68196.35-5%Stop
2018-12-212019-01-15197.16210.166.59%Holding limit
2019-08-062019-08-27266.66280.915.34%Holding limit
2019-12-062019-12-30294.92294.20-0.24%Holding limit
2020-02-282020-03-20285.25307.007.62%Holding limit
2020-11-022020-11-06361.50382.525.81%Indicator exit
2020-12-222021-01-04364.26377.243.56%Indicator exit
2021-01-202021-02-10354.73360.391.6%Holding limit
2021-02-242021-03-03341.53324.45-5%Stop
2021-03-042021-03-05323.37307.20-5%Stop
2021-03-082021-03-24318.91342.247.32%Indicator exit
2022-01-112022-01-18518.80492.86-5%Stop
2022-01-192022-02-03490.52516.245.24%Indicator exit
2022-05-022022-05-06532.21505.60-5%Stop
2022-05-092022-05-18496.61459.99-7.37%Gap below stop
2022-05-192022-05-20430.37408.85-5%Stop
2022-05-232022-06-14419.99453.728.03%Holding limit
2022-09-222022-09-23494.00469.30-5%Stop
2022-09-262022-10-17466.47461.65-1.03%Holding limit
2022-12-072022-12-20479.09455.14-5%Stop
2022-12-212023-01-09459.38483.225.19%Indicator exit
2023-03-022023-03-23477.74490.692.71%Holding limit
2023-05-252023-05-30480.01510.176.28%Indicator exit
2023-08-232023-09-12538.96559.283.77%Indicator exit
2023-10-302023-11-07545.74572.774.95%Indicator exit
2024-04-042024-04-25708.07727.292.71%Holding limit
2024-07-312024-08-12820.42857.254.49%Indicator exit
2024-12-312025-01-24923.65942.162%Holding limit
2025-03-102025-03-13955.47907.70-5%Stop
2025-03-142025-04-03891.81931.084.4%Indicator exit
2025-07-232025-08-07942.38974.683.43%Indicator exit
2025-09-292025-10-10916.34944.423.06%Indicator exit
2025-11-202025-12-12894.90883.00-1.33%Holding limit
2025-12-162026-01-07857.44892.004.03%Indicator exit
2026-06-012026-06-23954.64965.681.16%Holding limit
2026-09-102026-09-30907.10926.392.13%Indicator exit

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:11:07 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.