Join waitlist
Strategies / Breakout / Pivot Level Breakout

Pivot Level Breakout

The strategy buys when price closes above the latest confirmed swing high and sells short below the latest swing low, using each pivot once. Stops sit beyond the signal bar and targets match the stop distance.

BreakoutLong & shortIntradayDow Jones5 min
n/aProfit factor
4,831Net profit EUR
51.44%Win rate
418Trades
-2,477Max drawdown
11.56Avg trade

Best run of 20. Dow Jones, 5 min, spread 3, from run sweeps:2026-10-07-DOW30-5m-opt.tsv:10.

Entry rules, long

  1. A pivot high is the highest high of 180 bars on each side of it, confirmed 180 bars after it forms.

Entry rules, short

  1. The close is below the last confirmed pivot low, and that pivot has not already triggered a trade.

Exit rules

  1. Short trades mirror this: the stop is the signal bar high plus 0.111 percent of the close, and the target is the same distance below.

Test conditions

PeriodUp to 2026-10-07
InstrumentDow Jones, 5 minutes
Spread3 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-07

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Dow JonesBest run5 minn/a 41851.444,831 EUR-2,477
Silver1 hourn/a 19053.167,965 USD-2,472
Silver2 minn/a 34753.896,023 USD-2,590
Dow Jones30 minn/a 14153.903,256 EUR-1,241
Dow Jones4 hoursn/a 1758.821,908 EUR-1,110
US Crude Oil15 minn/a 34057.061,864 EUR-1,649
DAX 404 hoursn/a 5356.601,638 EUR-931
DAX 4030 minn/a 35552.111,630 EUR-1,163
Brent Crude10 minn/a 33851.181,479 EUR-996
US Crude OilDailyn/a 1656.251,394 EUR-454
Brent Crude30 minn/a 19752.791,370 EUR-1,167
Brent Crude1 hourn/a 9152.75853 EUR-641
Gold1 hourn/a 18055.56513 EUR-134
S&P 50030 minn/a 35650.56438 EUR-198
Gold30 minn/a 32456.17386 EUR-206
Gold4 hoursn/a 4965.31345 EUR-66.30
Gold10 minn/a 33754.01297 EUR-201
Gold15 minn/a 33554.33293 EUR-207
Gold3 minn/a 32848.48290 EUR-283
Gold5 minn/a 34650.00240 EUR-163

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 Level Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: 5 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lasttop = 0
ONCE lastbot = 0
ONCE havetop = 0
ONCE havebot = 0
ONCE topcrossed = 0
ONCE botcrossed = 0

len = 180
bufpct = 0.111
rr = 1.0

34 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.
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 2,477 EUR is large next to the net profit of 4,831 EUR.

Questions

About this strategy

Can I run Pivot Level Breakout 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 by trade count was Dow Jones, 5 minutes, with 418 trades.

How large was the drawdown?

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

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Turtle Trade

Best run on the same market, Dow Jones.

2.42 PF · 6,324 trades

Big Candle Breakout

Also a breakout strategy.

n/a PF · 4,636 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