Join waitlist
Strategies / Trend / SuperTrend Trend Following Long

SuperTrend Trend Following Long

Buys when the close moves above the SuperTrend line while flat, using bands 3 times ATR(7) around the bar midpoint. Sells the long when the close falls below that line.

TrendLong onlySwingNasdaq 100Daily
2.07Profit factor
18,126Net profit EUR
47.31%Win rate
186Trades
-3,573Max drawdown
97.45Avg trade

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

Entry rules, long

  1. The SuperTrend line uses bands at the bar midpoint plus or minus 3 times ATR(7), which move toward price while the trend holds.

Exit rules

  1. The long closes at market when the close falls below the SuperTrend line.

Test conditions

PeriodUp to 2026-10-05
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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDaily2.07 18647.3118,126 EUR-3,573
S&P 500Daily1.96 22944.103,881 EUR-670
Dow JonesDaily1.95 19345.6028,463 EUR-6,337
Gold4 hours1.72 42742.623,402 EUR-633
Nasdaq 1001 hour1.19 1,83940.7813,295 EUR-2,863
Nasdaq 10030 min1.14 2,86639.9514,093 EUR-3,275
USD/JPY1 hourn/a 1,72139.05426,390 USD-272,500
USD/JPY30 minn/a 2,43738.28414,620 USD-171,210
EUR/USDDailyn/a 18439.1349,508 USD-44,343
Nikkei 225Dailyn/a 20042.5037,765 USD-12,604
Silver4 hoursn/a 40538.2732,053 USD-13,418
Nikkei 2254 hoursn/a 37041.3526,549 USD-11,499
Dow Jones4 hoursn/a 15445.4514,353 EUR-5,928
Nasdaq 1004 hoursn/a 50741.6213,206 EUR-3,485
Nikkei 2251 hourn/a 1,40540.5012,730 USD-12,559
DAX 4030 minn/a 2,82538.2311,640 EUR-3,533
Brent CrudeDailyn/a 7848.7211,620 EUR-8,690
DAX 401 hourn/a 1,62440.4611,085 EUR-5,031
Dow Jones1 hourn/a 59939.9010,152 EUR-5,804
DAX 404 hoursn/a 45839.307,305 EUR-3,246
Nasdaq 1005 minn/a 2,62837.634,492 EUR-4,209
Gold30 minn/a 2,49337.302,795 EUR-747
Gold1 hourn/a 1,50538.742,483 EUR-841
GoldDailyn/a 20043.002,265 EUR-1,104
S&P 5004 hoursn/a 49143.792,250 EUR-922
S&P 5001 hourn/a 1,79840.162,141 EUR-1,059

Charts

Results by run

Top 10 of 26 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 Trend Following Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lastupper = 0
ONCE lastlower = 0
ONCE lastst = 0
ONCE lastclose = 0
ONCE bought = 0

myAtr = AverageTrueRange[7](close)

44 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 · Daily · older data 307.20 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 run18,126.30 EUR
Net, long run18,433.50 EUR
Net on the older data alone307.20 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 Trend Following 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 26 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.07 over 186 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,573 EUR at the tested position size, against a net result of 18,126 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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

Trend Breakout With ATR Risk Line

Also a trend strategy.

2.07 PF · 215 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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