Join waitlist
Strategies / Trend / Trend Filtered ATR Trailing Exit

Trend Filtered ATR Trailing Exit

The strategy buys in an uptrend when RSI(25) is rising above 55 and ADX is above 20 with volume above the highest of the prior 10 bars. It exits when the close falls below a trailing level 2 ATR under price, which only moves up.

TrendLong onlyIntradayNasdaq 10015 min
n/aProfit factor
3,573Net profit EUR
35.31%Win rate
1,399Trades
-1,842Max drawdown
2.55Avg trade

Best run of 19. Nasdaq 100, 15 min, spread 3, from run sweeps:2026-10-04-NAS100-15m-opt.tsv:55.

Entry rules, long

  1. The 25-period RSI is above 55, below 80, and rising from the prior bar.
  2. The 14-period ADX is above 20.
  3. Volume is above the highest volume of the prior 10 bars.
  4. When all conditions hold and no position is open, one contract is bought at market.

Exit rules

  1. A trailing level equal to the close minus 2 times the 14-period ATR is set on each buy signal.

Test conditions

PeriodUp to 2026-10-04
InstrumentNasdaq 100, 15 minutes
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-07

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run15 minn/a 1,39935.313,573 EUR-1,842
USD/JPY1 hourn/a 61440.23281,530 USD-86,870
USD/JPY4 hoursn/a 16838.69254,290 USD-112,370
USD/JPY30 minn/a 1,24637.72199,100 USD-105,570
USD/JPYDailyn/a 3145.16181,200 USD-73,570
Nikkei 22510 minn/a 1,06336.127,052 USD-5,427
Dow Jones4 hoursn/a 7240.286,914 EUR-3,019
Nasdaq 1004 hoursn/a 12946.515,347 EUR-2,047
Nasdaq 1001 hourn/a 57538.434,628 EUR-2,658
Brent Crude4 hoursn/a 10145.544,595 EUR-2,584
Nasdaq 100Dailyn/a 2065.004,564 EUR-1,873
Nasdaq 1005 minn/a 1,23636.414,355 EUR-1,125
Dow Jones5 minn/a 1,21234.983,947 EUR-2,788
DAX 404 hoursn/a 11144.143,775 EUR-1,901
Nikkei 2254 hoursn/a 11641.383,629 USD-3,155
Dow Jones1 hourn/a 31737.223,489 EUR-2,984
S&P 500Dailyn/a 2161.901,219 EUR-291
Gold1 hourn/a 69839.68975 EUR-818
GoldDailyn/a 3148.39892 EUR-704

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Trend Filtered ATR Trailing Exit
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE tstop = 0
ONCE tsvalid = 0

emafast = ExponentialAverage[50](close)
emaslow = ExponentialAverage[200](close)
myRsi = RSI[25](close)
myAtr = AverageTrueRange[14](close)

upmove = high - high[1]
downmove = low[1] - low
plusdm = 0

45 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

ADXATREMARSIVolume
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 1,842 EUR is large next to the net profit of 3,573 EUR.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Trend Filtered ATR Trailing Exit 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 19 market and timeframe combinations. The best run by trade count was Nasdaq 100, 15 minutes, with 1,399 trades.

How large was the drawdown?

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

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

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

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