Join waitlist
Strategies / Trend / Percent Band Supertrend Long

Percent Band Supertrend Long

The strategy uses a Supertrend-style trend line built from bands 20.0% above and below the median price. It buys when the trend flips up and closes the long when it flips down.

TrendLong onlySwingDAX 40Daily
n/aProfit factor
19,692Net profit EUR
45.45%Win rate
22Trades
-7,404Max drawdown
895Avg trade

Best run of 48. DAX 40, Daily, spread 3, from run sweeps:2026-10-03-DAX40-D-opt.tsv:21.

Entry rules, long

  1. The trend flips up when the close rises above the previous upper band.

Exit rules

  1. The trend flips down when the close falls below the previous lower band.

Test conditions

PeriodUp to 2026-10-03
InstrumentDAX 40, 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-03

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
DAX 40Best runDailyn/a 2245.4519,692 EUR-7,404
USD/JPY1 hourn/a 2100.00473,960 USD-252,890
USD/JPY4 hoursn/a 2100.00472,290 USD-253,650
USD/JPY30 minn/a 1100.00380,310 USD-244,650
Dow JonesDailyn/a 1181.8246,329 EUR-10,457
Nikkei 22530 minn/a 771.4345,200 USD-13,910
Nikkei 2251 hourn/a 771.4344,413 USD-14,327
Nikkei 2254 hoursn/a 771.4339,038 USD-18,441
Nikkei 22515 minn/a 560.0034,163 USD-13,770
Nikkei 2253 minn/a 1100.0032,932 USD-13,081
Nikkei 22510 minn/a 366.6732,116 USD-14,037
Nikkei 225Dailyn/a 2147.6230,846 USD-22,737
Nikkei 2255 minn/a 250.0028,694 USD-13,126
Dow Jones30 minn/a 2100.0024,455 EUR-10,335
Dow Jones15 minn/a 2100.0024,415 EUR-10,314
Dow Jones1 hourn/a 2100.0024,286 EUR-10,299
Dow Jones4 hoursn/a 2100.0023,753 EUR-10,406
Nasdaq 1004 hoursn/a 771.4323,598 EUR-6,177
Nasdaq 1001 hourn/a 955.5623,488 EUR-6,654
Nasdaq 100Dailyn/a 1553.3323,441 EUR-6,225
Nasdaq 10015 minn/a 580.0020,078 EUR-6,543
Nasdaq 10030 minn/a 580.0019,900 EUR-6,585
Dow Jones10 minn/a 1100.0016,840 EUR-8,394
DAX 4030 minn/a 666.6715,367 EUR-5,868
DAX 401 hourn/a 1050.0013,959 EUR-6,176
DAX 404 hoursn/a 955.5613,956 EUR-6,815
Nasdaq 10010 minn/a 366.6713,955 EUR-4,547
DAX 4015 minn/a 366.6713,206 EUR-4,330
Nasdaq 1003 minn/a 1100.0011,127 EUR-3,758
Nasdaq 1005 minn/a 1100.0011,122 EUR-3,754
DAX 4010 minn/a 1100.0011,074 EUR-4,419
FTSE 100Dailyn/a 944.446,064 EUR-3,215
S&P 500Dailyn/a 1275.005,459 EUR-1,320
FTSE 10015 minn/a 1100.004,734 EUR-1,308
S&P 50030 minn/a 580.004,707 EUR-1,341
S&P 5004 hoursn/a 771.434,642 EUR-1,330
FTSE 1001 hourn/a 540.004,452 EUR-2,464
S&P 5001 hourn/a 955.564,344 EUR-1,328
FTSE 10030 minn/a 333.334,228 EUR-2,353
GoldDailyn/a 1566.673,713 EUR-1,276
S&P 50015 minn/a 475.003,704 EUR-1,355
FTSE 1004 hoursn/a 540.003,578 EUR-2,427
Gold4 hoursn/a 580.003,444 EUR-1,196
Gold1 hourn/a 666.673,208 EUR-1,209
Gold30 minn/a 366.672,593 EUR-1,159
S&P 50010 minn/a 2100.002,571 EUR-1,345
S&P 5005 minn/a 1100.001,921 EUR-694
S&P 5003 minn/a 1100.001,918 EUR-699

Charts

Results by run

Top 10 of 48 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Percent Band Supertrend Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE fupper = 0
ONCE flower = 0
ONCE trend = 1
ONCE init = 0

perc = 20.0 / 100
upperbasic = MedianPrice * (1 + perc)
lowerbasic = MedianPrice * (1 - perc)

prevupper = fupper
prevlower = flower
prevtrend = trend

IF init = 0 THEN
    fupper = upperbasic
    flower = lowerbasic
    init = 1
ELSE

29 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

SuperTrend
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The best run has only 22 trades, which is a small sample to judge it on.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Percent Band Supertrend Long 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 48 market and timeframe combinations. The best run by trade count was DAX 40, Daily, with 22 trades.

How large was the drawdown?

The best run had a maximum drawdown of 7,404 EUR at the tested position size, against a net result of 19,692 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trendline Break With Supertrend Filter

Uses the same indicator.

1.22 PF · 3,115 trades

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

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