The strategy buys when a bar moves above the prior 5-bar high and below the prior 5-bar low, and its close crosses back above that low. It mirrors this to sell short, with stops at the 10-bar extreme and targets at twice the risk.
Best run of 11. DAX 40, 1 hour, spread 3, from run sweeps:2026-10-11-DAX40-1h-opt.tsv:97.
| Period | Up to 2026-10-11 |
| Instrument | DAX 40, 1 hour |
| Spread | 3 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 1 hour | n/a | 437 | 34.10 | 1,873 EUR | -1,537 |
| Silver | 1 hour | n/a | 198 | 29.80 | 8,826 USD | -5,470 |
| Nikkei 225 | 10 min | n/a | 278 | 32.37 | 5,639 USD | -2,905 |
| Nasdaq 100 | 4 hours | n/a | 118 | 37.29 | 4,807 EUR | -3,058 |
| Dow Jones | 4 hours | n/a | 37 | 43.24 | 4,664 EUR | -3,279 |
| Dow Jones | Daily | n/a | 6 | 33.33 | 3,718 EUR | -2,096 |
| Brent Crude | Daily | n/a | 5 | 80.00 | 2,564 EUR | -313 |
| Brent Crude | 4 hours | n/a | 44 | 43.18 | 2,484 EUR | -1,393 |
| US Crude Oil | Daily | n/a | 4 | 50.00 | 1,982 EUR | -408 |
| S&P 500 | 4 hours | n/a | 98 | 32.65 | 874 EUR | -520 |
| Nasdaq 100 | 3 min | n/a | 228 | 31.58 | 801 EUR | -723 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Break of Structure Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ph = highest[5](high) pl = lowest[5](low) swh = ph[1] swl = pl[1] rlow = lowest[10](low) rhigh = highest[10](high)
32 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 11 market and timeframe combinations. The best run by trade count was DAX 40, 1 hour, with 437 trades.
The best run had a maximum drawdown of 1,537 EUR at the tested position size, against a net result of 1,873 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.