Join waitlist
Strategies / Trend / Supertrend Flip With Band Width Filter

Supertrend Flip With Band Width Filter

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.

TrendLong & shortSwingNasdaq 100Daily
1.80Profit factor
21,533Net profit EUR
40.11%Win rate
374Trades
-4,956Max drawdown
57.57Avg trade

Best run of 16. Nasdaq 100, Daily, spread 3, from run pf:2026-10-04-NAS100-D.tsv:3.

Entry rules, long

  1. Bollinger band width, 4 standard deviations over the 20-bar mean, is above its 20-bar average.
  2. No long position is open.

Entry rules, short

  1. Bollinger band width, 4 standard deviations over the 20-bar mean, is above its 20-bar average.
  2. No short position is open.

Exit rules

  1. An uptrend flip closes an open short if the band width filter does not hold.
  2. A downtrend flip closes an open long if the band width filter does not hold.

Test conditions

PeriodUp to 2026-10-04
InstrumentNasdaq 100, Daily
Spread3 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDaily1.80 37440.1121,533 EUR-4,956
Dow JonesDaily1.76 41343.5844,823 EUR-9,601
Dow Jones1 hourn/a 1,16543.6128,382 EUR-8,123
Nikkei 2254 hoursn/a 82239.0521,708 USD-16,830
Nasdaq 1004 hoursn/a 1,01441.8121,120 EUR-5,655
Dow Jones30 minn/a 3,16942.4715,020 EUR-10,237
Dow Jones4 hoursn/a 32842.3813,692 EUR-9,010
DAX 401 hourn/a 3,42640.7811,421 EUR-7,539
FTSE 100Dailyn/a 42450.009,308 EUR-3,454
DAX 404 hoursn/a 98644.028,763 EUR-8,439
Brent Crude4 hoursn/a 55044.738,493 EUR-4,086
DAX 40Dailyn/a 69633.768,082 EUR-5,284
S&P 500Dailyn/a 45337.754,774 EUR-1,275
S&P 5004 hoursn/a 1,03141.133,044 EUR-1,596
Gold4 hoursn/a 88038.982,702 EUR-964
GoldDailyn/a 40637.442,197 EUR-1,075

Charts

Results by run

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

ProBuilder code, as tested

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

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

SuperTrendATRBollinger BandsSMA
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · Daily · older data 212.30 EUR

Nasdaq 100 had no history beyond the standard run, so both runs used 10,000 bars.

Nasdaq 100 · Daily

Bars available10,000
Net, standard 200,000-bar run21,532.90 EUR
Net, long run21,745.20 EUR
Net on the older data alone212.30 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 Supertrend Flip With Band Width Filter 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 16 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.80 over 374 trades.

How large was the drawdown?

The best run had a maximum drawdown of 4,956 EUR at the tested position size, against a net result of 21,533 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

EMA Cross With MACD Filter

Also a trend strategy.

1.80 PF · 496 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

Copy trading on US indices is available to ProRealAlgos members as spots open.

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