A long-only stochastic system that buys when the %K line crosses above %D while %K is below 90. It exits on a %K cross below %D with %K above 60, or at an 8% stop or 14% target.
Best run of 15. EUR/USD, 3 min, spread 1, from run pf:2026-10-13-EURUSD-3m.tsv:2.
| Period | Up to 2026-10-13 |
| Instrument | EUR/USD, 3 minutes |
| Spread | 1 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 |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 3 min | 1.75 | 5,666 | 40.36 | 462,125 USD | -81,583 |
| Gold | Daily | 1.67 | 465 | 54.19 | 3,815 EUR | -783 |
| Silver | Daily | n/a | 441 | 53.29 | 31,791 USD | -18,243 |
| Nikkei 225 | 4 hours | n/a | 899 | 52.95 | 26,970 USD | -14,067 |
| Dow Jones | Daily | n/a | 611 | 53.68 | 25,493 EUR | -11,394 |
| Dow Jones | 4 hours | n/a | 370 | 55.95 | 22,547 EUR | -9,961 |
| Dow Jones | 1 hour | n/a | 1,357 | 53.21 | 22,402 EUR | -10,552 |
| DAX 40 | 4 hours | n/a | 1,109 | 53.02 | 19,447 EUR | -7,780 |
| Nasdaq 100 | 4 hours | n/a | 1,294 | 49.15 | 17,353 EUR | -4,793 |
| Nasdaq 100 | 1 hour | n/a | 4,349 | 45.71 | 10,216 EUR | -6,152 |
| DAX 40 | Daily | n/a | 684 | 50.00 | 8,832 EUR | -7,001 |
| Nasdaq 100 | Daily | n/a | 565 | 49.38 | 7,157 EUR | -4,569 |
| S&P 500 | 4 hours | n/a | 1,236 | 51.21 | 3,863 EUR | -1,611 |
| Gold | 4 hours | n/a | 1,027 | 52.87 | 2,808 EUR | -1,184 |
| S&P 500 | Daily | n/a | 696 | 46.41 | 2,377 EUR | -1,285 |
Charts
Top 10 of 15 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Stochastic Crossover Long With Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE raw = 50 ll = lowest[9](low) hh = highest[9](high)
21 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 15 market and timeframe combinations. The best run was EUR/USD, 3 minutes, with a profit factor of 1.75 over 5,666 trades.
The best run had a maximum drawdown of 81,583 USD at the tested position size, against a net result of 462,125 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.