Join waitlist
Strategies / Trend / Supertrend Long With Simple ATR

Supertrend Long With Simple ATR

Buys when a Supertrend using a 10-bar simple average of true range and a factor of 8.5 flips to an uptrend. The long is closed when the trend flips back to a downtrend.

TrendLong onlySwingNasdaq 1004 hours
2.26Profit factor
15,276Net profit EUR
48.09%Win rate
131Trades
-2,884Max drawdown
117Avg trade

Best run of 48. Nasdaq 100, 4 hours, spread 3, from run pf:2026-10-05-NAS100-4h.tsv:12.

Entry rules, long

  1. No long position is open.

Exit rules

  1. The Supertrend flips to a downtrend, closing the long.

Test conditions

PeriodUp to 2026-10-05
InstrumentNasdaq 100, 4 hours
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 run4 hours2.26 13148.0915,276 EUR-2,884
Gold5 min1.45 58537.442,491 EUR-365
Gold3 min1.43 51240.432,271 EUR-456
Gold10 min1.37 67039.102,283 EUR-434
Nasdaq 10015 min1.20 90743.7711,761 EUR-2,823
USD/JPYDailyn/a 3941.031,369,720 USD-500,000
USD/JPY30 minn/a 67240.77482,840 USD-169,520
USD/JPY4 hoursn/a 11040.91482,690 USD-337,180
USD/JPY15 minn/a 70539.86294,180 USD-197,480
USD/JPY10 minn/a 71841.78262,100 USD-167,620
Nikkei 225Dailyn/a 3956.4164,063 USD-11,480
Nikkei 2251 hourn/a 34543.7728,124 USD-8,078
Silver4 hoursn/a 9741.2427,459 USD-27,254
Nikkei 22530 minn/a 76940.9619,991 USD-14,922
Nikkei 2254 hoursn/a 8441.6719,904 USD-11,743
Silver30 minn/a 70337.7019,787 USD-17,114
Silver2 minn/a 56139.2217,637 USD-14,078
Dow JonesDailyn/a 4344.1916,767 EUR-7,188
Nikkei 2253 minn/a 75136.6216,546 USD-13,597
Silver3 minn/a 57438.1514,487 USD-11,450
Nasdaq 1001 hourn/a 72439.5013,115 EUR-3,457
Nasdaq 10030 minn/a 1,01243.0812,561 EUR-5,118
Dow Jones30 minn/a 39343.0011,327 EUR-6,934
DAX 4030 minn/a 1,03840.0811,214 EUR-3,441
Nikkei 2252 minn/a 73236.0710,451 USD-7,729
Nasdaq 100Dailyn/a 4252.3810,097 EUR-3,648
Nikkei 2251 minn/a 65636.289,836 USD-8,605
Nasdaq 1005 minn/a 74937.529,494 EUR-2,943
Dow Jones4 hoursn/a 3852.638,748 EUR-4,245
Nasdaq 10010 minn/a 88639.507,398 EUR-3,313
Dow Jones1 hourn/a 21343.667,373 EUR-6,043
DAX 404 hoursn/a 10646.237,272 EUR-4,147
DAX 401 hourn/a 57641.676,684 EUR-3,795
Nasdaq 1003 minn/a 65939.916,037 EUR-2,597
Dow Jones5 minn/a 79333.425,731 EUR-4,570
DAX 4015 minn/a 89240.024,524 EUR-3,617
Nasdaq 1002 minn/a 61237.753,634 EUR-2,668
S&P 5004 hoursn/a 11648.282,855 EUR-807
Gold1 hourn/a 46239.392,708 EUR-719
GoldDailyn/a 3946.152,439 EUR-1,575
S&P 50030 minn/a 95742.532,368 EUR-795
S&P 5001 hourn/a 64343.232,183 EUR-780
Gold4 hoursn/a 10341.752,040 EUR-1,242
Gold15 minn/a 67939.031,991 EUR-626
S&P 500Dailyn/a 4755.321,866 EUR-788
S&P 50015 minn/a 88841.781,517 EUR-745
Gold2 minn/a 49639.72996 EUR-539
S&P 5005 minn/a 76138.11840 EUR-813

Charts

Results by run

Top 10 of 48 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 Long With Simple ATR
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE up = 0
ONCE dn = 0
ONCE trend = 1

myAtr = Average[10](TR(close))
rawup = MedianPrice - 8.5 * myAtr
rawdn = MedianPrice + 8.5 * myAtr

38 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

SuperTrendTrue RangeSMA
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 4 hours · older data 249.70 EUR

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

Nasdaq 100 · 4 hours

Bars available28,000
Net, standard 200,000-bar run15,275.60 EUR
Net, long run15,525.30 EUR
Net on the older data alone249.70 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 Long With Simple ATR 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 was Nasdaq 100, 4 hours, with a profit factor of 2.26 over 131 trades.

How large was the drawdown?

The best run had a maximum drawdown of 2,884 EUR at the tested position size, against a net result of 15,276 EUR.

Does it trade long, short or both?

It only takes long trades.

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

Supertrend Direction Flip Long

Also a trend strategy.

2.25 PF · 188 trades

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

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