The strategy buys when the high exceeds the last confirmed pivot high, using pivots with 3 bars on each side. It closes the long when the low falls below the last confirmed pivot low.
Best run of 17. Nikkei 225, Daily, spread 10, from run pf:2026-10-10-NIKKEI-D.tsv:4.
| Period | Up to 2026-10-10 |
| Instrument | Nikkei 225, Daily |
| Spread | 10 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | Daily | 1.72 | 256 | 46.48 | 57,397 USD | -9,206 |
| Dow Jones | Daily | 1.65 | 367 | 44.14 | 25,694 EUR | -5,754 |
| USD/JPY | 1 hour | 1.16 | 3,537 | 38.93 | 1,044,240 USD | -177,720 |
| USD/JPY | Daily | n/a | 303 | 36.63 | 750,200 USD | -579,250 |
| USD/JPY | 30 min | n/a | 5,062 | 35.76 | 457,890 USD | -187,260 |
| Silver | Daily | n/a | 315 | 33.02 | 30,521 USD | -24,170 |
| Nikkei 225 | 4 hours | n/a | 632 | 40.66 | 24,974 USD | -11,551 |
| Brent Crude | Daily | n/a | 121 | 46.28 | 13,492 EUR | -6,054 |
| Nasdaq 100 | Daily | n/a | 283 | 43.11 | 13,031 EUR | -3,815 |
| Nikkei 225 | 1 hour | n/a | 2,434 | 37.72 | 11,619 USD | -10,930 |
| DAX 40 | Daily | n/a | 374 | 42.25 | 9,178 EUR | -5,718 |
| DAX 40 | 4 hours | n/a | 881 | 40.64 | 5,581 EUR | -5,488 |
| Gold | Daily | n/a | 320 | 39.06 | 3,024 EUR | -1,360 |
| Gold | 4 hours | n/a | 832 | 41.95 | 2,707 EUR | -1,182 |
| S&P 500 | Daily | n/a | 381 | 41.21 | 2,365 EUR | -1,010 |
| Gold | 1 hour | n/a | 3,273 | 36.05 | 1,735 EUR | -1,106 |
| S&P 500 | 4 hours | n/a | 924 | 41.45 | 1,237 EUR | -1,104 |
Charts
Top 10 of 17 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Pivot Point Breakout Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE lasthigh = 0 ONCE lastlow = 0 ONCE hashigh = 0 ONCE haslow = 0
24 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 11,000 bars.
| Bars available | 11,000 |
| Net, standard 200,000-bar run | 57,396.90 USD |
| Net, long run | 57,396.90 USD |
| Net on the older data alone | 0.00 USD |
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 Nikkei 225, Daily, with a profit factor of 1.72 over 256 trades.
The best run had a maximum drawdown of 9,206 USD at the tested position size, against a net result of 57,397 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.