Join waitlist
Strategies / Pattern / Pivot Zone Retest

Pivot Zone Retest

The strategy trades retests of recent swing zones, going long when a bullish candle closes inside a zone from a swing low and short on the mirror setup. Each trade uses a stop at 7.5 times ATR(14) and a target 1.5 times that distance.

PatternLong & shortSwingGold1 hour
1.50Profit factor
4,395Net profit EUR
42.13%Win rate
489Trades
-869Max drawdown
8.99Avg trade

Best run of 20. Gold, 1 hour, spread 0.6, from run pf:2026-10-04-GOLD-1h.tsv:2.

Entry rules, long

  1. A bullish zone is the high and low of a swing low bar, confirmed 10 bars later.

Entry rules, short

  1. A bearish zone is the high and low of a swing high bar, confirmed 10 bars later.

Exit rules

  1. The target is 1.5 times the stop distance from the fill.

Test conditions

PeriodUp to 2026-10-04
InstrumentGold, 1 hour
Spread0.6 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run1 hour1.50 48942.134,395 EUR-869
USD/JPYDailyn/a 1,61141.9670,870 USD-25,480
Nikkei 22530 minn/a 76442.1542,920 USD-18,257
Nikkei 2251 hourn/a 34442.7330,394 USD-22,631
Dow Jones30 minn/a 34744.6722,154 EUR-8,575
Dow Jones1 hourn/a 19143.4620,495 EUR-10,034
US Crude OilDailyn/a 3655.5619,362 EUR-6,528
Nasdaq 10015 minn/a 80342.3415,997 EUR-6,957
DAX 404 hoursn/a 8943.8214,763 EUR-5,597
Brent Crude10 minn/a 59945.0812,441 EUR-6,360
Brent Crude15 minn/a 67942.569,571 EUR-5,819
FTSE 1004 hoursn/a 8846.599,013 EUR-1,627
DAX 401 hourn/a 44741.838,012 EUR-7,607
Brent Crude1 hourn/a 25939.777,220 EUR-4,466
Nasdaq 10010 minn/a 68540.006,802 EUR-6,709
US Crude Oil10 minn/a 56941.656,355 EUR-6,284
Nasdaq 1001 minn/a 46841.243,036 EUR-2,666
GoldDailyn/a 5145.101,848 EUR-1,249
S&P 5002 minn/a 45840.17929 EUR-612
S&P 5003 minn/a 48441.32835 EUR-812

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Pivot Zone Retest
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE bullh = 0
ONCE bulll = 0
ONCE hasbull = 0
ONCE bearh = 0
ONCE bearl = 0
ONCE hasbear = 0

myAtr = AverageTrueRange[14](close)

46 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

ATR
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 Pivot Zone Retest 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 20 market and timeframe combinations. The best run was Gold, 1 hour, with a profit factor of 1.50 over 489 trades.

How large was the drawdown?

The best run had a maximum drawdown of 869 EUR at the tested position size, against a net result of 4,395 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

KDJ J Line Momentum Long

Uses the same indicator.

4.17 PF · 6,135 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Hidden RSI Divergence ATR Bracket

Also a pattern strategy.

1.50 PF · 228 trades

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

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

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