Join waitlist
Strategies / Trend / Double Supertrend Long

Double Supertrend Long

The idea buys when the first SuperTrend (ATR 10, factor 3.0) is in an uptrend and no long is open. It sells when the second SuperTrend (factor 5.0) turns to a downtrend, or when a 10% stop loss is hit.

TrendLong onlySwingGoldDaily
2.81Profit factor
3,784Net profit EUR
50.00%Win rate
104Trades
-939Max drawdown
36.38Avg trade

Best run of 46. Gold, Daily, spread 0.6, from run pf:2026-10-04-GOLD-D.tsv:4.

Entry rules, long

  1. No long position is open.

Exit rules

  1. A stop loss 10% below the entry fill price closes the long.

Test conditions

PeriodUp to 2026-10-04
InstrumentGold, Daily
Spread0.6 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
GoldBest runDaily2.81 10450.003,784 EUR-939
S&P 500Daily2.38 11553.045,461 EUR-1,061
Nasdaq 1001 hour1.46 92850.2223,794 EUR-3,837
DAX 4030 min1.26 1,43046.7822,943 EUR-4,865
Nasdaq 10030 min1.26 1,47148.6719,881 EUR-4,072
S&P 50030 min1.24 1,43449.304,296 EUR-865
Nasdaq 10015 min1.22 1,39446.9219,108 EUR-4,433
USD/JPY30 minn/a 1,15346.23611,880 USD-280,750
USD/JPY15 minn/a 1,16746.36558,420 USD-181,200
USD/JPY10 minn/a 1,22746.13374,050 USD-185,880
USD/JPY1 hourn/a 81445.09371,520 USD-347,650
Nikkei 225Dailyn/a 11445.6142,431 USD-20,170
Nikkei 2255 minn/a 1,35045.2637,708 USD-11,977
Dow JonesDailyn/a 9952.5336,086 EUR-9,576
Nikkei 2254 hoursn/a 17455.1733,160 USD-16,210
Nikkei 22515 minn/a 1,38744.3431,510 USD-12,676
Nikkei 2253 minn/a 1,28744.9924,742 USD-15,474
Silver30 minn/a 1,16943.0324,607 USD-20,980
Nikkei 22510 minn/a 1,37045.1823,958 USD-13,042
Nikkei 2251 hourn/a 67548.0023,808 USD-12,264
Nasdaq 100Dailyn/a 9562.1122,401 EUR-4,841
Dow Jones1 hourn/a 29347.1021,661 EUR-10,451
Nikkei 22530 minn/a 1,33745.7721,263 USD-14,509
Nikkei 2252 minn/a 1,26542.2120,500 USD-11,005
Dow Jones10 minn/a 1,31442.6216,783 EUR-7,465
Dow Jones4 hoursn/a 8556.4716,516 EUR-11,193
DAX 40Dailyn/a 19248.4416,475 EUR-6,684
Nasdaq 10010 minn/a 1,33244.7416,444 EUR-4,835
Dow Jones15 minn/a 1,09945.5015,419 EUR-11,751
Dow Jones30 minn/a 60346.4315,367 EUR-9,134
DAX 401 hourn/a 81647.9214,779 EUR-6,561
DAX 404 hoursn/a 22952.8414,644 EUR-5,326
US Crude OilDailyn/a 12941.0912,699 EUR-7,475
Nasdaq 1004 hoursn/a 27353.1111,693 EUR-7,008
Nasdaq 1005 minn/a 1,24146.3311,591 EUR-5,131
Brent CrudeDailyn/a 5836.218,587 EUR-7,587
DAX 4015 minn/a 1,34846.747,732 EUR-6,583
Nasdaq 1003 minn/a 1,19045.636,915 EUR-5,445
S&P 5001 hourn/a 90949.614,052 EUR-1,258
FTSE 1004 hoursn/a 19152.883,803 EUR-3,706
Gold4 hoursn/a 20743.963,534 EUR-924
S&P 50010 minn/a 1,34044.333,071 EUR-1,107
Gold1 hourn/a 72549.102,994 EUR-1,179
S&P 5004 hoursn/a 25751.752,875 EUR-1,727
S&P 50015 minn/a 1,39546.382,869 EUR-1,580
S&P 5005 minn/a 1,26043.651,990 EUR-1,204

Charts

Results by run

Top 10 of 46 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

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

DEFPARAM CumulateOrders = false

ONCE upperone = 0
ONCE lowerone = 0
ONCE dirone = 1
ONCE uppertwo = 0
ONCE lowertwo = 0
ONCE dirtwo = 1

prevdirtwo = dirtwo
mid = (high + low) / 2
atrone = AverageTrueRange[10](close)
atrtwo = AverageTrueRange[10](close)

67 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

SuperTrendATR
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 1 hour · older data 352.60 EUR

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

Nasdaq 100 · 1 hour

Bars available114,000
Net, standard 200,000-bar run23,794.10 EUR
Net, long run24,146.70 EUR
Net on the older data alone352.60 EUR
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Double 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 46 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 2.81 over 104 trades.

How large was the drawdown?

The best run had a maximum drawdown of 939 EUR at the tested position size, against a net result of 3,784 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

KDJ J Line Momentum Long

Uses the same indicator.

4.17 PF · 6,135 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Trend Filter MACD Drop Exit

Also a trend strategy.

2.82 PF · 112 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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