Join waitlist
Strategies / Mean reversion / Double Seven Close Reversion

Double Seven Close Reversion

Buys when the close is above the 200-bar SMA and at the lowest close of the last 7 bars. Sells when the close reaches the highest close of the last 7 bars.

Mean reversionLong onlySwingS&P 500Daily
2.21Profit factor
5,040Net profit EUR
70.12%Win rate
569Trades
-559Max drawdown
8.86Avg trade

Best run of 11. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:7.

Entry rules, long

  1. The close is above the 200-bar simple moving average.

Exit rules

  1. No stop loss or target is set.

Test conditions

PeriodUp to 2026-10-05
InstrumentS&P 500, Daily
Spread1 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best runDaily2.21 56970.125,040 EUR-559
Nasdaq 100Daily2.10 45367.7717,343 EUR-2,661
Dow JonesDaily1.69 54873.1828,143 EUR-4,569
EUR/USDDailyn/a 33364.8639,597 USD-30,110
Nikkei 2254 hoursn/a 83065.6612,490 USD-6,668
Dow Jones4 hoursn/a 38271.4711,413 EUR-4,880
Nasdaq 1004 hoursn/a 1,11868.6010,642 EUR-2,994
DAX 40Dailyn/a 53668.106,762 EUR-5,397
FTSE 1004 hoursn/a 96968.322,905 EUR-2,629
GoldDailyn/a 39762.221,772 EUR-609
S&P 5004 hoursn/a 1,19069.581,725 EUR-962

Charts

Results by run

Top 10 of 11 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Double Seven Close Reversion
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

sma = Average[200](close)
myHigh = highest[7](close)
myLow = lowest[7](close)

11 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

SMA
Longer historyRe-run on up to 1,000,000 barsS&P 500 · Daily · older data 59.21 EUR

S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.

S&P 500 · Daily

Bars available14,000
Net, standard 200,000-bar run5,039.96 EUR
Net, long run5,099.17 EUR
Net on the older data alone59.21 EUR
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Double Seven Close Reversion in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 11 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.21 over 569 trades.

How large was the drawdown?

The best run had a maximum drawdown of 559 EUR at the tested position size, against a net result of 5,040 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

CCI Sign With EMA Alignment

Best run on the same market, S&P 500.

1.23 PF · 1,253 trades

RSI Zone Bounce Long

Also a mean reversion strategy.

2.20 PF · 166 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

Copy trading on US indices is available to ProRealAlgos members as spots open.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs