Join waitlist
Strategies / Momentum / Volume Weighted OBV EMA Cross

Volume Weighted OBV EMA Cross

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.

MomentumLong & shortSwingS&P 5001 hour
n/aProfit factor
1,855Net profit EUR
37.05%Win rate
2,251Trades
-1,392Max drawdown
0.82Avg trade

Best run of 3. S&P 500, 1 hour, spread 1, from run sweeps:2026-10-04-USA500-1h-opt.tsv:65.

Entry rules, long

  1. No long position is open.

Entry rules, short

  1. No short position is open.

Exit rules

  1. A 3% stop-loss applies from the entry price.

Test conditions

PeriodUp to 2026-10-04
InstrumentS&P 500, 1 hour
Spread1 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-07

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best run1 hourn/a 2,25137.051,855 EUR-1,392
Nasdaq 100Dailyn/a 17236.6314,229 EUR-5,922
DAX 404 hoursn/a 76336.448,332 EUR-6,330

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 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

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.

Indicators used

EMAATRVolume
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 1,392 EUR is large next to the net profit of 1,855 EUR.

Questions

About this strategy

Can I run Volume Weighted OBV EMA Cross 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 3 market and timeframe combinations. The best run by trade count was S&P 500, 1 hour, with 2,251 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,392 EUR at the tested position size, against a net result of 1,855 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

CCI Sign With EMA Alignment

Best run on the same market, S&P 500.

1.23 PF · 1,253 trades

ATR Momentum

Also a momentum strategy.

n/a PF · 15,021 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