The strategy buys one contract when a blended stochastic line and its 30-bar volume-weighted average both start rising together, after a mixed reading. It closes the long when both start falling together, after a mixed reading.
Best run of 15. S&P 500, Daily, spread 1, from run pf:2026-10-12-USA500-D.tsv:21.
| Period | Up to 2026-10-12 |
| Instrument | S&P 500, Daily |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 2.24 | 105 | 62.86 | 3,636 EUR | -806 |
| Gold | 4 hours | 1.40 | 1,024 | 40.92 | 3,332 EUR | -540 |
| USD/JPY | Daily | n/a | 133 | 39.85 | 571,870 USD | -169,800 |
| USD/JPY | 4 hours | n/a | 1,113 | 40.07 | 398,400 USD | -362,760 |
| Silver | 4 hours | n/a | 1,049 | 35.75 | 30,421 USD | -14,717 |
| Nikkei 225 | 4 hours | n/a | 592 | 40.03 | 26,471 USD | -8,448 |
| Nikkei 225 | Daily | n/a | 108 | 48.15 | 21,290 USD | -10,023 |
| Nasdaq 100 | Daily | n/a | 111 | 47.75 | 17,024 EUR | -4,629 |
| Dow Jones | 30 min | n/a | 3,203 | 41.74 | 13,998 EUR | -7,977 |
| Nasdaq 100 | 4 hours | n/a | 598 | 43.65 | 10,582 EUR | -4,669 |
| DAX 40 | 4 hours | n/a | 652 | 40.80 | 6,474 EUR | -5,155 |
| DAX 40 | 1 hour | n/a | 2,132 | 39.92 | 4,243 EUR | -4,231 |
| DAX 40 | Daily | n/a | 100 | 37.00 | 3,920 EUR | -3,163 |
| Gold | 1 hour | n/a | 3,599 | 35.82 | 3,082 EUR | -804 |
| S&P 500 | 4 hours | n/a | 638 | 41.54 | 1,258 EUR | -1,118 |
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
// ============================================================== // Dual Stochastic Trend Confirmation // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE ka = 50 ONCE kb = 50 ONCE tsl = 0 lla = lowest[30](low) hha = highest[30](high)
34 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 S&P 500, Daily, with a profit factor of 2.24 over 105 trades.
The best run had a maximum drawdown of 806 EUR at the tested position size, against a net result of 3,636 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.