Join waitlist
Strategies / Momentum / TRIX Momentum Stochastic RSI Long

TRIX Momentum Stochastic RSI Long

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.

MomentumLong onlySwingGoldDaily
1.90Profit factor
3,207Net profit EUR
47.34%Win rate
376Trades
-786Max drawdown
8.53Avg trade

Best run of 19. Gold, Daily, spread 0.6, from run pf:2026-10-05-GOLD-D.tsv:8.

Entry rules, long

  1. The Stochastic RSI, based on RSI(14) over a 14-bar window, is below 0.8.

Exit rules

  1. The TRIX histogram falls below zero while the Stochastic RSI is above 0.2.

Test conditions

PeriodUp to 2026-10-05
InstrumentGold, Daily
Spread0.6 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest runDaily1.90 37647.343,207 EUR-786
Dow JonesDaily1.67 40253.4828,887 EUR-5,437
Gold1 hour1.32 3,22345.274,798 EUR-565
USD/JPY1 hour1.16 3,80046.051,092,650 USD-172,485
USD/JPY30 minn/a 5,40443.41397,210 USD-184,860
EUR/USD1 hourn/a 4,84444.0374,245 USD-42,479
Nikkei 225Dailyn/a 31748.5851,206 USD-13,167
Nikkei 2251 hourn/a 2,66843.6325,822 USD-13,329
Nikkei 2254 hoursn/a 70947.5324,570 USD-11,975
DAX 40Dailyn/a 42450.9413,240 EUR-5,206
DAX 401 hourn/a 3,01246.5810,680 EUR-4,336
Nasdaq 1004 hoursn/a 88747.6910,643 EUR-6,069
US Crude OilDailyn/a 32147.0410,191 EUR-6,913
Brent Crude1 hourn/a 1,73345.359,015 EUR-4,835
Nasdaq 100Dailyn/a 30851.957,724 EUR-4,757
Nasdaq 1001 hourn/a 3,35344.266,682 EUR-3,627
FTSE 100Dailyn/a 32548.313,650 EUR-2,338
S&P 500Dailyn/a 43647.713,231 EUR-939
S&P 5004 hoursn/a 87147.191,888 EUR-1,180

Charts

Results by run

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

ProBuilder code, as tested

// ==============================================================
// 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

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

EMASMARSIStochastic
Longer historyRe-run on up to 1,000,000 barsGold · Daily · older data 0.00 EUR

Gold had no history beyond the standard run, so both runs used 13,000 bars.

Gold · Daily

Bars available13,000
Net, standard 200,000-bar run3,206.90 EUR
Net, long run3,206.90 EUR
Net on the older data alone0.00 EUR
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run TRIX Momentum Stochastic RSI Long in ProOrder?

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.

Which markets was it tested on?

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.

How large was the drawdown?

The best run had a maximum drawdown of 786 EUR at the tested position size, against a net result of 3,207 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

TRIX Histogram Stochastic RSI Long

Also a momentum strategy.

1.90 PF · 375 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs