The system buys when 2 times ATR(20) exceeds 2 standard deviations of close, ATR is not rising, and both RSI(10) and RSI(14) are rising. It exits when the low breaks a trailing level set 2 times ATR(20) below the bar's low, which only rises.
Best run of 15. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:12.
| Period | Up to 2026-10-12 |
| Instrument | Silver, 1 hour |
| Spread | 2 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 2.76 | 3,825 | 37.62 | 546,194 USD | -34,961 |
| Dow Jones | Daily | 1.73 | 494 | 48.58 | 37,167 EUR | -5,663 |
| Nikkei 225 | 4 hours | n/a | 884 | 40.50 | 38,578 USD | -9,036 |
| Nikkei 225 | Daily | n/a | 341 | 41.06 | 30,283 USD | -10,644 |
| Dow Jones | 30 min | n/a | 2,607 | 42.62 | 15,203 EUR | -7,945 |
| Nasdaq 100 | 4 hours | n/a | 1,043 | 44.30 | 11,563 EUR | -4,243 |
| DAX 40 | 4 hours | n/a | 1,033 | 43.18 | 9,296 EUR | -4,736 |
| Dow Jones | 1 hour | n/a | 1,319 | 41.77 | 8,795 EUR | -6,989 |
| Dow Jones | 15 min | n/a | 4,489 | 41.88 | 8,004 EUR | -7,464 |
| GBP/USD | Daily | n/a | 431 | 40.14 | 7,796 USD | -6,930 |
| FTSE 100 | 4 hours | n/a | 1,012 | 42.09 | 4,267 EUR | -1,725 |
| Brent Crude | 1 hour | n/a | 1,928 | 39.83 | 3,417 EUR | -3,346 |
| S&P 500 | 4 hours | n/a | 1,107 | 43.36 | 2,479 EUR | -763 |
| S&P 500 | Daily | n/a | 551 | 45.01 | 2,328 EUR | -987 |
| Gold | 4 hours | n/a | 1,081 | 41.17 | 1,336 EUR | -905 |
Charts
Top 10 of 15 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Squeeze RSI Trailing Stop Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE stoplevel = 0 atrx = AverageTrueRange[20](close) * 2 sdevx = 2 * STD[20](close) rsiten = RSI[10](close) rsifourteen = RSI[14](close) IF NOT LongOnMarket THEN stoplevel = low - atrx ELSE stoplevel = max(stoplevel, low - atrx) ENDIF
15 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 15 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 2.76 over 3,825 trades.
The best run had a maximum drawdown of 34,961 USD at the tested position size, against a net result of 546,194 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.