Join waitlist
Strategies / Trend / Supertrend Long With Stop And Target

Supertrend Long With Stop And Target

Buys when a Supertrend (ATR 10, factor 3, median price) flips from down to up. The trade closes at a 2% stop loss or a 5% profit target measured from the entry price.

TrendLong onlySwingGoldDaily
1.87Profit factor
1,653Net profit EUR
34.41%Win rate
186Trades
-219Max drawdown
8.89Avg trade

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

Entry rules, long

  1. The Supertrend (ATR 10, factor 3, median price) flips from a downtrend to an uptrend.

Exit rules

  1. A profit target 5% above the entry price closes the trade.

Test conditions

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

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest runDaily1.87 18634.411,653 EUR-219
USD/JPY30 minn/a 12434.68540,200 USD-289,930
USD/JPY15 minn/a 6636.36396,930 USD-254,220
Nikkei 22515 minn/a 33633.3340,345 USD-11,113
Nikkei 22510 minn/a 23934.7339,868 USD-11,025
Nikkei 2255 minn/a 15435.0631,391 USD-12,786
Nikkei 2253 minn/a 10636.7927,308 USD-10,139
Nikkei 2252 minn/a 8237.8023,810 USD-13,562
Dow Jones4 hoursn/a 8041.2521,846 EUR-5,450
Nikkei 22530 minn/a 54431.8021,773 USD-16,123
Dow Jones30 minn/a 15934.5921,365 EUR-9,330
Silver10 minn/a 46431.4721,306 USD-11,010
Silver5 minn/a 34732.8520,430 USD-18,038
Silver15 minn/a 57630.7319,840 USD-10,124
Nikkei 2251 hourn/a 46531.6119,326 USD-17,376
Nasdaq 1001 hourn/a 58632.7617,903 EUR-6,094
Dow Jones10 minn/a 10735.5117,483 EUR-8,168
Dow JonesDailyn/a 17536.0017,186 EUR-5,068
Nikkei 225Dailyn/a 18434.7816,501 USD-4,546
Nikkei 2254 hoursn/a 24032.5016,211 USD-8,285
Dow Jones15 minn/a 17932.4015,905 EUR-9,284
Nasdaq 10015 minn/a 36232.8715,185 EUR-7,018
Nasdaq 10010 minn/a 23234.0515,112 EUR-5,636
EUR/USD3 minn/a 850.0014,761 USD-8,774
DAX 4030 minn/a 47933.1914,496 EUR-5,614
Nikkei 2251 minn/a 5137.2514,187 USD-11,961
Nasdaq 1005 minn/a 9938.3813,364 EUR-5,893
DAX 4015 minn/a 24734.4113,135 EUR-4,614
Nasdaq 10030 minn/a 52233.7212,842 EUR-6,671
Dow Jones5 minn/a 5538.1811,776 EUR-9,339
Dow Jones1 hourn/a 13432.0911,035 EUR-9,482
Nasdaq 1004 hoursn/a 33234.0410,560 EUR-5,118
DAX 4010 minn/a 14134.759,675 EUR-3,623
DAX 405 minn/a 7238.898,861 EUR-4,124
DAX 404 hoursn/a 29333.798,311 EUR-3,823
GBP/USDDailyn/a 15632.697,263 USD-6,629
Nasdaq 1003 minn/a 7234.726,599 EUR-6,064
Nasdaq 1001 minn/a 2147.626,338 EUR-4,194
Nasdaq 1002 minn/a 3540.006,026 EUR-4,065
Dow Jones1 minn/a 666.675,523 EUR-4,204
S&P 5001 hourn/a 42233.414,686 EUR-1,409
DAX 403 minn/a 5635.714,532 EUR-3,495
S&P 50015 minn/a 23834.454,244 EUR-1,457
S&P 50030 minn/a 38534.033,958 EUR-1,356
Gold30 minn/a 36136.293,820 EUR-1,320
FTSE 10010 minn/a 8637.213,749 EUR-1,045
S&P 50010 minn/a 12636.513,455 EUR-1,194
Gold1 hourn/a 42636.383,348 EUR-1,524
FTSE 1001 hourn/a 35331.733,184 EUR-2,554
FTSE 1005 minn/a 4143.903,143 EUR-1,329
Nasdaq 100Dailyn/a 17832.582,931 EUR-2,544
Gold15 minn/a 21936.992,916 EUR-1,259
Gold10 minn/a 17037.062,673 EUR-839
DAX 402 minn/a 3336.362,651 EUR-2,502
S&P 5005 minn/a 5639.292,291 EUR-1,518
DAX 401 minn/a 1741.182,232 EUR-1,855
FTSE 1003 minn/a 2842.862,174 EUR-1,196
S&P 500Dailyn/a 21432.242,118 EUR-569
US Crude OilDailyn/a 17430.462,111 EUR-2,063
Gold5 minn/a 11538.261,992 EUR-1,150
FTSE 1002 minn/a 1844.441,540 EUR-1,106
Gold4 hoursn/a 27033.331,417 EUR-832
Gold3 minn/a 9436.171,406 EUR-1,361
S&P 5003 minn/a 4136.591,334 EUR-1,303
S&P 5002 minn/a 1546.671,111 EUR-660
S&P 5001 minn/a 955.561,097 EUR-386

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Supertrend Long With Stop And Target
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

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

myAtr = AverageTrueRange[10](close)
upraw = MedianPrice - 3 * myAtr
dnraw = MedianPrice + 3 * myAtr

33 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
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 Supertrend Long With Stop And Target 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 66 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 1.87 over 186 trades.

How large was the drawdown?

The best run had a maximum drawdown of 219 EUR at the tested position size, against a net result of 1,653 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

EMA Pullback Short Continuation

Also a trend strategy.

1.87 PF · 36 trades

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

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