Join waitlist
Strategies / Trend / Supertrend Flip Above Regression Line

Supertrend Flip Above Regression Line

Buys when a Supertrend (ATR 14, factor 3) flips to an uptrend while the close is above its 101-bar linear regression line. Closes the long when the Supertrend flips to a downtrend.

TrendLong onlySwingNasdaq 100Daily
2.35Profit factor
15,015Net profit EUR
49.62%Win rate
131Trades
-3,160Max drawdown
115Avg trade

Best run of 33. Nasdaq 100, Daily, spread 3, from run pf:2026-10-13-NAS100-D.tsv:11.

Entry rules, long

  1. The close is above the 101-bar linear regression value.
  2. No long position is already open.

Exit rules

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

Test conditions

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

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDaily2.35 13149.6215,015 EUR-3,160
Gold4 hours2.05 33444.613,891 EUR-684
Dow Jones4 hours1.77 10344.6620,145 EUR-3,654
S&P 5004 hours1.70 34144.874,267 EUR-623
Nasdaq 1004 hours1.56 36044.1714,527 EUR-3,513
Silver4 hoursn/a 33439.2239,124 USD-10,280
Nikkei 225Dailyn/a 13143.5129,754 USD-12,729
Nikkei 2251 hourn/a 1,07841.0927,777 USD-9,332
Nikkei 2254 hoursn/a 26645.4927,640 USD-11,987
Nikkei 2255 minn/a 2,18436.4517,944 USD-9,404
Dow JonesDailyn/a 14143.2617,478 EUR-9,453
Nikkei 2253 minn/a 2,14335.5614,560 USD-6,306
Nasdaq 10010 minn/a 2,08238.5213,764 EUR-3,852
Nasdaq 10015 minn/a 2,08438.7213,687 EUR-4,420
Nikkei 22530 minn/a 2,20037.0013,554 USD-11,871
Nikkei 22515 minn/a 2,18038.0313,073 USD-10,614
Nasdaq 1001 hourn/a 1,34239.9411,658 EUR-3,026
DAX 401 hourn/a 1,21240.3511,514 EUR-3,595
Nasdaq 10030 minn/a 2,18540.329,772 EUR-4,740
DAX 4030 minn/a 2,12437.859,761 EUR-3,963
Brent CrudeDailyn/a 5547.279,553 EUR-6,428
Dow Jones1 hourn/a 45840.619,440 EUR-7,833
Dow Jones30 minn/a 89640.408,918 EUR-8,426
Nasdaq 1005 minn/a 2,07438.818,507 EUR-2,882
US Crude OilDailyn/a 13248.488,189 EUR-6,181
DAX 404 hoursn/a 35941.506,455 EUR-3,564
Gold30 minn/a 2,01937.252,111 EUR-560
Gold1 hourn/a 1,21340.072,018 EUR-802
S&P 5001 hourn/a 1,33440.101,969 EUR-911
GoldDailyn/a 16140.991,856 EUR-1,239
S&P 500Dailyn/a 16639.161,759 EUR-759
S&P 50030 minn/a 2,21339.771,196 EUR-1,191
Gold15 minn/a 2,06833.56787 EUR-751

Charts

Results by run

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

DEFPARAM CumulateOrders = false

ONCE ub = 0
ONCE lb = 0
ONCE dir = 1

myAtr = AverageTrueRange[14](close)
bu = MedianPrice + 3 * myAtr
bl = MedianPrice - 3 * myAtr
prevdir = dir

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

SuperTrendATRLinear Regression
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 Flip Above Regression Line 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 33 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.35 over 131 trades.

How large was the drawdown?

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

Parabolic SAR Flip Risk Reward

Also a trend strategy.

2.36 PF · 250 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