Skip to content
Platform

Find & understand

Discover companiesFrom the market to your shortlistStock ScreenerSee a shortlist take shapeCompany researchUnderstand the business behind a stock

Test & prepare

Test an ideaPut an investing rule in perspectivePlan your riskWork out what is at stake

Keep developing

Review & learnReflect on decisions and build knowledgeAll workspace toolsFind your next starting point
AcademyPricing
Sign inTest an idea
All tested rules

Price crosses its 20-day average: does it work after costs?

estockes · Popular rule, tested · Historical simulation* · Updated 2026-11-30

Over the last 10 years on SPY (2016-11-28 to 2026-11-27), this rule made +115.1% after modelled costs, against +286.8% for simply holding SPY, across 123 trades. It ended ahead of holding on 0 of the 6 tickers in the table. Run on 2026-11-30 with the estockes strategy test; a historical simulation, not advice.

Test this rule on SPY

SPY and this rule are already selected. Run the free test when you are ready to compare the rule with holding after modeled costs.

The rule on 6 liquid tickers, closest to holding first

Across the 6 tickers with a result, the rule came closest to holding on IWM (+35.5% against +134.5%, 99.0 pts behind) and furthest from it on NVDA (+1,017% against +6,408%, 5,391 pts behind). It made 824 trades in all; 0 of the 6 runs had fewer than 30 trades, too few to judge on their own. Luck Test: could be luck on 1, looks like luck on 5.

Each row is one run of the estockes strategy test, fetched 2026-11-30. "-" means the value was not fetched.

TickerVerdictTradesAfter costsHoldingLuck Test
IWMOnly in the past164+35.5%+134.5%looks like luck, beat 46%
SPYHolding did better123+115.1%+286.8%looks like luck, beat 36%
AAPLHolding did better103+1,084%+1,299%could be luck, beat 87%
QQQHolding did better132+217.1%+488.6%looks like luck, beat 61%
MSFTHolding did better163+101.6%+811.4%looks like luck, beat 9%
NVDAOnly in the past139+1,017%+6,408%looks like luck, beat 72%

Not run yet, refresh pending: DIA, AMZN, GOOGL, META, TSLA, AMD, AVGO, NFLX, INTC, JPM, V, XOM, KO, WMT, COST, DIS, BA, XLK, XLF, XLE, XLV, SMH, GLD, TLT.

Luck Test: the run's own holding periods placed at random dates of the same window 1000 times, same costs and cash; "beat" is the share of those random versions the rule did better than. With 6 results on this page about 1 in 20 would pass by chance, so "likely real timing" here also needs to beat 99.2%.

Each number comes from one run of the estockes strategy test (public API), fetched on 2026-11-30: daily bars, signal on the close, fill at the next open, costs on every fill, idle cash earning the 3-month Treasury bill rate, compared with holding the same ticker over the same window.

How the rule works

The test enters at the next open after the closing price crosses above its 20-day moving average and exits after the close crosses back below it. It is the simplest short-term trend rule: be in while the price is above its recent average.

Why costs matter

A 20-day average is crossed often, so this rule makes many round trips and each one pays costs. On choppy stretches the price crosses back and forth, and those small losses plus costs are what usually separate the rule from holding.

Every result here is after modelled costs: the engine charges commission and slippage on each entry and exit, set by the ticker's liquidity (on SPY: 0 bp commission, 2 bp slippage per side), and fills at the next session's open, never at the signal's close. Holding is measured on the same total-return prices with no costs.

Limits of this test

  • It is a historical simulation of 10 years of daily data, not a forecast and not advice. A rule that did well in this window can do badly in the next.
  • Survivorship: only tickers listed today can be tested, so companies that failed or were delisted are missing, which flatters any rule tested on stocks.
  • The recent window matters: ten years that include one long rally favour holding, and a different decade could rank the rule differently. Run the test on another window to see.
  • Fixed settings for every ticker. Changing the period or the exit changes the result, and trying many settings until one looks good is how false results are made. That is also why the Luck Test bar rises with the number of results shown.

Saw someone claim a rule like this makes money? Check the claim

Related rules

  • Price crosses its 50-day average
  • Price crosses its 200-day average
  • EMA 9 crosses EMA 21
  • Exit at the death cross
  • All tested rules
  • Strategies we tested

Every rule on one ticker

  • SPY
  • QQQ
  • IWM
  • AAPL
  • MSFT
  • NVDA

Longer single-ticker studies

  • Does trading SPY on its 20-day moving average beat just holding?
  • Does trading QQQ on its 20-day moving average beat just holding?

Questions

Price crosses its 20-day average: does this rule work?

Over the last 10 years on SPY (2016-11-28 to 2026-11-27), this rule made +115.1% after modelled costs, against +286.8% for simply holding SPY, across 123 trades. It ended ahead of holding on 0 of the 6 tickers in the table. Run on 2026-11-30 with the estockes strategy test; a historical simulation, not advice.

Price crosses its 20-day average: how does the rule work?

The test enters at the next open after the closing price crosses above its 20-day moving average and exits after the close crosses back below it. It is the simplest short-term trend rule: be in while the price is above its recent average.

Why do trading costs matter here?

A 20-day average is crossed often, so this rule makes many round trips and each one pays costs. On choppy stretches the price crosses back and forth, and those small losses plus costs are what usually separate the rule from holding.

How was it tested?

Each number comes from one run of the estockes strategy test (public API), fetched on 2026-11-30: daily bars, signal on the close, fill at the next open, costs on every fill, idle cash earning the 3-month Treasury bill rate, compared with holding the same ticker over the same window.

* Simulated on past data. Past results do not predict future ones, and trading involves risk of loss. Not advice. Details

Test a trading rule against holding. Keep the evidence and build your research from there.

support@estockes.comSupport replies within 1-2 business days.

Product

  • Home
  • Pricing
  • Features
  • Free tools
  • Calculators
    • Compounding
    • Position size
    • Risk and reward
    • Leveraged ETF decay
    • Day trading account checker
  • Academy - free course
  • Test an idea
  • Strategies we tested
  • Do popular rules work?
  • Compared with TradingView
  • Compared with Finviz
  • Compared with Investing.com
  • Test an idea without code
  • System status
  • What's new

Company

  • About
  • Contact
  • Support

Legal

  • Terms of Service
  • Privacy Policy
  • Refunds
  • Security
  • Data request
Review us on Trustpilot (opens in a new tab)

Share your honest experience.

Featured on LaunchBuffestockes on VibeRank
© 2026 estockes - estockes.com · Operated by Eylon Sabag · Prices in USD
  • We make money from subscriptions only.
  • Prices may be delayed.
  • Screenshots are illustrative.
Not investment advice. Trading involves risk of loss.Full notice

estockes is a research and analytics tool, not a registered investment adviser, broker-dealer, or financial planner. Nothing here is investment, financial, legal, or tax advice. All content is for informational and educational purposes only. Trading involves substantial risk of loss; past performance does not guarantee future results. You trade at your own risk.

Mailing address (correspondence only)
800 N. King St, Suite 304-2048, Wilmington, DE 19801, USAThe operator is Eylon Sabag, an Israeli sole proprietor. This iPostal1 address receives correspondence; it is not a U.S. office or a separate U.S. company.