Buys when the signal crosses under its trigger and sells short on the opposite cross, provided the absolute signal value is above 2 / 2.64. Losing positions are closed after more than 8 bars.
Best run of 3. Gold, Daily, spread 0.6, from run sweeps:2026-10-11-GOLD-D-opt.tsv:12.
| Period | Up to 2026-10-11 |
| Instrument | Gold, Daily |
| Spread | 0.6 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | Daily | n/a | 376 | 28.72 | 1,090 EUR | -984 |
| Silver | Daily | n/a | 341 | 29.91 | 43,792 USD | -11,039 |
| S&P 500 | Daily | n/a | 340 | 30.29 | 2,257 EUR | -790 |
Charts
The code
// ============================================================== // RVI Stochastic Fisher Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE vala = 0.5 ONCE bse = 0 co = close - open hl = high - low vone = (co + 2 * co[1] + 2 * co[2] + co[3]) / 6 vtwo = (hl + 2 * hl[1] + 2 * hl[2] + hl[3]) / 6 num = summation[10](vone) den = summation[10](vtwo)
47 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 3 market and timeframe combinations. The best run by trade count was Gold, Daily, with 376 trades.
The best run had a maximum drawdown of 984 EUR at the tested position size, against a net result of 1,090 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.