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.
Best run of 10. Nasdaq 100, Daily, spread 3, from run pf:2026-10-12-NAS100-D.tsv:14.
| Period | Up to 2026-10-12 |
| Instrument | Nasdaq 100, Daily |
| Spread | 3 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 1.70 | 1,438 | 57.72 | 25,496 EUR | -4,686 |
| Dow Jones | Daily | 1.47 | 1,391 | 66.36 | 43,730 EUR | -7,341 |
| S&P 500 | Daily | 1.40 | 1,624 | 59.42 | 4,637 EUR | -796 |
| USD/JPY | 4 hours | n/a | 3,550 | 62.90 | 448,820 USD | -208,980 |
| Nikkei 225 | Daily | n/a | 1,387 | 62.00 | 39,872 USD | -17,243 |
| Dow Jones | 4 hours | n/a | 1,183 | 64.50 | 14,042 EUR | -7,088 |
| US Crude Oil | Daily | n/a | 1,321 | 62.76 | 11,891 EUR | -8,438 |
| DAX 40 | Daily | n/a | 1,259 | 62.35 | 8,298 EUR | -5,006 |
| FTSE 100 | Daily | n/a | 1,520 | 63.49 | 7,882 EUR | -2,613 |
| Gold | Daily | n/a | 1,504 | 58.18 | 1,411 EUR | -804 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // 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
Questions
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.
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.
The best run had a maximum drawdown of 4,686 EUR at the tested position size, against a net result of 25,496 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.