Trades when price crosses the most recent confirmed pivot low (support) or pivot high (resistance) while within 0.4% of that level. Longs cross above support and shorts cross below resistance, each with a 10% stop and 26% target.
Best run of 4. DAX 40, 4 hours, spread 3, from run pf:2026-10-10-DAX40-4h.tsv:3.
| Period | Up to 2026-10-10 |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 4 hours | 1.33 | 726 | 61.57 | 21,751 EUR | -5,192 |
| Dow Jones | 4 hours | n/a | 278 | 61.87 | 16,459 EUR | -11,770 |
| Silver | Daily | n/a | 107 | 47.66 | 10,608 USD | -10,573 |
| Brent Crude | 4 hours | n/a | 244 | 61.48 | 9,894 EUR | -5,757 |
Charts
The code
// ============================================================== // Pivot Support Resistance Cross // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE res = 0 ONCE sup = 0
33 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 4 market and timeframe combinations. The best run was DAX 40, 4 hours, with a profit factor of 1.33 over 726 trades.
The best run had a maximum drawdown of 5,192 EUR at the tested position size, against a net result of 21,751 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.