Join waitlist
Strategies / Mean reversion / Internal Bar Strength Reversion Long

Internal Bar Strength Reversion Long

This idea buys when the close finishes near the low of the bar, a sign of short-term weakness. It closes the long when the close finishes near the high or after 30 bars, whichever comes first.

Mean reversionLong onlySwingNasdaq 100Daily
1.70Profit factor
25,496Net profit EUR
57.72%Win rate
1,438Trades
-4,686Max drawdown
17.73Avg trade

Best run of 10. Nasdaq 100, Daily, spread 3, from run pf:2026-10-12-NAS100-D.tsv:14.

Entry rules, long

  1. The bar has a non-zero range, with high above low, and no long is open.

Exit rules

  1. More than 30 bars have passed since the entry bar, which closes the long at market.
  2. No stop or target is coded.

Test conditions

PeriodUp to 2026-10-12
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDaily1.70 1,43857.7225,496 EUR-4,686
Dow JonesDaily1.47 1,39166.3643,730 EUR-7,341
S&P 500Daily1.40 1,62459.424,637 EUR-796
USD/JPY4 hoursn/a 3,55062.90448,820 USD-208,980
Nikkei 225Dailyn/a 1,38762.0039,872 USD-17,243
Dow Jones4 hoursn/a 1,18364.5014,042 EUR-7,088
US Crude OilDailyn/a 1,32162.7611,891 EUR-8,438
DAX 40Dailyn/a 1,25962.358,298 EUR-5,006
FTSE 100Dailyn/a 1,52063.497,882 EUR-2,613
GoldDailyn/a 1,50458.181,411 EUR-804

Charts

Results by run

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Internal Bar Strength Reversion Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

valid = 0
ibs = 0.5

15 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
  • 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 Internal Bar Strength Reversion 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 10 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.70 over 1,438 trades.

How large was the drawdown?

The best run had a maximum drawdown of 4,686 EUR at the tested position size, against a net result of 25,496 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

Range Regime Long With Time Exit

Also a mean reversion strategy.

1.70 PF · 316 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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