Buys when a SuperTrend flips up and a 15-period EMA of the 30-bar rate of change is beyond ±3. Sells short when a second SuperTrend flips down with a 38-period EMA of the 76-bar rate of change beyond ±3, with 5% and 6% stops.
Best run of 1. GBP/USD, Daily, spread 1.5, from run sweeps:2026-10-10-GBPUSD-D-opt.tsv:11.
| Period | Up to 2026-10-10 |
| Instrument | GBP/USD, Daily |
| Spread | 1.5 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GBP/USDBest run | Daily | n/a | 249 | 40.56 | 11,026 USD | -7,732 |
Charts
The code
// ============================================================== // Dual SuperTrend ROC Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE lstopl = 0 ONCE sstopl = 0 ONCE dirl = 1 ONCE lstops = 0 ONCE sstops = 0 ONCE dirs = 1 atrl = 1.5 * AverageTrueRange[2](close) atrs = 1.3 * AverageTrueRange[3](close) rocl = 100 * (close - close[30]) / close[30] emarocl = ExponentialAverage[15](rocl) rocs = 100 * (close - close[76]) / close[76] emarocs = ExponentialAverage[38](rocs)
57 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 one combination, GBP/USD, Daily, with 249 trades.
The best run had a maximum drawdown of 7,732 USD at the tested position size, against a net result of 11,026 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.