The strategy buys when the close crosses above a smoothed channel band while on-balance volume is above its 60-bar EMA and the close is above its 50-bar EMA. It sells when the close falls below the channel midline or the 50-bar EMA.
Best run of 17. Silver, 4 hours, spread 2, from run pf:2026-10-04-SILVER-4h.tsv:4.
| Period | Up to 2026-10-04 |
| Instrument | Silver, 4 hours |
| Spread | 2 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | 1.69 | 453 | 26.71 | 33,143 USD | -7,792 |
| Gold | 1 hour | 1.32 | 1,713 | 26.80 | 2,368 EUR | -445 |
| Nikkei 225 | Daily | n/a | 48 | 27.08 | 22,715 USD | -7,954 |
| Nasdaq 100 | Daily | n/a | 51 | 45.10 | 15,824 EUR | -3,087 |
| Dow Jones | 4 hours | n/a | 136 | 35.29 | 13,066 EUR | -4,166 |
| Nasdaq 100 | 4 hours | n/a | 229 | 35.37 | 7,552 EUR | -2,746 |
| Dow Jones | 1 hour | n/a | 589 | 28.18 | 7,103 EUR | -6,557 |
| DAX 40 | 4 hours | n/a | 235 | 33.19 | 6,353 EUR | -2,163 |
| Nasdaq 100 | 1 hour | n/a | 943 | 28.63 | 6,159 EUR | -4,520 |
| DAX 40 | 30 min | n/a | 1,827 | 26.00 | 5,785 EUR | -2,293 |
| DAX 40 | 1 hour | n/a | 910 | 27.69 | 4,800 EUR | -2,281 |
| Nasdaq 100 | 15 min | n/a | 2,855 | 23.85 | 3,809 EUR | -3,564 |
| Gold | 4 hours | n/a | 416 | 30.05 | 2,429 EUR | -838 |
| Gold | Daily | n/a | 57 | 33.33 | 1,996 EUR | -809 |
| S&P 500 | Daily | n/a | 41 | 48.78 | 1,724 EUR | -566 |
| Gold | 30 min | n/a | 2,929 | 26.60 | 1,505 EUR | -1,002 |
| S&P 500 | 1 hour | n/a | 891 | 27.05 | 1,365 EUR | -761 |
Charts
Top 10 of 17 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Smoothed Channel OBV Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false src = TypicalPrice myTr = TR(close) srcin = src + (src - src[17]) trin = myTr + (myTr - myTr[17]) fa = ExponentialAverage[20](srcin) fb = ExponentialAverage[20](fa) fc = ExponentialAverage[20](fb) filt = ExponentialAverage[20](fc) ta = ExponentialAverage[20](trin) tb = ExponentialAverage[20](ta) tc = ExponentialAverage[20](tb) filttr = ExponentialAverage[20](tc) upper = filt + filttr * 1.414 myObv = OBV(close) obvema = ExponentialAverage[60](myObv) regime = ExponentialAverage[50](close) myAtr = AverageTrueRange[14](close) stopdist = myAtr[1] * 1.7
14 more lines: the entry and exit rules.
Setup
Silver had no history beyond the standard run, so both runs used 30,000 bars.
| Bars available | 30,000 |
| Net, standard 200,000-bar run | 33,143.00 USD |
| Net, long run | 33,143.00 USD |
| Net on the older data alone | 0.00 USD |
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 17 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 1.69 over 453 trades.
The best run had a maximum drawdown of 7,792 USD at the tested position size, against a net result of 33,143 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.