Join waitlist
Strategies / Mean reversion / Pullback and Dip Buying Long

Pullback and Dip Buying Long

Buys on a close above the 200-period average but below the 10-period average, or on a close over 14% below the 52-bar high. Exits when the close is above the 10-period average and below the prior low, or after a 15% fall from entry.

Mean reversionLong onlySwingS&P 500Daily
2.39Profit factor
8,052Net profit EUR
70.52%Win rate
441Trades
-1,192Max drawdown
18.26Avg trade

Best run of 14. S&P 500, Daily, spread 1, from run pf:2026-10-12-USA500-D.tsv:18.

Entry rules, long

  1. Or the close is more than 14% below the highest high of the last 52 bars.

Exit rules

  1. The close is more than 15% below the entry price, measured against the close.

Test conditions

PeriodUp to 2026-10-12
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best runDaily2.39 44170.528,052 EUR-1,192
Nasdaq 100Daily2.21 40168.8329,735 EUR-4,537
Nasdaq 1004 hours1.67 83368.0723,502 EUR-2,775
S&P 5004 hours1.56 82267.405,503 EUR-850
EUR/USDDailyn/a 23859.6688,373 USD-44,690
Nikkei 2254 hoursn/a 55062.0039,669 USD-9,420
Nikkei 225Dailyn/a 37768.1737,168 USD-20,937
Dow JonesDailyn/a 39869.3534,797 EUR-11,492
Dow Jones4 hoursn/a 23769.2018,188 EUR-6,134
DAX 40Dailyn/a 54961.3815,834 EUR-5,943
Dow Jones1 hourn/a 79762.3613,052 EUR-7,010
FTSE 100Dailyn/a 35367.717,865 EUR-3,642
Nasdaq 10030 minn/a 3,96458.637,169 EUR-3,891
GoldDailyn/a 31360.382,703 EUR-1,448

Charts

Results by run

Top 10 of 14 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

// ==============================================================
// Pullback and Dip Buying Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE buyprice = 0

malong = Average[200](close)
mashort = Average[10](close)
hh = highest[52](high)
drop = (hh - close) / hh * 100

buycond = 0

20 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
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Pullback and Dip Buying Long 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 14 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.39 over 441 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,192 EUR at the tested position size, against a net result of 8,052 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

One Notch Long

Also a mean reversion strategy.

2.38 PF · 161 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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