Join waitlist
Strategies / Mean reversion / Band Offset Averaged Candle

Band Offset Averaged Candle

Buys when the high is below 0.95 times the 20-bar SMA and the averaged open is below the averaged close. Sells when the low is above 1.05 times the SMA and the averaged open is above the averaged close.

Mean reversionLong onlySwingNasdaq 100Daily
n/aProfit factor
20,670Net profit EUR
54.55%Win rate
11Trades
-3,881Max drawdown
1,879Avg trade

Best run of 25. Nasdaq 100, Daily, spread 3, from run sweeps:2026-10-04-NAS100-D-opt.tsv:44.

Entry rules, long

  1. The average of the open and close two bars back is below the average of the open, high, low and close of this bar.

Exit rules

  1. The average of the open and close two bars back is above the average of the open, high, low and close of this bar.
  2. No stop loss or profit target is set.

Test conditions

PeriodUp to 2026-10-04
InstrumentNasdaq 100, 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDailyn/a 1154.5520,670 EUR-3,881
Nikkei 22515 minn/a 1100.0053,574 USD-13,076
Nikkei 225Dailyn/a 666.6746,312 USD-23,162
Nikkei 2254 hoursn/a 2100.0045,150 USD-11,811
Dow Jones1 hourn/a 1100.0032,809 EUR-8,318
Nikkei 2251 hourn/a 1100.0025,824 USD-11,792
Nikkei 22530 minn/a 1100.0025,734 USD-11,910
Dow JonesDailyn/a 3100.0023,817 EUR-11,142
Nasdaq 1004 hoursn/a 366.6717,640 EUR-5,975
DAX 401 hourn/a 1100.0016,965 EUR-4,471
Dow Jones4 hoursn/a 2100.0014,163 EUR-5,533
Nasdaq 1001 hourn/a 2100.0012,519 EUR-6,233
DAX 40Dailyn/a 1060.0012,493 EUR-5,661
Brent Crude15 minn/a 366.6711,208 EUR-4,337
US Crude Oil30 minn/a 650.006,801 EUR-5,646
FTSE 100Dailyn/a 580.006,796 EUR-3,259
S&P 500Dailyn/a 475.006,629 EUR-1,238
FTSE 1001 hourn/a 1100.006,518 EUR-3,076
S&P 5004 hoursn/a 2100.004,552 EUR-1,298
FTSE 1004 hoursn/a 1100.004,446 EUR-1,296
Gold1 hourn/a 1100.003,296 EUR-1,599
S&P 5001 hourn/a 2100.003,295 EUR-1,317
Gold4 hoursn/a 1100.002,769 EUR-1,586
GoldDailyn/a 1050.002,488 EUR-856
Brent Crude3 minn/a 2100.002,048 EUR-2,038

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

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

DEFPARAM CumulateOrders = false

sma = Average[20](close)
hclose = (open + high + low + close) / 4
hopen = (open[2] + close[2]) / 2

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.

Indicators used

SMA
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The best run has only 11 trades, which is a small sample to judge it on.

Questions

About this strategy

Can I run Band Offset Averaged Candle 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 25 market and timeframe combinations. The best run by trade count was Nasdaq 100, Daily, with 11 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,881 EUR at the tested position size, against a net result of 20,670 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 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