Join waitlist
Strategies / Pattern / Hidden RSI Divergence ATR Bracket

Hidden RSI Divergence ATR Bracket

The strategy buys when the 50-period EMA is above the 150-period EMA, closes sit above the 50-period EMA, and a hidden bullish RSI divergence appeared within 5 bars. It sells short on the bearish version of the setup, with stops and targets set from ATR.

PatternLong & shortSwingDAX 401 hour
1.50Profit factor
11,249Net profit EUR
41.23%Win rate
228Trades
-2,380Max drawdown
49.34Avg trade

Best run of 15. DAX 40, 1 hour, spread 3, from run pf:2026-10-12-DAX40-1h.tsv:3.

Entry rules, long

  1. The 50-period EMA is above the 150-period EMA.
  2. The closes of the previous three bars and the current close are above the 50-period EMA.
  3. The stochastic %K, with 3-period and 4-bar smoothing, crosses above %D, a 3-bar average of %K.
  4. When flat and all these conditions hold, one contract is bought at market.

Entry rules, short

  1. The 50-period EMA is below the 150-period EMA.
  2. Closes from the last three bars sit below the 50-period EMA.
  3. The stochastic %K, with 3-period and 4-bar smoothing, crosses under %D, a 3-bar average of %K.
  4. When flat and all these conditions hold, one contract is sold short at market.

Exit rules

  1. A stop 5 times the 11-period ATR from entry and a target 9 times that ATR from entry close the trade.

Test conditions

PeriodUp to 2026-10-12
InstrumentDAX 40, 1 hour
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
DAX 40Best run1 hour1.50 22841.2311,249 EUR-2,380
USD/JPYDailyn/a 3951.2812,660 USD-2,200
SilverDailyn/a 2254.5512,064 USD-3,686
Nikkei 22510 minn/a 40040.258,576 USD-8,226
Brent Crude4 hoursn/a 4050.007,047 EUR-3,465
US Crude Oil30 minn/a 34639.884,171 EUR-4,007
Nasdaq 100Dailyn/a 2445.833,768 EUR-2,341
DAX 4015 minn/a 40036.503,677 EUR-2,294
USD/JPY4 hoursn/a 11238.393,580 USD-2,940
Brent Crude5 minn/a 37539.203,363 EUR-1,693
Nasdaq 1003 minn/a 35938.162,532 EUR-2,265
Dow Jones2 minn/a 32836.282,421 EUR-2,157
Gold5 minn/a 37139.081,242 EUR-365
Gold15 minn/a 41536.141,092 EUR-369
GoldDailyn/a 2152.38418 EUR-411

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

// ==============================================================
// Hidden RSI Divergence ATR Bracket
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE raw = 50
ONCE plbar = -1000
ONCE plosc = 0
ONCE pllow = 0
ONCE plset = 0
ONCE phbar = -1000
ONCE phosc = 0
ONCE phhigh = 0
ONCE phset = 0

emaf = ExponentialAverage[50](close)
emas = ExponentialAverage[150](close)
hh = highest[3](high)
ll = lowest[3](low)

62 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

ATREMARSISMAStochastic
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 Hidden RSI Divergence ATR Bracket 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 DAX 40, 1 hour, with a profit factor of 1.50 over 228 trades.

How large was the drawdown?

The best run had a maximum drawdown of 2,380 EUR at the tested position size, against a net result of 11,248 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

Pivot Zone Retest

Also a pattern strategy.

1.50 PF · 489 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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