Buys when the smoothed %K crosses above %D while %K is below 20, and sells when %K crosses below %D with %K above 60. Each long also has a 2.5% stop loss and a 6% profit target from the entry price.
Best run of 8. Nasdaq 100, 1 hour, spread 3, from run sweeps:2026-10-03-NAS100-1h-opt.tsv:26.
| Period | Up to 2026-10-03 |
| Instrument | Nasdaq 100, 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 1 hour | n/a | 1,700 | 59.65 | 3,952 EUR | -3,628 |
| Dow Jones | 4 hours | n/a | 190 | 64.74 | 13,021 EUR | -5,249 |
| Dow Jones | 1 hour | n/a | 565 | 61.95 | 11,420 EUR | -5,488 |
| DAX 40 | Daily | n/a | 407 | 44.47 | 8,108 EUR | -2,285 |
| Nasdaq 100 | 4 hours | n/a | 573 | 58.81 | 6,164 EUR | -4,343 |
| FTSE 100 | Daily | n/a | 249 | 53.01 | 5,303 EUR | -2,957 |
| Nasdaq 100 | Daily | n/a | 250 | 34.80 | 2,614 EUR | -2,170 |
| S&P 500 | 4 hours | n/a | 530 | 59.81 | 1,464 EUR | -1,231 |
Charts
The code
// ============================================================== // Stochastic Crossover With Stop and Target // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE raw = 50 hh = highest[14](high) ll = lowest[14](low)
20 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 8 market and timeframe combinations. The best run by trade count was Nasdaq 100, 1 hour, with 1,700 trades.
The best run had a maximum drawdown of 3,628 EUR at the tested position size, against a net result of 3,952 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.