Buys when the EMA of on-balance volume crosses above its own 20-period EMA while the Supertrend (ATR 10, factor 3) direction value is 1, which marks a downtrend. Closes the long when the direction value is -1.
Best run of 12. GBP/USD, 30 min, spread 1.5, from run sweeps:2026-10-10-GBPUSD-30m-opt.tsv:2.
| Period | Up to 2026-10-10 |
| Instrument | GBP/USD, 30 minutes |
| Spread | 1.5 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GBP/USDBest run | 30 min | n/a | 985 | 74.92 | 1,512 USD | -941 |
| USD/JPY | 1 hour | n/a | 736 | 73.64 | 296,670 USD | -102,690 |
| USD/JPY | Daily | n/a | 26 | 88.46 | 178,820 USD | -91,560 |
| Nikkei 225 | 1 hour | n/a | 276 | 74.28 | 9,326 USD | -3,764 |
| Silver | Daily | n/a | 22 | 77.27 | 9,104 USD | -4,588 |
| Nikkei 225 | 30 min | n/a | 486 | 71.40 | 8,497 USD | -6,668 |
| Nikkei 225 | Daily | n/a | 12 | 75.00 | 5,814 USD | -4,415 |
| Nasdaq 100 | 4 hours | n/a | 69 | 88.41 | 5,444 EUR | -1,734 |
| Dow Jones | 1 hour | n/a | 167 | 70.06 | 3,213 EUR | -2,774 |
| DAX 40 | 4 hours | n/a | 90 | 76.67 | 3,161 EUR | -1,763 |
| Dow Jones | Daily | n/a | 7 | 71.43 | 3,092 EUR | -3,034 |
| S&P 500 | 1 hour | n/a | 235 | 76.17 | 716 EUR | -545 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // OBV Crossover With Supertrend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE ub = 0 ONCE lb = 0 ONCE dir = 1 ONCE st = 0 ONCE obv = 0 myAtr = AverageTrueRange[10](close) upper = MedianPrice + 3.0 * myAtr lower = MedianPrice - 3.0 * myAtr
59 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 12 market and timeframe combinations. The best run by trade count was GBP/USD, 30 minutes, with 985 trades.
The best run had a maximum drawdown of 941 USD at the tested position size, against a net result of 1,512 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.