The strategy buys when close moves above the previous bar's most recent confirmed pivot high, using pivots with 10 bars on each side. It exits when close falls below the previous bar's pivot low level.
Best run of 37. Gold, 15 min, spread 0.6, from run pf:2026-10-12-GOLD-15m.tsv:1.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 15 minutes |
| Spread | 0.6 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 15 min | 1.25 | 1,370 | 35.47 | 2,395 EUR | -542 |
| USD/JPY | 15 min | 1.24 | 1,313 | 41.05 | 568,870 USD | -112,780 |
| USD/JPY | Daily | n/a | 78 | 44.87 | 972,890 USD | -568,400 |
| USD/JPY | 30 min | n/a | 1,332 | 39.34 | 525,590 USD | -201,560 |
| USD/JPY | 10 min | n/a | 1,362 | 38.99 | 411,980 USD | -150,660 |
| USD/JPY | 4 hours | n/a | 230 | 38.70 | 339,940 USD | -298,290 |
| EUR/USD | Daily | n/a | 72 | 43.06 | 94,328 USD | -35,305 |
| Nikkei 225 | Daily | n/a | 79 | 41.77 | 39,178 USD | -12,258 |
| Nikkei 225 | 4 hours | n/a | 163 | 46.01 | 35,105 USD | -8,792 |
| Nikkei 225 | 30 min | n/a | 1,287 | 39.16 | 29,322 USD | -10,521 |
| Nikkei 225 | 1 hour | n/a | 638 | 40.75 | 27,572 USD | -8,102 |
| Dow Jones | Daily | n/a | 105 | 43.81 | 20,653 EUR | -7,941 |
| Nasdaq 100 | Daily | n/a | 82 | 54.88 | 17,542 EUR | -5,444 |
| Nikkei 225 | 3 min | n/a | 1,410 | 35.74 | 15,668 USD | -9,400 |
| Nasdaq 100 | 4 hours | n/a | 218 | 48.62 | 14,427 EUR | -4,496 |
| Brent Crude | Daily | n/a | 34 | 44.12 | 12,173 EUR | -6,668 |
| US Crude Oil | Daily | n/a | 80 | 41.25 | 11,902 EUR | -5,318 |
| Nasdaq 100 | 15 min | n/a | 1,496 | 39.17 | 11,729 EUR | -5,572 |
| Nasdaq 100 | 1 hour | n/a | 847 | 40.14 | 10,529 EUR | -4,123 |
| Dow Jones | 4 hours | n/a | 75 | 46.67 | 9,808 EUR | -8,168 |
| DAX 40 | 4 hours | n/a | 217 | 44.24 | 7,650 EUR | -4,825 |
| Nasdaq 100 | 10 min | n/a | 1,485 | 35.49 | 7,604 EUR | -4,931 |
| Nasdaq 100 | 30 min | n/a | 1,487 | 39.41 | 5,923 EUR | -4,700 |
| DAX 40 | 1 hour | n/a | 777 | 42.60 | 5,815 EUR | -5,515 |
| S&P 500 | Daily | n/a | 96 | 47.92 | 5,374 EUR | -1,132 |
| Nasdaq 100 | 5 min | n/a | 1,410 | 36.60 | 4,837 EUR | -3,282 |
| DAX 40 | 15 min | n/a | 1,397 | 37.72 | 4,819 EUR | -3,202 |
| Gold | 1 hour | n/a | 793 | 42.12 | 3,059 EUR | -856 |
| Gold | 30 min | n/a | 1,346 | 39.82 | 2,882 EUR | -726 |
| Gold | Daily | n/a | 95 | 40.00 | 2,802 EUR | -1,173 |
| S&P 500 | 4 hours | n/a | 223 | 40.81 | 2,691 EUR | -986 |
| Gold | 4 hours | n/a | 211 | 45.02 | 2,355 EUR | -1,324 |
| FTSE 100 | 1 hour | n/a | 755 | 38.81 | 2,041 EUR | -1,800 |
| Gold | 10 min | n/a | 1,396 | 35.74 | 1,543 EUR | -626 |
| S&P 500 | 15 min | n/a | 1,458 | 38.82 | 1,526 EUR | -1,078 |
| Gold | 5 min | n/a | 1,385 | 36.75 | 1,337 EUR | -550 |
| S&P 500 | 5 min | n/a | 1,392 | 36.42 | 1,318 EUR | -647 |
Charts
Top 10 of 37 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Pivot Level Breakout Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE ph = 0 ONCE pl = 0 himax = highest[10](high) lomin = lowest[10](low)
19 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 37 market and timeframe combinations. The best run was Gold, 15 minutes, with a profit factor of 1.25 over 1,370 trades.
The best run had a maximum drawdown of 542 EUR at the tested position size, against a net result of 2,395 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.