Join waitlist
Strategies / Mean reversion / Upper Band Cross Long

Upper Band Cross Long

The strategy buys at market when close crosses below the upper 25-bar Bollinger Band, which is the 25-bar average plus 2 standard deviations. Each trade has a 1% stop loss and a 2.175% profit target.

Mean reversionLong onlySwingNikkei 2251 hour
1.16Profit factor
28,214Net profit USD
34.50%Win rate
1,084Trades
-6,754Max drawdown
26.03Avg trade

Best run of 46. Nikkei 225, 1 hour, spread 10, from run pf:2026-10-12-NIKKEI-1h.tsv:1.

Entry rules, long

  1. When no long is open, close crosses under the upper band (25-bar SMA plus 2 standard deviations).

Exit rules

  1. A 2.175% profit target is set from the fill price.

Test conditions

PeriodUp to 2026-10-12
InstrumentNikkei 225, 1 hour
Spread10 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
Nikkei 225Best run1 hour1.16 1,08434.5028,214 USD-6,754
USD/JPY30 minn/a 46836.32785,620 USD-213,410
USD/JPYDailyn/a 29235.62663,100 USD-217,860
USD/JPY15 minn/a 25436.61488,590 USD-289,540
USD/JPY10 minn/a 22035.91361,610 USD-257,100
USD/JPY2 minn/a 3339.39104,840 USD-102,890
Nikkei 2252 minn/a 31536.8325,363 USD-10,652
Nikkei 2253 minn/a 41634.8618,652 USD-12,771
Nikkei 2251 minn/a 18737.4318,469 USD-9,658
Nasdaq 10030 minn/a 1,50133.9114,166 EUR-4,032
Dow Jones15 minn/a 55833.3310,694 EUR-10,271
Dow Jones30 minn/a 47933.6110,455 EUR-9,328
Nasdaq 10015 minn/a 1,09933.309,874 EUR-9,574
Dow Jones5 minn/a 19035.799,498 EUR-9,302
Nasdaq 10010 minn/a 77233.558,499 EUR-7,447
Nasdaq 1005 minn/a 36735.698,472 EUR-5,140
DAX 405 minn/a 25637.118,101 EUR-3,644
GBP/USDDailyn/a 28536.497,481 USD-2,317
Nikkei 2254 hoursn/a 46833.337,296 USD-6,706
DAX 4010 minn/a 52034.047,069 EUR-4,662
Nasdaq 1001 hourn/a 1,39232.476,877 EUR-3,728
Nasdaq 1001 minn/a 9540.006,225 EUR-3,907
DAX 4015 minn/a 77533.425,778 EUR-4,445
Nasdaq 1003 minn/a 26234.735,610 EUR-4,443
Dow Jones1 minn/a 3043.334,935 EUR-4,160
Nasdaq 1002 minn/a 16635.544,701 EUR-4,304
Dow JonesDailyn/a 38728.944,503 EUR-3,700
Nikkei 225Dailyn/a 28334.984,141 USD-4,020
Gold5 minn/a 39239.292,985 EUR-1,066
Gold15 minn/a 69536.692,824 EUR-1,099
S&P 5005 minn/a 20739.132,705 EUR-1,114
FTSE 1005 minn/a 14538.622,603 EUR-1,097
S&P 5001 hourn/a 1,05333.812,588 EUR-800
S&P 50030 minn/a 1,08233.922,497 EUR-1,248
S&P 50010 minn/a 47734.802,488 EUR-1,214
FTSE 1003 minn/a 10939.452,339 EUR-925
S&P 50015 minn/a 72833.652,268 EUR-1,264
Brent Crude4 hoursn/a 43433.872,218 EUR-1,622
Gold10 minn/a 56435.642,069 EUR-1,245
Gold30 minn/a 1,16434.111,858 EUR-1,383
Gold4 hoursn/a 57336.651,766 EUR-508
S&P 5004 hoursn/a 45734.571,478 EUR-630
Gold1 hourn/a 1,24133.761,456 EUR-915
S&P 5001 minn/a 3745.951,073 EUR-399
GoldDailyn/a 41633.17496 EUR-349
S&P 500Dailyn/a 37123.72453 EUR-407

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Upper Band Cross Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

basis = Average[25](close)
upper = basis + 2 * STD[25](close)

9 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

Bollinger BandsSMAStandard Deviation
Read this firstKnown weaknesses2 points
  • A profit factor of 1.16 leaves little room for costs beyond the spread.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Upper Band Cross Long 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 46 market and timeframe combinations. The best run was Nikkei 225, 1 hour, with a profit factor of 1.16 over 1,084 trades.

How large was the drawdown?

The best run had a maximum drawdown of 6,754 USD at the tested position size, against a net result of 28,214 USD.

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

Rock Climber

Best run on the same market, Nikkei 225.

1.44 PF · 1,644 trades

Breakout Failures

Also a mean reversion strategy.

1.17 PF · 911 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