The strategy buys at market when the stochastic reversal state is bullish and the 25-bar Mass Index is below 26.5, and sells short when both are bearish with the index above 26.5. Open positions close when the two states disagree.
Best run of 13. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:13.
| Period | Up to 2026-10-12 |
| Instrument | Silver, 1 hour |
| Spread | 2 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 |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 4.42 | 1,639 | 43.50 | 612,415 USD | -17,012 |
| USD/JPY | Daily | n/a | 197 | 43.65 | 1,330,130 USD | -604,280 |
| USD/JPY | 1 hour | n/a | 1,998 | 44.99 | 441,510 USD | -297,720 |
| Nikkei 225 | Daily | n/a | 163 | 51.53 | 44,277 USD | -11,410 |
| Silver | 4 hours | n/a | 409 | 44.99 | 40,400 USD | -17,083 |
| Dow Jones | Daily | n/a | 168 | 48.21 | 25,961 EUR | -15,200 |
| Nikkei 225 | 4 hours | n/a | 376 | 44.15 | 15,442 USD | -11,466 |
| DAX 40 | Daily | n/a | 157 | 47.13 | 11,065 EUR | -5,706 |
| Nasdaq 100 | 4 hours | n/a | 486 | 42.80 | 9,634 EUR | -5,670 |
| GBP/USD | 4 hours | n/a | 461 | 43.17 | 4,126 USD | -3,777 |
| S&P 500 | Daily | n/a | 196 | 45.41 | 3,200 EUR | -1,274 |
| Gold | 1 hour | n/a | 1,734 | 43.37 | 2,656 EUR | -883 |
| Gold | 4 hours | n/a | 427 | 44.03 | 2,501 EUR | -931 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Stochastic Reversal With Mass Index // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE posmass = 0 ll = lowest[14](low) hh = highest[14](high)
56 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 13 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 4.42 over 1,639 trades.
The best run had a maximum drawdown of 17,012 USD at the tested position size, against a net result of 612,414 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.