Buys when the close rises above a trigger line, the 95% quantile of the last 20 closes minus the 20-bar standard deviation of closes. The long is closed when the close falls to or below that trigger.
Best run of 13. DAX 40, 4 hours, spread 3, from run pf:2026-10-13-DAX40-4h.tsv:5.
| Period | Up to 2026-10-13 |
| Instrument | DAX 40, 4 hours |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 4 hours | 1.19 | 1,643 | 31.16 | 13,332 EUR | -3,230 |
| Nikkei 225 | Daily | n/a | 656 | 31.86 | 36,831 USD | -15,637 |
| Silver | Daily | n/a | 658 | 26.29 | 31,297 USD | -25,328 |
| Nikkei 225 | 4 hours | n/a | 1,413 | 29.16 | 23,990 USD | -9,849 |
| Dow Jones | Daily | n/a | 849 | 32.63 | 19,112 EUR | -6,059 |
| Nasdaq 100 | Daily | n/a | 639 | 30.67 | 13,466 EUR | -4,603 |
| Nasdaq 100 | 4 hours | n/a | 1,623 | 31.12 | 11,903 EUR | -4,131 |
| DAX 40 | Daily | n/a | 823 | 32.93 | 6,692 EUR | -4,591 |
| US Crude Oil | 4 hours | n/a | 1,209 | 30.36 | 6,076 EUR | -4,293 |
| Gold | Daily | n/a | 750 | 28.67 | 2,653 EUR | -1,044 |
| Gold | 4 hours | n/a | 1,663 | 28.92 | 2,141 EUR | -1,630 |
| S&P 500 | Daily | n/a | 875 | 30.74 | 2,115 EUR | -974 |
| S&P 500 | 4 hours | n/a | 1,702 | 30.38 | 1,413 EUR | -784 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Quantile Trigger Band Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false stdev = STD[20](close) top = highest[20](close) cnt = 0 second = 0 found = 0 FOR myI = 0 TO 19 DO IF close[myI] = top THEN cnt = cnt + 1
22 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 13 market and timeframe combinations. The best run was DAX 40, 4 hours, with a profit factor of 1.19 over 1,643 trades.
The best run had a maximum drawdown of 3,230 EUR at the tested position size, against a net result of 13,332 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.