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 21. Gold, Daily, spread 0.6, from run pf:2026-10-05-GOLD-D.tsv:7.
| 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 | 375 | 47.20 | 3,207 EUR | -786 |
| Dow Jones | Daily | 1.67 | 400 | 53.75 | 28,911 EUR | -5,437 |
| Gold | 1 hour | 1.32 | 3,222 | 45.25 | 4,791 EUR | -565 |
| USD/JPY | 1 hour | 1.16 | 3,797 | 46.09 | 1,095,000 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,843 | 44.02 | 73,735 USD | -42,479 |
| Nikkei 225 | Daily | n/a | 316 | 48.42 | 50,417 USD | -13,167 |
| Nikkei 225 | 1 hour | n/a | 2,667 | 43.64 | 26,040 USD | -13,329 |
| Nikkei 225 | 4 hours | n/a | 707 | 47.67 | 24,795 USD | -11,975 |
| DAX 40 | Daily | n/a | 422 | 51.18 | 13,271 EUR | -5,206 |
| Dow Jones | 4 hours | n/a | 288 | 47.22 | 11,030 EUR | -7,717 |
| DAX 40 | 1 hour | n/a | 3,011 | 46.60 | 10,842 EUR | -4,336 |
| Nasdaq 100 | 4 hours | n/a | 886 | 47.74 | 10,675 EUR | -6,069 |
| US Crude Oil | Daily | n/a | 320 | 47.19 | 10,246 EUR | -6,913 |
| Brent Crude | 1 hour | n/a | 1,732 | 45.38 | 9,061 EUR | -4,835 |
| Nasdaq 100 | Daily | n/a | 306 | 52.29 | 7,738 EUR | -4,757 |
| Nasdaq 100 | 1 hour | n/a | 3,351 | 44.23 | 6,676 EUR | -3,627 |
| Brent Crude | 4 hours | n/a | 478 | 49.58 | 5,429 EUR | -5,329 |
| FTSE 100 | Daily | n/a | 323 | 47.68 | 3,543 EUR | -2,338 |
| S&P 500 | Daily | n/a | 433 | 47.81 | 3,234 EUR | -939 |
| S&P 500 | 4 hours | n/a | 870 | 47.24 | 1,908 EUR | -1,180 |
Charts
Top 10 of 21 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // TRIX Histogram Stochastic RSI Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[9](close) emab = ExponentialAverage[9](ema) trix = ExponentialAverage[9](emab)
26 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.60 EUR |
| Net, long run | 3,206.60 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 21 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 1.90 over 375 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.