Trades Supertrend flips (ATR 10, factor 3, median price) and filters entries with Bollinger band width above its 20-bar average. It buys on uptrend flips and sells short on downtrend flips, and each qualifying flip reverses an open trade.
Best run of 16. Nasdaq 100, Daily, spread 3, from run pf:2026-10-04-NAS100-D.tsv:3.
| Period | Up to 2026-10-04 |
| Instrument | Nasdaq 100, Daily |
| Spread | 3 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 |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 1.80 | 374 | 40.11 | 21,533 EUR | -4,956 |
| Dow Jones | Daily | 1.76 | 413 | 43.58 | 44,823 EUR | -9,601 |
| Dow Jones | 1 hour | n/a | 1,165 | 43.61 | 28,382 EUR | -8,123 |
| Nikkei 225 | 4 hours | n/a | 822 | 39.05 | 21,708 USD | -16,830 |
| Nasdaq 100 | 4 hours | n/a | 1,014 | 41.81 | 21,120 EUR | -5,655 |
| Dow Jones | 30 min | n/a | 3,169 | 42.47 | 15,020 EUR | -10,237 |
| Dow Jones | 4 hours | n/a | 328 | 42.38 | 13,692 EUR | -9,010 |
| DAX 40 | 1 hour | n/a | 3,426 | 40.78 | 11,421 EUR | -7,539 |
| FTSE 100 | Daily | n/a | 424 | 50.00 | 9,308 EUR | -3,454 |
| DAX 40 | 4 hours | n/a | 986 | 44.02 | 8,763 EUR | -8,439 |
| Brent Crude | 4 hours | n/a | 550 | 44.73 | 8,493 EUR | -4,086 |
| DAX 40 | Daily | n/a | 696 | 33.76 | 8,082 EUR | -5,284 |
| S&P 500 | Daily | n/a | 453 | 37.75 | 4,774 EUR | -1,275 |
| S&P 500 | 4 hours | n/a | 1,031 | 41.13 | 3,044 EUR | -1,596 |
| Gold | 4 hours | n/a | 880 | 38.98 | 2,702 EUR | -964 |
| Gold | Daily | n/a | 406 | 37.44 | 2,197 EUR | -1,075 |
Charts
Top 10 of 16 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Supertrend Flip With Band Width Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE fub = 0 ONCE flb = 0 ONCE dir = 1 ONCE st = 0 atrval = AverageTrueRange[10](close) basicup = MedianPrice + 3.0 * atrval basiclo = MedianPrice - 3.0 * atrval prevup = fub prevlo = flb prevst = st prevdir = dir
58 more lines: the entry and exit rules.
Setup
Nasdaq 100 had no history beyond the standard run, so both runs used 10,000 bars.
| Bars available | 10,000 |
| Net, standard 200,000-bar run | 21,532.90 EUR |
| Net, long run | 21,745.20 EUR |
| Net on the older data alone | 212.30 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 16 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.80 over 374 trades.
The best run had a maximum drawdown of 4,956 EUR at the tested position size, against a net result of 21,533 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.