Builds an on-balance volume line that adds volume weighted by volume divided by the 3-period ATR. Goes long when its 6-period EMA crosses above its 24-period EMA and short when it crosses below, with a 3% stop-loss.
Best run of 3. S&P 500, 1 hour, spread 1, from run sweeps:2026-10-04-USA500-1h-opt.tsv:65.
| Period | Up to 2026-10-04 |
| Instrument | S&P 500, 1 hour |
| Spread | 1 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | 1 hour | n/a | 2,251 | 37.05 | 1,855 EUR | -1,392 |
| Nasdaq 100 | Daily | n/a | 172 | 36.63 | 14,229 EUR | -5,922 |
| DAX 40 | 4 hours | n/a | 763 | 36.44 | 8,332 EUR | -6,330 |
Charts
The code
// ============================================================== // Volume Weighted OBV EMA Cross // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE obv = 0 myAtr = AverageTrueRange[3](close) chg = close - close[1] step = 0
27 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 3 market and timeframe combinations. The best run by trade count was S&P 500, 1 hour, with 2,251 trades.
The best run had a maximum drawdown of 1,392 EUR at the tested position size, against a net result of 1,855 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.