The strategy buys when the TRIX histogram, the TRIX line minus its signal line, turns positive while the close is above the 700-period SMA. It sells when the histogram turns negative.
Best run of 25. Gold, Daily, spread 0.6, from run pf:2026-10-05-GOLD-D.tsv:6.
| 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 | 2.98 | 128 | 46.09 | 3,283 EUR | -809 |
| Gold | 1 hour | 1.39 | 1,062 | 40.30 | 2,751 EUR | -452 |
| USD/JPY | 30 min | n/a | 1,742 | 41.45 | 482,950 USD | -205,890 |
| USD/JPY | 1 hour | n/a | 1,202 | 42.10 | 463,260 USD | -210,260 |
| USD/JPY | 4 hours | n/a | 310 | 41.29 | 314,440 USD | -166,450 |
| USD/JPY | 15 min | n/a | 1,782 | 40.35 | 247,230 USD | -132,740 |
| Nikkei 225 | Daily | n/a | 119 | 35.29 | 21,744 USD | -18,748 |
| Nikkei 225 | 4 hours | n/a | 260 | 45.77 | 17,883 USD | -11,210 |
| Nikkei 225 | 30 min | n/a | 1,824 | 37.45 | 16,476 USD | -10,042 |
| Silver | 3 min | n/a | 1,862 | 32.65 | 14,691 USD | -11,325 |
| Silver | 30 min | n/a | 1,664 | 37.14 | 13,991 USD | -11,369 |
| Silver | 2 min | n/a | 1,805 | 35.24 | 13,861 USD | -10,663 |
| Nasdaq 100 | Daily | n/a | 144 | 40.97 | 10,931 EUR | -2,847 |
| Dow Jones | 30 min | n/a | 800 | 42.50 | 10,510 EUR | -4,871 |
| Nasdaq 100 | 30 min | n/a | 1,961 | 42.68 | 9,835 EUR | -4,105 |
| Dow Jones | Daily | n/a | 182 | 42.86 | 9,814 EUR | -8,647 |
| Nasdaq 100 | 4 hours | n/a | 365 | 45.21 | 7,168 EUR | -3,587 |
| Nasdaq 100 | 1 hour | n/a | 1,274 | 40.35 | 5,203 EUR | -3,807 |
| Nasdaq 100 | 10 min | n/a | 1,698 | 39.52 | 4,856 EUR | -3,957 |
| DAX 40 | 30 min | n/a | 1,889 | 40.44 | 3,733 EUR | -3,594 |
| DAX 40 | 4 hours | n/a | 326 | 38.65 | 3,663 EUR | -3,007 |
| Gold | 30 min | n/a | 1,710 | 39.65 | 2,467 EUR | -653 |
| S&P 500 | Daily | n/a | 197 | 41.12 | 2,131 EUR | -1,200 |
| Gold | 4 hours | n/a | 314 | 44.59 | 2,049 EUR | -851 |
| S&P 500 | 4 hours | n/a | 380 | 41.05 | 1,201 EUR | -850 |
Charts
Top 10 of 25 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // TRIX Signal Line Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emaone = ExponentialAverage[35](close) ematwo = ExponentialAverage[35](emaone) emathree = ExponentialAverage[35](ematwo) trix = 0
15 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,283.10 EUR |
| Net, long run | 3,283.10 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 25 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 2.98 over 128 trades.
The best run had a maximum drawdown of 809 EUR at the tested position size, against a net result of 3,283 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.