Pairs a reversal state built from a stochastic with an Inertia state based on a 14-bar EMA of the Relative Volatility Index. It buys when both states are up, sells short when both are down, and closes any position when they disagree.
Best run of 7. Gold, 30 min, spread 0.6, from run sweeps:2026-10-11-GOLD-30m-opt.tsv:45.
| Period | Up to 2026-10-11 |
| Instrument | Gold, 30 minutes |
| 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 | 30 min | n/a | 4,494 | 36.11 | 1,316 EUR | -1,095 |
| USD/JPY | Daily | n/a | 270 | 37.41 | 2,169,790 USD | -760,110 |
| Brent Crude | Daily | n/a | 115 | 35.65 | 11,631 EUR | -9,480 |
| DAX 40 | 1 hour | n/a | 2,454 | 38.59 | 8,755 EUR | -6,882 |
| Gold | Daily | n/a | 269 | 35.69 | 2,208 EUR | -1,264 |
| Gold | 1 hour | n/a | 2,695 | 34.10 | 1,491 EUR | -1,031 |
| Gold | 4 hours | n/a | 692 | 36.56 | 1,064 EUR | -906 |
Charts
The code
// ============================================================== // Reversal Pattern With Inertia Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE postwo = 0 ONCE nu = 0 ONCE nd = 0 ONCE rvi = 50 ll = lowest[14](low) hh = highest[14](high)
64 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 7 market and timeframe combinations. The best run by trade count was Gold, 30 minutes, with 4,494 trades.
The best run had a maximum drawdown of 1,095 EUR at the tested position size, against a net result of 1,316 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.