Join waitlist
Strategies / Trend / Dual ATR Trail Trend Entry

Dual ATR Trail Trend Entry

The system buys when the close crosses above its long ATR trail while above the 700-period EMA, and shorts on the mirror setup. Longs close after 9 consecutive bars whose close is above the close 5 bars earlier.

TrendLong & shortSwingDow Jones4 hours
2.67Profit factor
19,006Net profit EUR
68.42%Win rate
114Trades
-3,998Max drawdown
167Avg trade

Best run of 15. Dow Jones, 4 hours, spread 3, from run pf:2026-10-04-DOW30-4h.tsv:1.

Entry rules, long

  1. The close is above the 700-period EMA.

Entry rules, short

  1. The close is below the 700-period EMA.

Exit rules

  1. A short closes after 9 consecutive bars whose close is below the close 5 bars earlier.
  2. No new long is opened on a bar where that exit count reaches 9.

Test conditions

PeriodUp to 2026-10-04
InstrumentDow Jones, 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Dow JonesBest run4 hours2.67 11468.4219,006 EUR-3,998
Dow JonesDailyn/a 14867.5716,764 EUR-5,225
SilverDailyn/a 11060.0013,351 USD-5,462
Nasdaq 1001 hourn/a 1,35959.1612,246 EUR-3,129
Dow Jones30 minn/a 86563.2411,510 EUR-8,612
Nikkei 2254 hoursn/a 26260.6910,596 USD-10,499
Dow Jones15 minn/a 1,65560.978,567 EUR-6,430
Nasdaq 1004 hoursn/a 38364.757,017 EUR-3,321
Dow Jones10 minn/a 1,95760.256,909 EUR-4,752
Nasdaq 100Dailyn/a 13271.214,180 EUR-3,031
FTSE 100Dailyn/a 13767.883,127 EUR-2,028
S&P 5004 hoursn/a 37065.952,115 EUR-661
Gold4 hoursn/a 30958.901,776 EUR-637
S&P 500Dailyn/a 16671.691,555 EUR-642
GoldDailyn/a 13069.231,030 EUR-683

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Dual ATR Trail Trend Entry
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE strail = 0
ONCE sinit = 0
ONCE ltrail = 0
ONCE linit = 0
ONCE bullseq = 0
ONCE bearseq = 0

trendline = ExponentialAverage[700](close)

satr = AverageTrueRange[3](close)
sdist = 5.0 * satr
latr = AverageTrueRange[4](close)
ldist = 3.0 * latr

63 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

ATREMA
Longer historyRe-run on up to 1,000,000 barsDow Jones · 4 hours · older data 106.40 EUR

Dow Jones had no history beyond the standard run, so both runs used 9,000 bars.

Dow Jones · 4 hours

Bars available9,000
Net, standard 200,000-bar run19,005.50 EUR
Net, long run19,111.90 EUR
Net on the older data alone106.40 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 Dual ATR Trail Trend Entry 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 15 market and timeframe combinations. The best run was Dow Jones, 4 hours, with a profit factor of 2.67 over 114 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,998 EUR at the tested position size, against a net result of 19,006 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Turtle Trade

Best run on the same market, Dow Jones.

2.42 PF · 6,324 trades

Ichimoku Cloud Trend Long (long only)

Also a trend strategy.

2.66 PF · 136 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