Join waitlist
Strategies / Pattern / 5 Bar Bullish Sequence

5 Bar Bullish Sequence

The strategy buys 1 contract when the candle 5 bars ago was bearish and the last 5 candles are bullish, each closing above the prior close. The stop sits at the bearish candle's low and the target is 1.5 times the risk.

PatternLong onlyIntradayNasdaq 10030 min
1.34Profit factor
12,719Net profit EUR
39.55%Win rate
976Trades
-2,071Max drawdown
13.03Avg trade

Best run of 24. Nasdaq 100, 30 min, spread 3, from run pf:2026-10-04-NAS100-30m.tsv:1.

Entry rules, long

  1. The candle 5 bars ago closed below its open.
  2. Each of the last 5 candles has a low above the low of the candle 5 bars ago.
  3. Each of the last 5 closes is above the close of the bar before it.
  4. No position is open.

Exit rules

  1. The target sits at 1.5 times that distance above the entry price.

Test conditions

PeriodUp to 2026-10-04
InstrumentNasdaq 100, 30 minutes
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
Nasdaq 100Best run30 min1.34 97639.5512,719 EUR-2,071
Nikkei 2254 hoursn/a 14845.2728,473 USD-8,173
SilverDailyn/a 4443.1816,064 USD-14,384
Nikkei 22510 minn/a 75841.8214,996 USD-7,589
Dow Jones4 hoursn/a 7045.7114,306 EUR-4,950
Dow Jones15 minn/a 83041.4512,814 EUR-5,417
Nasdaq 1004 hoursn/a 20645.6311,881 EUR-4,498
Nasdaq 10015 minn/a 1,15243.1410,267 EUR-2,596
Nikkei 2251 hourn/a 41240.2910,038 USD-8,536
DAX 401 hourn/a 62643.139,797 EUR-2,596
DAX 404 hoursn/a 19645.419,648 EUR-2,515
Silver5 minn/a 91035.719,535 USD-7,821
Dow JonesDailyn/a 10745.798,417 EUR-5,947
Brent Crude4 hoursn/a 10545.717,071 EUR-1,835
US Crude Oil4 hoursn/a 13448.516,240 EUR-2,267
DAX 4030 minn/a 91640.505,029 EUR-2,609
Nasdaq 1001 hourn/a 67437.094,547 EUR-3,109
S&P 5004 hoursn/a 19046.843,253 EUR-884
USD/JPYDailyn/a 11145.053,030 USD-2,980
US Crude Oil3 minn/a 89737.461,697 EUR-1,479
Gold30 minn/a 92538.811,533 EUR-696
Gold4 hoursn/a 20149.751,250 EUR-465
S&P 50030 minn/a 70539.431,047 EUR-584
S&P 50015 minn/a 86242.00701 EUR-536

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 5 Bar Bullish Sequence
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

myN = 5
rr = 1.5

25 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.
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 30 min · older data 0.00 EUR

On the long run with 228,000 bars the net result was 12,719 EUR, against 12,719 EUR on the standard 200,000-bar run. The older data alone gave 0 EUR.

Nasdaq 100 · 30 min

Bars available228,000
Net, standard 200,000-bar run12,719.00 EUR
Net, long run12,719.00 EUR
Net on the older data alone0.00 EUR
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 5 Bar Bullish Sequence 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 24 market and timeframe combinations. The best run was Nasdaq 100, 30 minutes, with a profit factor of 1.34 over 976 trades.

How large was the drawdown?

The best run had a maximum drawdown of 2,071 EUR at the tested position size, against a net result of 12,719 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

Turn of the Month Long

Also a pattern strategy.

1.34 PF · 77 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