Trades each flip of a Supertrend on median price with ATR 15 and a factor of 9.1. A flip to uptrend buys and a flip to downtrend sells short, so each signal reverses any open position with no stop or target.
Best run of 19. Gold, 2 min, spread 0.6, from run pf:2026-10-04-GOLD-2m.tsv:1.
| Period | Up to 2026-10-04 |
| Instrument | Gold, 2 minutes |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 2 min | 1.29 | 754 | 38.59 | 2,789 EUR | -601 |
| GBP/USD | 1 hour | 1.21 | 757 | 40.69 | 12,173 USD | -2,975 |
| USD/JPY | Daily | n/a | 63 | 42.86 | 2,873,510 USD | -656,800 |
| USD/JPY | 30 min | n/a | 885 | 38.87 | 614,570 USD | -175,970 |
| USD/JPY | 10 min | n/a | 976 | 38.32 | 400,350 USD | -186,080 |
| EUR/USD | Daily | n/a | 61 | 45.90 | 104,960 USD | -40,100 |
| Nikkei 225 | Daily | n/a | 64 | 42.19 | 55,777 USD | -19,951 |
| Silver | 30 min | n/a | 890 | 36.97 | 42,242 USD | -15,969 |
| Silver | 2 min | n/a | 857 | 35.59 | 25,809 USD | -12,731 |
| Silver | 3 min | n/a | 882 | 33.56 | 17,307 USD | -16,210 |
| Dow Jones | 30 min | n/a | 465 | 37.63 | 14,769 EUR | -14,370 |
| GBP/USD | Daily | n/a | 68 | 41.18 | 11,585 USD | -7,742 |
| Nikkei 225 | 1 min | n/a | 1,022 | 34.25 | 8,476 USD | -8,158 |
| Nasdaq 100 | 3 min | n/a | 950 | 36.74 | 5,339 EUR | -4,956 |
| Gold | 5 min | n/a | 884 | 35.97 | 2,648 EUR | -1,287 |
| Gold | 30 min | n/a | 937 | 37.89 | 2,647 EUR | -1,187 |
| Gold | 3 min | n/a | 812 | 36.70 | 2,350 EUR | -682 |
| Gold | 1 hour | n/a | 575 | 37.04 | 1,643 EUR | -1,321 |
| Gold | 10 min | n/a | 963 | 35.93 | 1,090 EUR | -761 |
Charts
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
// ============================================================== // Wide Supertrend Reversal Signals // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 2 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE up = 0 ONCE dn = 0 ONCE trend = 1 myAtr = AverageTrueRange[15](close) upprev = up dnprev = dn upbasic = MedianPrice - 9.1 * myAtr dnbasic = MedianPrice + 9.1 * myAtr trendprev = trend
33 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 19 market and timeframe combinations. The best run was Gold, 2 minutes, with a profit factor of 1.29 over 754 trades.
The best run had a maximum drawdown of 600 EUR at the tested position size, against a net result of 2,789 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.