Join today
Strategies / Mean reversion / ATR Band

ATR Band: Buying Sharp Dips on Daily Charts

ATR Band buys a stock after a sharp drop, when the daily close sits more than one ATR(10) below its 3-period SMA. It holds until the close rebounds to more than one ATR above that same average. Each trade commits a fixed 10,000 of capital and only goes long.

Mean reversionLong onlySwingBroadcomDaily
10.31Profit factor
51,575Net profit USD
83.02%Win rate
53Trades
-5,068Max drawdown
973Avg trade

Best run of 31. Broadcom, Daily, from run stock2-queue:2026-09-15-Broadcom.tsv:6.

Entry rules, long

  1. Members only

Exit rules

  1. Members only
  2. No stop loss

Test conditions

PeriodUp to 2026-09-15
InstrumentBroadcom, Daily
Capital per trade10,000
CostsNot recorded for this run.
BarsDaily bars, full available history
Last tested2026-09-15

Parameters

capitalPerTrade
Money committed to each trade
10000
basePeriod
SMA length the bands are built around
3
atrPeriod
ATR length
10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
BroadcomBest runDaily10.31 5383.0251,575 USD-5,068
VisaDaily9.39 4983.6732,600 USD-3,527
WalmartDaily5.23 15757.96135,597 USD-15,060
MicrosoftDaily5.15 12177.6977,605 USD-5,054
MastercardDaily4.91 5979.6635,668 USD-4,536
CiscoDaily4.69 8774.7171,241 USD-10,153
CostcoDaily4.20 7973.4242,451 USD-5,320
Johnson & JohnsonDaily3.95 20375.3761,424 USD-3,376
AbbVieDaily3.72 3675.0014,076 USD-4,430
AlphabetDaily3.58 3783.7818,329 USD-3,806
ChevronDaily3.33 6267.7427,498 USD-5,817
Lam ResearchDaily3.19 11577.3984,433 USD-10,865
S&P 500Daily3.02 15576.7731,583 EUR-5,680
AmazonDaily2.97 7776.6242,925 USD-7,601
ExxonMobilDaily2.94 20465.2048,788 USD-4,653
Coca-ColaDaily2.86 15872.7845,959 USD-6,099
TeslaDaily2.80 4965.3128,497 USD-8,138
PalantirDaily2.78 1764.7117,676 USD-9,607
Berkshire HathawayDaily2.56 8974.1619,334 USD-5,059
MetaDaily2.45 4276.1919,292 USD-8,016
OracleDaily2.30 9868.3751,842 USD-8,110
Eli LillyDaily1.93 18366.1232,263 USD-6,996
CaterpillarDaily1.87 19866.1640,636 USD-7,830
Applied MaterialsDaily1.80 6876.4722,693 USD-9,503
Bank of AmericaDaily1.42 8665.1214,820 USD-14,817
AMDDaily1.22 14163.1222,332 USD-17,935
JPMorganDaily0.67 7655.26-10,137 USD-11,148
AppleDaily0.52 2630.77-10,361 USD-14,078
NvidiaDaily0.20 425.00-10,137 USD-13,684
IntelDaily0.00 10.00-10,000 USD-10,000
MicronDaily0.00 50.00-10,083 USD-10,170

Charts

Results by run

Profit factor by run

Above 1.0 made money, below 1.0 lost money.

0.05.01015201.0 = break-evenBroadcom · Daily10.31Visa · Daily9.39Walmart · Daily5.23Microsoft · Daily5.15Mastercard · Daily4.91Cisco · Daily4.69Costco · Daily4.20Johnson & Johnson · Daily3.95AbbVie · Daily3.72Alphabet · Daily3.58Chevron · Daily3.33Lam Research · Daily3.19S&P 500 · Daily3.02Amazon · Daily2.97ExxonMobil · Daily2.94Coca-Cola · Daily2.86Tesla · Daily2.80Palantir · Daily2.78Berkshire Hathaway · Daily2.56Meta · Daily2.45Oracle · Daily2.30Eli Lilly · Daily1.93Caterpillar · Daily1.87Applied Materials · Daily1.80

Net profit against max drawdown

Net profitMax drawdown
0-20K-10K100K200KWalmart · DailyLam Research · DailyMicrosoft · DailyCisco · DailyJohnson & Johnson · DailyOracle · DailyBroadcom · DailyExxonMobil · DailyCoca-Cola · DailyAmazon · DailyCostco · DailyCaterpillar · DailyMastercard · DailyVisa · DailyEli Lilly · DailyS&P 500 · Daily

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

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

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
capitalPerTrade = 10000   // money committed to each trade
basePeriod = 3            // short SMA the bands are built around
atrPeriod = 10            // ATR length, one ATR each side

// --- Indicators ---
positionSize = capitalPerTrade / close
baseMA = Average[basePeriod](close)
atrValue = AverageTrueRange[atrPeriod]
lowerBand = baseMA - atrValue
upperBand = baseMA + atrValue

15 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • There is no stop loss. A stock that keeps falling is held until it recovers, which is how Intel lost 10,000 USD on a single trade and Micron ended at -10,083.37 USD over 5 trades.
  • Results vary widely by stock. JPMorgan, Apple, Nvidia, Intel and Micron all finished with a net loss, and Nvidia produced only 4 trades.
  • The best run on Broadcom has just 53 trades, so its profit factor of 10.31 rests on a small sample.
  • The code sizes positions from capital (10,000 divided by the close) but orders in contract units, as the original did. Check how your broker interprets the size before going live.

Indicators used

SMAATR

How to load it

  1. Copy the code with the copy button above 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.

Questions

About this strategy

Can ATR Band run live in ProOrder?

Yes. It is a standard ProOrder system with no manual steps, trading on daily bars. The stats come from the pre-rewrite version and the rewritten code has not been compile checked yet, so run it in demo first.

Which markets was it tested on?

Broadcom was the best run with a net profit of 51,575.17 USD, a 83.02% win rate and a max drawdown of 5,067.59 USD. Walmart made the most money (135,597.09 USD) but with a 15,059.76 USD drawdown, and five stocks lost money.

How much capital does it need?

Each trade uses 10,000 of capital. On Broadcom the worst drawdown was 5,067.59 USD, and on AMD it reached 17,934.84 USD, so plan for drawdowns larger than half the trade size.

Why the daily timeframe?

The rule reacts to one-day overshoots measured by a 10-day ATR. Daily bars keep the trade count low (53 on Broadcom) and make holding through noise part of the design.

Related

Strategies like this one

Bollinger Squeeze

Uses the same indicator.

14.30 PF · 86 trades

Turn Of The Month

Best run on the same market, Broadcom.

4.86 PF · 47 trades

Four Percent Dip

A similar profit factor.

8.77 PF · 68 trades

Want to see how members combine dip buyers like this one? Join the ProRealAlgos waitlist.

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