Join waitlist
Strategies / Pattern / Three Pivot Reversal Pattern

Three Pivot Reversal Pattern

Looks for three alternating swing points that form a higher low or lower high, and trades only when the 14-period ATR percentage is at most 0.85 times its 50-bar average. Each trade has a 9.5% stop, a 0.98% target and a 480-bar time limit.

PatternLong & shortIntradayGold30 min
n/aProfit factor
1,307Net profit EUR
79.06%Win rate
487Trades
-638Max drawdown
2.68Avg trade

Best run of 18. Gold, 30 min, spread 0.6, from run sweeps:2026-10-03-GOLD-30m-opt.tsv:16.

Entry rules, long

  1. The 14-period ATR as a percentage of price is at most 0.85 times its 50-bar average.
  2. No position is open.
  3. This is the first signal for the current middle pivot.

Entry rules, short

  1. The 14-period ATR as a percentage of price is at most 0.85 times its 50-bar average.
  2. No position is open.
  3. This is the first signal for the current middle pivot.

Exit rules

  1. The position closes at market 480 bars after entry.

Test conditions

PeriodUp to 2026-10-03
InstrumentGold, 30 minutes
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-03

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run30 minn/a 48779.061,307 EUR-638
USD/JPY2 minn/a 30252.32132,150 USD-70,550
Nikkei 22515 minn/a 43973.8020,971 USD-15,260
DAX 4030 minn/a 46880.1314,932 EUR-4,745
Nikkei 2252 minn/a 34960.7413,251 USD-8,738
Silver1 hourn/a 41490.8210,615 USD-4,491
Dow Jones3 minn/a 31556.839,717 EUR-4,479
Dow Jones1 hourn/a 10785.989,481 EUR-6,295
Dow Jones4 hoursn/a 21100.007,220 EUR-2,035
DAX 401 hourn/a 26683.464,625 EUR-3,557
GBP/USD15 minn/a 36359.504,269 USD-2,117
Nasdaq 1004 hoursn/a 5894.833,859 EUR-1,543
GBP/USD4 hoursn/a 4789.363,559 USD-1,199
FTSE 10015 minn/a 43965.153,184 EUR-2,214
US Crude Oil1 minn/a 35466.672,261 EUR-1,713
Nasdaq 100Dailyn/a 2382.611,189 EUR-329
S&P 5004 hoursn/a 4891.67582 EUR-534
S&P 500Dailyn/a 24100.00267 EUR-50.72

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Three Pivot Reversal Pattern
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE pzero = 0
ONCE pone = 0
ONCE ptwo = 0
ONCE count = 0
ONCE pos = 0
ONCE pattern = 1
ONCE entrybar = 0

atrpct = AverageTrueRange[14](close) / close * 100
atrsma = Average[50](atrpct)

66 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

ATRSMA
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Three Pivot Reversal Pattern 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 18 market and timeframe combinations. The best run by trade count was Gold, 30 minutes, with 487 trades.

How large was the drawdown?

The best run had a maximum drawdown of 638 EUR at the tested position size, against a net result of 1,307 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Breakout Reversal

Also a pattern strategy.

n/a PF · 459 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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