Join waitlist
Strategies / Pattern / Outside Bar Slope Reversal

Outside Bar Slope Reversal

This idea trades a bullish or bearish outside bar when the 20-bar simple moving average is rising or falling. Positions close when a volatility measure or the 14-bar RSI of the typical price moves to an extreme.

PatternLong & shortIntradayEUR/USD3 min
n/aProfit factor
78,772Net profit USD
36.06%Win rate
5,144Trades
-55,042Max drawdown
15.31Avg trade

Best run of 5. EUR/USD, 3 min, spread 1, from run sweeps:2026-10-11-EURUSD-3m-opt.tsv:25.

Entry rules, long

  1. The 20-bar simple moving average is at or above its value two bars earlier.
  2. A long is opened only when no long position is already open.

Entry rules, short

  1. The 20-bar simple moving average is below its value two bars earlier.
  2. A short is opened only when no short position is already open.

Exit rules

  1. The RSI(14) of the typical price is below 35 or above 65, and closes the position at market.
  2. Exit orders are skipped on a bar that also opens a new position.

Test conditions

PeriodUp to 2026-10-11
InstrumentEUR/USD, 3 minutes
Spread1 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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run3 minn/a 5,14436.0678,772 USD-55,042
USD/JPYDailyn/a 36254.14182,390 USD-135,520
EUR/USDDailyn/a 42555.7640,157 USD-20,980
GoldDailyn/a 53751.40985 EUR-325
Gold4 hoursn/a 1,09150.96795 EUR-535

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Outside Bar Slope Reversal
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 3 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE temp = 0
ONCE switch = 0

ma = Average[20](close)

41 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

SMARSI
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 55,042 USD is large next to the net profit of 78,772 USD.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Outside Bar Slope Reversal 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 5 market and timeframe combinations. The best run by trade count was EUR/USD, 3 minutes, with 5,144 trades.

How large was the drawdown?

The best run had a maximum drawdown of 55,042 USD at the tested position size, against a net result of 78,772 USD.

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

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

Breakout Reversal

Also a pattern strategy.

n/a PF · 459 trades

Want strategies that are already part of a live portfolio? 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