Buys 1 contract when the slow stochastic %K or %D rises from below 20 to above 20. Sells the long when either line falls from above 80 to below 80.
Best run of 14. DAX 40, Daily, spread 3, from run pf:2026-10-04-DAX40-D.tsv:4.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | Daily | 1.84 | 378 | 55.82 | 17,588 EUR | -3,210 |
| Nasdaq 100 | 4 hours | 1.59 | 662 | 61.93 | 17,345 EUR | -2,908 |
| Nikkei 225 | 4 hours | 1.44 | 556 | 62.77 | 35,320 USD | -8,477 |
| Dow Jones | Daily | n/a | 309 | 68.28 | 24,025 EUR | -8,615 |
| Dow Jones | 4 hours | n/a | 211 | 63.98 | 17,147 EUR | -9,941 |
| DAX 40 | 4 hours | n/a | 627 | 62.36 | 11,628 EUR | -7,387 |
| Nasdaq 100 | Daily | n/a | 237 | 61.60 | 11,409 EUR | -3,903 |
| Dow Jones | 30 min | n/a | 1,686 | 62.69 | 10,175 EUR | -7,779 |
| Nasdaq 100 | 1 hour | n/a | 2,487 | 56.45 | 9,567 EUR | -5,198 |
| Dow Jones | 1 hour | n/a | 803 | 62.14 | 8,450 EUR | -8,075 |
| FTSE 100 | Daily | n/a | 265 | 72.45 | 8,125 EUR | -3,158 |
| S&P 500 | 4 hours | n/a | 677 | 62.19 | 3,172 EUR | -1,274 |
| S&P 500 | Daily | n/a | 323 | 62.85 | 2,983 EUR | -1,103 |
| Gold | Daily | n/a | 295 | 55.59 | 1,228 EUR | -1,106 |
Charts
Top 10 of 14 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Slow Stochastic Level Cross // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ll = Lowest[10](low) hh = Highest[10](high)
23 more lines: the entry and exit rules.
Setup
DAX 40 had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 17,587.80 EUR |
| Net, long run | 17,915.40 EUR |
| Net on the older data alone | 327.60 EUR |
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 14 market and timeframe combinations. The best run was DAX 40, Daily, with a profit factor of 1.84 over 378 trades.
The best run had a maximum drawdown of 3,210 EUR at the tested position size, against a net result of 17,588 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.