Join waitlist
Strategies / Pattern / Pivot Reversal With ATR Bracket

Pivot Reversal With ATR Bracket

Buys when a new pivot low is below the prior pivot low and the close clears the last pivot high, and sells short on the mirrored setup. Each trade uses a stop at 1.5 ATR(14) and a target at 3 ATR(14).

PatternLong & shortSwingNasdaq 1004 hours
n/aProfit factor
4,261Net profit EUR
33.76%Win rate
237Trades
-1,328Max drawdown
17.98Avg trade

Best run of 7. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-11-NAS100-4h-opt.tsv:80.

Entry rules, long

  1. A pivot low is confirmed when the low 4 bars back is the lowest low of the last 9 bars.
  2. The new pivot low is below the previous pivot low.

Entry rules, short

  1. A pivot high is confirmed when the high 4 bars back is the highest high of the last 9 bars.
  2. The new pivot high is above the previous pivot high.

Exit rules

  1. A stop sits 1.5 times ATR(14) from the fill price.
  2. A target sits 3 times ATR(14) from the fill price.

Test conditions

PeriodUp to 2026-10-11
InstrumentNasdaq 100, 4 hours
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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run4 hoursn/a 23733.764,261 EUR-1,328
Nikkei 225Dailyn/a 7048.5711,657 USD-2,317
Silver4 hoursn/a 15738.2210,896 USD-5,841
DAX 404 hoursn/a 17435.632,785 EUR-1,349
US Crude OilDailyn/a 6540.002,637 EUR-2,483
GoldDailyn/a 5545.45279 EUR-108
Gold4 hoursn/a 16035.00222 EUR-202

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Pivot Reversal With ATR Bracket
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lastlow = 0
ONCE lasthigh = 0

prevlow = lastlow
prevhigh = lasthigh
pivlow = 0
pivhigh = 0

29 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
  • 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 Pivot Reversal With ATR Bracket 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 7 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 237 trades.

How large was the drawdown?

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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 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.

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