Strategy library · Volume

OBV cross backtest on NQ and ES futures

OBV crosses its 20 SMA

Also called: on balance volume strategy, OBV 20 SMA cross, OBV crossover, buy when OBV crosses above its 20-bar SMA, short when OBV crosses below its 20-bar SMA

What happens if you buy NQ every time OBV crosses above its 20-bar SMA?

What it is

On-balance volume (OBV) is a running total that adds volume on up bars and subtracts it on down bars. This strategy goes long when the OBV crosses above its 20-bar SMA, short when it crosses below, and exits on the opposite cross.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the OBV cross strategy took 1,804 trades on the 15-minute chart, won 30.5% of them and finished -10,063.00 points (-$201,260 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 909 long trades on the 15-minute chart won 32.7% and made -4,665.50 points (-$93,310 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the OBV cross strategy took 1,719 trades on the 15-minute chart, won 32.2% of them and finished 17.75 points ($888 on one ES contract), before commission and slippage. The 5-minute, 1-hour and daily results for both markets are in the table on this page.

How it was tested

CE Market Solutions tested the OBV cross strategy on NQ (2024-10-08 to 2026-10-07) and ES (2024-08-28 to 2026-08-27) futures, before commission and slippage, with each signal filled at the next bar's open, intraday positions flat at 15:59 ET and textbook default indicator settings; the NQ trades are listed on this page and the ES trades under the ES tab.

See it tested with one change · $19

Tested by CE Market Solutions on 2026-10-26. The trades are listed below, one market at a time. Gross, no commission or slippage. Last 2 years.

Results

Rule as tested: Long when OBV crosses above its 20-bar SMA; short below. Exit: Opposite cross.

TimeframeNQ · 2024-10-08 to 2026-10-07ES · 2024-08-28 to 2026-08-27
TradesWin %Avg ptsProfit factorNet ptsNet $ (1 NQ)Max DD ptsTradesWin %Avg ptsProfit factorNet ptsNet $ (1 ES)Max DD pts
5 minute533227.6%−0.090.995−460.00−$9,2005,688.00520127.2%−0.080.978−418.50−$20,9251,272.50
5 minute · longs only266629.6%——−297.25−$5,9453,072.50258927.9%——−345.75−$17,287792.00
5 minute · shorts only266625.5%——−162.75−$3,2553,744.50261226.5%——−72.75−$3,637608.00
15 minute180430.5%−5.580.823−10,063.00−$201,26011,475.00171932.2%0.011.00217.75$888999.75
15 minute · longs only90932.7%——−4,665.50−$93,3105,413.5085534.7%——−92.50−$4,625688.75
15 minute · shorts only89528.4%——−5,397.50−$107,9507,219.7586429.8%——110.25$5,513474.00
1 hour68639.4%6.461.1484,428.75$88,5752,499.7569739.3%0.981.104684.25$34,213481.00
1 hour · longs only34042.1%——3,549.25$70,9851,313.0034541.5%——376.25$18,813313.25
1 hour · shorts only34636.7%——879.50$17,5902,019.2535237.2%——308.00$15,400404.25
Daily9030.0%−24.330.885−2,189.50−$43,7906,950.757837.2%11.971.376934.00$46,700798.00
Daily · longs only4533.3%——3,415.50$68,3103,498.003946.2%——1,339.00$66,950305.75
Daily · shorts only4526.7%——−5,605.00−$112,1007,705.003928.2%——−405.00−$20,250825.75

Free to use with credit to CE Market Solutions (CC BY 4.0).

ES daily: the equity line

OBV crosses its 20 SMA, ES daily, 2024-08-28 to 2026-08-27. Cumulative points after each trade; low −45.00, high 1,213.75, last 934.00.

Long and short

SideTradesNet pts
Long391,339.00
Short39−405.00

By month

MonthTradesNet pts
2024-092180.50
2024-105−166.00
2024-11192.00
2024-123194.75
2025-013−43.50
2025-025275.75
2025-032−1.50
2025-043509.75
2025-06610.75
2025-083−154.25
2025-093−25.25
2025-109−325.75
2025-115−187.25
2025-123122.00
2026-013−135.00
2026-0239.75
2026-034187.75
2026-041669.25
2026-065−264.25
2026-072−19.50
2026-0874.00
Every trade, ES daily78 trades

Daily results show the table and the equity line; there is no chart viewer for them yet.

All trades (78), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-08-27long2026-08-26 18:007722.002026-08-27 16:597733.00window end11.00
2026-08-25short2026-08-24 18:007676.002026-08-26 18:007722.00opposite cross−46.00
2026-08-24long2026-08-23 18:007693.502026-08-24 18:007676.00opposite cross−17.50
2026-08-21short2026-08-20 18:007669.002026-08-23 18:007693.50opposite cross−24.50
2026-08-20long2026-08-19 18:007733.002026-08-20 18:007669.00opposite cross−64.00
2026-08-19short2026-08-18 18:007714.002026-08-19 18:007733.00opposite cross−19.00
2026-08-03long2026-08-02 18:007550.002026-08-18 18:007714.00opposite cross164.00
2026-07-17short2026-07-16 18:007572.752026-08-02 18:007550.00opposite cross22.75
2026-07-16long2026-07-15 18:007615.002026-07-16 18:007572.75opposite cross−42.25
2026-06-23short2026-06-22 18:007541.252026-07-15 18:007615.00opposite cross−73.75
2026-06-19long2026-06-18 18:007576.752026-06-22 18:007541.25opposite cross−35.50
2026-06-18short2026-06-17 18:007512.502026-06-18 18:007576.75opposite cross−64.25
2026-06-12long2026-06-11 18:007397.502026-06-17 18:007512.50opposite cross47.50
2026-06-11short2026-06-10 18:007259.252026-06-11 18:007397.50opposite cross−138.25
2026-04-06long2026-04-05 18:006590.002026-06-10 18:007259.25opposite cross669.25
2026-03-26short2026-03-25 18:006641.502026-04-05 18:006590.00opposite cross51.50
2026-03-25long2026-03-24 18:006646.502026-03-25 18:006641.50opposite cross−5.00
2026-03-12short2026-03-11 18:006766.002026-03-24 18:006646.50opposite cross172.00
2026-03-11long2026-03-10 18:006796.752026-03-11 18:006766.00opposite cross−30.75
2026-02-27short2026-02-26 18:006899.002026-03-10 18:006796.75opposite cross102.25
2026-02-26long2026-02-25 18:006965.002026-02-26 18:006899.00opposite cross−66.00
2026-02-02short2026-02-01 18:006938.502026-02-25 18:006965.00opposite cross−26.50
2026-01-22long2026-01-21 18:006920.002026-02-01 18:006938.50opposite cross18.50
2026-01-21short2026-01-20 18:006839.002026-01-21 18:006920.00opposite cross−81.00
2026-01-05long2026-01-04 18:006911.502026-01-20 18:006839.00opposite cross−72.50
2025-12-31short2025-12-30 18:006945.502026-01-04 18:006911.50opposite cross34.00
2025-12-19long2025-12-18 18:006824.752025-12-30 18:006945.50opposite cross120.75
2025-12-18short2025-12-17 18:006792.002025-12-18 18:006824.75opposite cross−32.75
2025-11-25long2025-11-24 18:006726.252025-12-17 18:006792.00opposite cross7.25
2025-11-18short2025-11-17 18:006696.502025-11-24 18:006726.25opposite cross−29.75
2025-11-17long2025-11-16 18:006764.752025-11-17 18:006696.50opposite cross−68.25
2025-11-14short2025-11-13 18:006762.752025-11-16 18:006764.75opposite cross−2.00
2025-11-11long2025-11-10 18:006857.252025-11-13 18:006762.75opposite cross−94.50
2025-10-31short2025-10-30 18:006897.002025-11-10 18:006857.25opposite cross39.75
2025-10-27long2025-10-26 18:006881.002025-10-30 18:006897.00opposite cross16.00
2025-10-22short2025-10-21 18:006776.002025-10-26 18:006881.00opposite cross−105.00
2025-10-21long2025-10-20 18:006779.502025-10-21 18:006776.00opposite cross−3.50
2025-10-17short2025-10-16 18:006659.252025-10-20 18:006779.50opposite cross−120.25
2025-10-16long2025-10-15 18:006715.252025-10-16 18:006659.25opposite cross−56.00
2025-10-15short2025-10-14 18:006684.252025-10-15 18:006715.25opposite cross−31.00
2025-10-14long2025-10-13 18:006691.002025-10-14 18:006684.25opposite cross−6.75
2025-10-13short2025-10-12 18:006632.002025-10-13 18:006691.00opposite cross−59.00
2025-09-29long2025-09-28 18:006697.002025-10-12 18:006632.00opposite cross−65.00
2025-09-26short2025-09-25 18:006662.752025-09-28 18:006697.00opposite cross−34.25
2025-09-10long2025-09-09 18:006532.252025-09-25 18:006662.75opposite cross74.00
2025-08-20short2025-08-19 18:006433.002025-09-09 18:006532.25opposite cross−99.25
2025-08-08long2025-08-07 18:006372.502025-08-19 18:006433.00opposite cross60.50
2025-08-04short2025-08-03 18:006257.002025-08-07 18:006372.50opposite cross−115.50
2025-06-24long2025-06-23 18:006078.002025-08-03 18:006257.00opposite cross179.00
2025-06-12short2025-06-11 18:006022.252025-06-23 18:006078.00opposite cross−0.25
2025-06-11long2025-06-10 18:006038.752025-06-11 18:006022.25opposite cross−16.50
2025-06-05short2025-06-04 18:005974.252025-06-10 18:006038.75opposite cross−64.50
2025-06-04long2025-06-03 18:005980.002025-06-04 18:005974.25opposite cross−5.75
2025-06-02short2025-06-01 18:005898.752025-06-03 18:005980.00opposite cross−81.25
2025-04-24long2025-04-23 18:005409.002025-06-01 18:005898.75opposite cross489.75
2025-04-03short2025-04-02 18:005550.502025-04-23 18:005409.00opposite cross141.50
2025-04-02long2025-04-01 18:005672.002025-04-02 18:005550.50opposite cross−121.50
2025-03-28short2025-03-27 18:005741.752025-04-01 18:005672.00opposite cross69.75
2025-03-25long2025-03-24 18:005813.002025-03-27 18:005741.75opposite cross−71.25
2025-02-21short2025-02-20 18:006132.502025-03-24 18:005813.00opposite cross370.75
2025-02-20long2025-02-19 18:006153.752025-02-20 18:006132.50opposite cross−21.25
2025-02-19short2025-02-18 18:006143.752025-02-19 18:006153.75opposite cross−10.00
2025-02-17long2025-02-16 18:006138.252025-02-18 18:006143.75opposite cross5.50
2025-02-04short2025-02-03 18:006069.002025-02-16 18:006138.25opposite cross−69.25
2025-01-20long2025-01-19 18:006032.252025-02-03 18:006069.00opposite cross36.75
2025-01-17short2025-01-16 18:005970.252025-01-19 18:006032.25opposite cross−62.00
2025-01-16long2025-01-15 18:005988.502025-01-16 18:005970.25opposite cross−18.25
2024-12-30short2024-12-29 18:006028.752025-01-15 18:005988.50opposite cross40.25
2024-12-23long2024-12-22 18:006001.752024-12-29 18:006028.75opposite cross27.00
2024-12-16short2024-12-15 18:006055.502024-12-22 18:006001.75opposite cross127.50
2024-11-07long2024-11-06 18:005963.502024-12-15 18:006055.50opposite cross92.00
2024-10-31short2024-10-30 18:005840.002024-11-06 18:005963.50opposite cross−123.50
2024-10-29long2024-10-28 18:005867.002024-10-30 18:005840.00opposite cross−27.00
2024-10-28short2024-10-27 18:005857.002024-10-28 18:005867.00opposite cross−10.00
2024-10-25long2024-10-24 18:005853.252024-10-27 18:005857.00opposite cross3.75
2024-10-24short2024-10-23 18:005844.002024-10-24 18:005853.25opposite cross−9.25
2024-09-12long2024-09-11 18:005558.002024-10-23 18:005844.00opposite cross225.50
2024-09-06short2024-09-05 18:005513.002024-09-11 18:005558.00opposite cross−45.00

Page 1 of 1

Questions and answers

What happens if you buy NQ every time OBV crosses above its 20-bar SMA?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the OBV cross strategy took 909 long trades, won 32.7% of them and made -4,665.50 points (-$93,310 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made -297.25 points on 2,666 trades on the 5-minute chart, 3,549.25 points on 340 trades on the 1-hour chart and 3,415.50 points on 45 trades on the daily chart, before commission and slippage.

What happens if you short ES every time OBV crosses below its 20-bar SMA?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the OBV cross strategy took 864 short trades, won 29.8% of them and made 110.25 points ($5,513 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made -72.75 points on 2,612 trades on the 5-minute chart, 308.00 points on 352 trades on the 1-hour chart and -405.00 points on 39 trades on the daily chart, before commission and slippage.

Does the OBV cross strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the OBV cross strategy on the 15-minute chart took 1,804 trades, won 30.5% of them and finished -10,063.00 points (-$201,260 on one NQ contract), before commission and slippage.

What is the win rate of OBV crosses its 20 SMA on ES futures?

The OBV cross strategy won 32.2% of its 1,719 trades on the ES 15-minute chart from 2024-08-28 to 2026-08-27, before commission and slippage. On ES from 2024-08-28 to 2026-08-27 it also won 27.2% of 5,201 trades on the 5-minute chart, 39.3% of 697 trades on the 1-hour chart and 37.2% of 78 trades on the daily chart, before commission and slippage.

Is the OBV cross strategy better on the 5-minute, 15-minute, 1-hour or daily chart for NQ?

On NQ from 2024-10-08 to 2026-10-07, the OBV cross strategy made -460.00 points on 5,332 trades on the 5-minute chart, -10,063.00 points on 1,804 trades on the 15-minute chart, 4,428.75 points on 686 trades on the 1-hour chart and -2,189.50 points on 90 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell OBV cross signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made -4,665.50 points on 909 trades (32.7% won) and the short trades made -5,397.50 points on 895 trades (28.4% won), before commission and slippage.

How many trades does the OBV cross strategy take on NQ in two years?

The OBV cross strategy took 1,804 trades on the NQ 15-minute chart from 2024-10-08 to 2026-10-07, before commission and slippage. On NQ from 2024-10-08 to 2026-10-07 it also took 5,332 on the 5-minute chart, 686 on the 1-hour chart and 90 on the daily chart, before commission and slippage.

What is the max drawdown of the OBV cross strategy on NQ?

The OBV cross strategy had a max drawdown of 11,475.00 points ($229,500 on one NQ contract) on the NQ 15-minute chart from 2024-10-08 to 2026-10-07, before commission and slippage. On NQ from 2024-10-08 to 2026-10-07 its max drawdown was also 5,688.00 points on the 5-minute chart, 2,499.75 points on the 1-hour chart and 6,950.75 points on the daily chart, before commission and slippage.

How does the OBV cross strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the OBV cross strategy took 1,719 trades, won 32.2% of them and made 17.75 points ($888 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the OBV cross strategy took 1,804 trades, won 30.5% of them and made -10,063.00 points (-$201,260 on one NQ contract), before commission and slippage.

How these were run

  • Gross: no commission and no slippage.
  • The last 2 years of each market, from the first to the last session of its window.
  • A signal on a closed bar fills at the next bar’s open.
  • A stop and a target touched in the same minute count as the stop.
  • Intraday positions are flat at 15:59 ET.
  • Textbook TradingView default settings for every indicator; nothing is tuned.

Want your own rules tested the same way?