The strategy buys when price breaks above a confirmed pivot high and sells short when price breaks below a confirmed pivot low, with each level used once. Every trade uses a 1% stop loss and a 1.5% profit target.
Best run of 17. USD/JPY, 10 min, spread 1, from run pf:2026-10-13-USDJPY-10m.tsv:1.
| Period | Up to 2026-10-13 |
| Instrument | USD/JPY, 10 minutes |
| Spread | 1 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 10 min | 1.23 | 1,710 | 37.72 | 922,170 USD | -187,200 |
| USD/JPY | 30 min | n/a | 1,784 | 38.73 | 620,490 USD | -279,550 |
| USD/JPY | 5 min | n/a | 1,659 | 35.38 | 453,900 USD | -170,560 |
| USD/JPY | 15 min | n/a | 1,782 | 37.15 | 428,330 USD | -422,460 |
| USD/JPY | Daily | n/a | 192 | 44.27 | 348,450 USD | -116,410 |
| EUR/USD | Daily | n/a | 171 | 46.20 | 35,193 USD | -10,041 |
| Nasdaq 100 | 1 hour | n/a | 1,843 | 38.09 | 10,686 EUR | -3,325 |
| Nasdaq 100 | 30 min | n/a | 2,439 | 39.11 | 10,664 EUR | -3,199 |
| DAX 40 | 15 min | n/a | 2,098 | 37.04 | 6,726 EUR | -6,093 |
| GBP/USD | Daily | n/a | 200 | 48.00 | 6,422 USD | -2,507 |
| Nasdaq 100 | 10 min | n/a | 2,178 | 35.31 | 6,316 EUR | -5,966 |
| Gold | 1 hour | n/a | 1,635 | 41.28 | 1,657 EUR | -875 |
| Gold | 5 min | n/a | 1,892 | 34.78 | 1,634 EUR | -984 |
| Brent Crude | Daily | n/a | 67 | 49.25 | 1,503 EUR | -606 |
| Gold | 3 min | n/a | 1,822 | 35.35 | 1,024 EUR | -1,000 |
| Gold | 4 hours | n/a | 459 | 44.44 | 937 EUR | -259 |
| Gold | Daily | n/a | 194 | 39.18 | 295 EUR | -140 |
Charts
Top 10 of 17 runs. The full list is in the table above.
The code
// ============================================================== // Pivot Level Breakout With Fixed Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE uph = 0 ONCE upl = 0 ONCE phact = 0 ONCE plact = 0 ONCE fixph = 0 ONCE fixpl = 0 myBuy = 0 mySell = 0
41 more lines: the entry and exit rules.
Setup
Questions
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.
It was tested on 17 market and timeframe combinations. The best run was USD/JPY, 10 minutes, with a profit factor of 1.23 over 1,710 trades.
The best run had a maximum drawdown of 187,200 USD at the tested position size, against a net result of 922,170 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.