Join waitlist
Strategies / Momentum / Five Bar Rising Average Price

Five Bar Rising Average Price

Buys when the average of open, high, low and close has risen on each of the last five bars. Closes the long when it has fallen on each of the last four bars.

MomentumLong onlySwingDAX 40Daily
1.85Profit factor
16,862Net profit EUR
47.66%Win rate
235Trades
-3,218Max drawdown
71.75Avg trade

Best run of 18. DAX 40, Daily, spread 3, from run pf:2026-10-12-DAX40-D.tsv:11.

Entry rules, long

  1. No long position is open.

Exit rules

  1. The OHLC4 average has fallen on each of the last 4 bars.

Test conditions

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

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
DAX 40Best runDaily1.85 23547.6616,862 EUR-3,218
USD/JPYDaily1.51 23247.411,373,050 USD-321,150
S&P 5004 hours1.40 62145.893,723 EUR-897
Nikkei 225Dailyn/a 22046.8235,978 USD-11,480
Nikkei 2254 hoursn/a 52145.6833,653 USD-10,533
Silver4 hoursn/a 55640.2927,088 USD-20,690
Dow Jones4 hoursn/a 20050.5016,801 EUR-5,301
Nasdaq 100Dailyn/a 23548.0915,816 EUR-6,725
Dow JonesDailyn/a 30145.1814,400 EUR-9,030
Nasdaq 1004 hoursn/a 63644.5010,190 EUR-5,290
DAX 401 hourn/a 2,08540.919,810 EUR-3,618
US Crude OilDailyn/a 18749.739,650 EUR-6,924
DAX 404 hoursn/a 63745.218,927 EUR-4,898
Nasdaq 10030 minn/a 3,50537.526,886 EUR-5,007
Nasdaq 1001 hourn/a 2,34739.545,714 EUR-5,485
GoldDailyn/a 23144.592,263 EUR-809
S&P 500Dailyn/a 31241.352,224 EUR-1,956
Gold4 hoursn/a 59741.371,435 EUR-803

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Five Bar Rising Average Price
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

myC = TotalPrice

12 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.
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Five Bar Rising Average Price 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 18 market and timeframe combinations. The best run was DAX 40, Daily, with a profit factor of 1.85 over 235 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,218 EUR at the tested position size, against a net result of 16,862 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

Reversal With Ergodic Candlestick Oscillator

Also a momentum strategy.

1.85 PF · 258 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