Join waitlist
Strategies / Mean reversion / ATR Band Reversion Long

ATR Band Reversion Long

Buys when price closes below the lower ATR band around a 26-period EMA while price is above the 528-period EMA. Closes the long when price closes above the upper ATR band.

Mean reversionLong onlySwingSilver1 hour
10.86Profit factor
568,122Net profit USD
65.62%Win rate
256Trades
-25,188Max drawdown
2,219Avg trade

Best run of 40. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:17.

Entry rules, long

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

Exit rules

  1. Exits are only checked while the close is above the 528-period EMA.
  2. No stop or target is set.

Test conditions

PeriodUp to 2026-10-12
InstrumentSilver, 1 hour
Spread2 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
SilverBest run1 hour10.86 25665.62568,122 USD-25,188
USD/JPY2 minn/a 54470.9670,810 USD-65,890
Dow JonesDailyn/a 5290.3834,893 EUR-9,775
Nikkei 2254 hoursn/a 7972.1534,005 USD-11,063
Nasdaq 1004 hoursn/a 13978.4220,203 EUR-5,672
Dow Jones4 hoursn/a 4273.8119,460 EUR-8,557
Nasdaq 100Dailyn/a 4782.9816,824 EUR-4,231
Silver3 minn/a 45169.1813,522 USD-12,122
DAX 404 hoursn/a 11773.5013,272 EUR-5,547
Nikkei 2251 hourn/a 29366.8912,270 USD-10,838
Dow Jones1 hourn/a 14173.0512,209 EUR-5,664
Nasdaq 1001 hourn/a 43070.0010,813 EUR-5,102
Nasdaq 10015 minn/a 57267.489,648 EUR-3,844
DAX 40Dailyn/a 7667.118,404 EUR-5,881
US Crude Oil1 hourn/a 21668.067,992 EUR-3,799
Nasdaq 10030 minn/a 64165.056,442 EUR-6,057
US Crude Oil15 minn/a 51467.906,160 EUR-4,414
Brent Crude15 minn/a 51167.715,512 EUR-4,019
FTSE 1001 hourn/a 30668.634,880 EUR-1,830
S&P 500Dailyn/a 5286.544,795 EUR-1,238
Brent CrudeDailyn/a 1275.004,765 EUR-3,393
S&P 5004 hoursn/a 13076.923,811 EUR-1,298
FTSE 100Dailyn/a 4178.053,727 EUR-3,395
Dow Jones5 minn/a 44268.553,654 EUR-3,277
FTSE 1004 hoursn/a 9073.333,588 EUR-2,958
Brent Crude2 minn/a 47564.423,133 EUR-2,199
Dow Jones2 minn/a 44271.042,965 EUR-2,454
S&P 5001 hourn/a 43070.702,943 EUR-1,295
DAX 403 minn/a 47566.952,155 EUR-1,702
S&P 50030 minn/a 63570.872,115 EUR-1,564
Gold4 hoursn/a 9464.891,737 EUR-861
FTSE 10010 minn/a 50268.131,713 EUR-1,166
FTSE 10015 minn/a 49866.061,577 EUR-1,192
FTSE 1005 minn/a 53268.231,373 EUR-943
Gold2 minn/a 39964.661,271 EUR-596
Gold30 minn/a 46362.851,061 EUR-953
S&P 50010 minn/a 54567.52971 EUR-881
FTSE 1003 minn/a 48963.80690 EUR-629
Gold3 minn/a 39967.67669 EUR-479
S&P 5003 minn/a 44767.34639 EUR-548

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// ATR Band Reversion Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

avg = ExponentialAverage[26](close)
myAtr = AverageTrueRange[26](close)
bull = avg + myAtr * 2.618
bear = avg - myAtr * 2.386

13 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

EMAATR
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 ATR Band Reversion Long 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 40 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 10.86 over 256 trades.

How large was the drawdown?

The best run had a maximum drawdown of 25,188 USD at the tested position size, against a net result of 568,122 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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