A long-only system that buys on a green candle after a buying-pressure oscillator crosses above 45 or 30, provided a 20-bar smoothed average is above a 50-bar one. It exits when the oscillator falls below 70 or the price drops 3% below entry.
Best run of 16. DAX 40, Daily, spread 3, from run pf:2026-10-12-DAX40-D.tsv:2.
| Period | Up to 2026-10-12 |
| Instrument | DAX 40, Daily |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | Daily | 1.44 | 272 | 57.72 | 12,681 EUR | -2,648 |
| USD/JPY | 4 hours | n/a | 419 | 66.35 | 403,320 USD | -255,690 |
| Nikkei 225 | 4 hours | n/a | 398 | 62.06 | 24,908 USD | -9,022 |
| Dow Jones | 4 hours | n/a | 179 | 71.51 | 17,178 EUR | -5,524 |
| Dow Jones | Daily | n/a | 260 | 58.08 | 17,122 EUR | -7,610 |
| DAX 40 | 4 hours | n/a | 450 | 63.56 | 10,239 EUR | -3,023 |
| Nasdaq 100 | Daily | n/a | 352 | 48.01 | 9,796 EUR | -3,245 |
| Dow Jones | 30 min | n/a | 973 | 64.65 | 9,309 EUR | -6,517 |
| Nasdaq 100 | 4 hours | n/a | 601 | 64.23 | 6,154 EUR | -3,849 |
| DAX 40 | 5 min | n/a | 2,403 | 61.67 | 4,368 EUR | -3,346 |
| FTSE 100 | 1 hour | n/a | 1,431 | 62.26 | 3,754 EUR | -2,170 |
| S&P 500 | 4 hours | n/a | 552 | 67.57 | 2,393 EUR | -636 |
| S&P 500 | Daily | n/a | 300 | 63.67 | 2,295 EUR | -812 |
| Gold | 4 hours | n/a | 420 | 60.24 | 1,300 EUR | -966 |
| Gold | Daily | n/a | 249 | 50.60 | 1,214 EUR | -926 |
| Gold | 30 min | n/a | 1,875 | 60.85 | 1,111 EUR | -1,023 |
Charts
Top 10 of 16 runs. The full list is in the table above.
The code
// ============================================================== // Oscillator Cross With Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE lastcond = -1000 ONCE smmat = 0 ONCE smmaf = 0 ONCE seedt = 0 ONCE seedf = 0 hh = max(high, close[1]) ll = min(low, close[1]) bp = close - ll myTr = hh - ll tra = summation[5](myTr) trb = summation[10](myTr) trc = summation[15](myTr)
42 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 16 market and timeframe combinations. The best run was DAX 40, Daily, with a profit factor of 1.44 over 272 trades.
The best run had a maximum drawdown of 2,648 EUR at the tested position size, against a net result of 12,681 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.