The strategy buys when the TRIX histogram is positive and the Stochastic RSI is below 0.8. It closes the long when the histogram turns negative and the Stochastic RSI is above 0.2.
Best run of 19. Gold, Daily, spread 0.6, from run pf:2026-10-05-GOLD-D.tsv:8.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | Daily | 1.90 | 376 | 47.34 | 3,207 EUR | -786 |
| Dow Jones | Daily | 1.67 | 402 | 53.48 | 28,887 EUR | -5,437 |
| Gold | 1 hour | 1.32 | 3,223 | 45.27 | 4,798 EUR | -565 |
| USD/JPY | 1 hour | 1.16 | 3,800 | 46.05 | 1,092,650 USD | -172,485 |
| USD/JPY | 30 min | n/a | 5,404 | 43.41 | 397,210 USD | -184,860 |
| EUR/USD | 1 hour | n/a | 4,844 | 44.03 | 74,245 USD | -42,479 |
| Nikkei 225 | Daily | n/a | 317 | 48.58 | 51,206 USD | -13,167 |
| Nikkei 225 | 1 hour | n/a | 2,668 | 43.63 | 25,822 USD | -13,329 |
| Nikkei 225 | 4 hours | n/a | 709 | 47.53 | 24,570 USD | -11,975 |
| DAX 40 | Daily | n/a | 424 | 50.94 | 13,240 EUR | -5,206 |
| DAX 40 | 1 hour | n/a | 3,012 | 46.58 | 10,680 EUR | -4,336 |
| Nasdaq 100 | 4 hours | n/a | 887 | 47.69 | 10,643 EUR | -6,069 |
| US Crude Oil | Daily | n/a | 321 | 47.04 | 10,191 EUR | -6,913 |
| Brent Crude | 1 hour | n/a | 1,733 | 45.35 | 9,015 EUR | -4,835 |
| Nasdaq 100 | Daily | n/a | 308 | 51.95 | 7,724 EUR | -4,757 |
| Nasdaq 100 | 1 hour | n/a | 3,353 | 44.26 | 6,682 EUR | -3,627 |
| FTSE 100 | Daily | n/a | 325 | 48.31 | 3,650 EUR | -2,338 |
| S&P 500 | Daily | n/a | 436 | 47.71 | 3,231 EUR | -939 |
| S&P 500 | 4 hours | n/a | 871 | 47.19 | 1,888 EUR | -1,180 |
Charts
Top 10 of 19 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // TRIX Momentum Stochastic RSI Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false trixa = ExponentialAverage[9](close) trixb = ExponentialAverage[9](trixa) trixc = ExponentialAverage[9](trixb) pct = (trixc / trixc[1] - 1) * 100 signal = Average[21](pct) histo = pct - signal myRsi = RSI[14](close) rsihi = Highest[14](myRsi) rsilo = Lowest[14](myRsi) myRange = rsihi - rsilo
10 more lines: the entry and exit rules.
Setup
Gold had no history beyond the standard run, so both runs used 13,000 bars.
| Bars available | 13,000 |
| Net, standard 200,000-bar run | 3,206.90 EUR |
| Net, long run | 3,206.90 EUR |
| Net on the older data alone | 0.00 EUR |
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 19 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 1.90 over 376 trades.
The best run had a maximum drawdown of 786 EUR at the tested position size, against a net result of 3,207 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.