TradingView Price and Volume Breakout Strategy Backtest
The short version. I backtested TradeDots' "Price and Volume Breakout Buy Strategy" from TradingView (about 5,400 boosts). I ported it to Python and ran it on Binance spot BTC and ETH from August 2017 with real traded volume, the same feed as the author's sample chart, plus Exness ticks for eight CFD markets with real spread and commission.
- On the author's chart it looks great. BTCUSDT 4H, long only, 0.01% fee: 37 trades, PF 6.95, ×25.4 on the account against ×18.2 for buy and hold.
- But that number is fragile. Start the 4H bars at 01:00 or 02:00 UTC instead of 00:00 and the same rules make ×8.8 and ×9.2. Two trades, late 2017 and late 2020, did most of the work.
- The volume rule doesn't need volume. Replace volume with the bar's high minus low and BTC gives the same result (PF 7.00 vs 6.95). On a CFD broker's tick volume, only 18% to 40% of trades match the ones you'd get with Binance volume.
- Forex loses. EURUSD, GBPUSD and NZDUSD on H1: PF 0.48 to 0.66.
- As an MT5 EA with real ticks and swap, ETHUSD H4 made ×12.2 since 2020 against ×10.1 for holding. Swap ate 4% to 7% of gross profit. The EA is a free download (backtest only).
My verdict: it's a long-only trend filter that keeps you out of crypto in bear markets. That part is real. The "smart money volume" story isn't what makes it work.
What is the Price and Volume Breakout strategy?
It's a Pine v5 strategy published on 17 May 2024. The author says it suits volatile assets like Bitcoin and Ethereum and is less effective on the S&P 500. The rules fit in four lines:
- Buy when the close is above the highest high of the previous 60 bars, volume is above the highest volume of the previous 60 bars, and the close is above the 200-bar SMA.
- Close when the close has been below the SMA 200 for 5 bars in a row.
- One trade at a time, no stop loss, no take profit.
- Each trade uses 70% of equity, with 0.01% commission.
There's a short side too (break of the 60-bar low under the SMA), but it's off by default. The default is long only.

That's the strategy at its best. A buy on 17 September 2024 went nowhere and closed flat. The next one, on 14 October, rode Bitcoin from 65,870 to 92,724 and closed on 20 December for +40.7%. Most of the time it sits out: on BTC 4H it's in the market only 36% of the time.
How I tested it
- Port: Python, checked against the Pine logic. Signals on the bar close, fills at the next bar's open (TradingView's default).
ta.highestuses the high, and the[1]means the current bar isn't in the window. The exit compares the last five closes to the current SMA value, exactly as the code does. - Crypto data: Binance spot BTCUSDT and ETHUSDT, 15-minute klines from August 2017 to October 2026, built up to 1H, 4H and 1D. This has real traded volume.
- CFD data: Exness Raw Spread ticks, January 2020 to October 2026 for gold, forex and US500, ETH from 2020, BTC from 2024. Volume here is tick count, which is what TradingView shows for most CFD and forex symbols. Real spread plus 3.5 USD per lot per side commission. No swap.
- Older data: Dukascopy gold and forex from 2004 with tick volume.
- Settings: the defaults. 60 / 60 / 200, long only.
Is the Price and Volume Breakout strategy profitable on Bitcoin?
Over the whole history, yes. Binance BTCUSDT, 17 August 2017 to 31 October 2026, long only, 70% of equity per trade:
| BTCUSDT | Trades | PF | Account multiple | Worst drop (closed trades) | Buy and hold |
|---|---|---|---|---|---|
| 15m | 784 | 1.48 | ×12.4 | 44% | ×18.2 |
| 1H | 187 | 2.49 | ×21.1 | 29% | ×18.2 |
| 4H | 37 | 6.95 | ×25.4 | 17% | ×18.2 |
| 4H, after 17 May 2024 | 11 | 2.61 | ×1.37 | 17% | ×1.19 |
| 1H, after 17 May 2024 | 59 | 1.15 | ×1.06 | 23% | ×1.19 |
With a realistic Binance taker fee of 0.1% instead of 0.01%, 4H barely changes (PF 6.74, ×24.3) because it trades four times a year. 15m drops to PF 1.28, and after the publish date it loses (PF 0.94).
So the 4H chart beats holding Bitcoin, with a much smaller drawdown. Here's why I don't trust that ×25:

Same rules, same data, same fees. The only change is which hour the 4H bars start on. The result moves from ×8.8 to ×25.4. The gap opens in two places: the October 2017 entry (+152%) and the October 2020 entry (+169%). Catch those breakouts on the right bar and you win big. Miss them by an hour and you get a third of the result.
To be fair to it, the timing isn't random. I slid the whole in-and-out sequence to a random point in BTC's history 200 times, keeping the same time in the market. The real sequence beat every copy on 1H and 4H (p = 0.005). Being long after breakouts above the SMA 200, and flat below it, did better than being long the same share of the time at random.
I also ran 45 parameter sets (breakout 20 to 150 bars, volume 20 to 120, SMA 50 to 200). Every one had PF above 1 on BTC and ETH, which tells you the market did the work. The default ranks 5th of 45 on BTC 4H, at ×25.4 against a median of ×7.1.
Does it work on Ethereum?
Better than on Bitcoin, and this is where the SMA 200 earns its keep.
| ETHUSDT | Trades | PF | Account multiple | Buy and hold |
|---|---|---|---|---|
| 1H, 2017 – 2026 | 181 | 2.02 | ×13.3 | ×7.49 |
| 4H, 2017 – 2026 | 40 | 4.06 | ×13.9 | ×7.49 |
| 1H, after 17 May 2024 | 48 | 1.74 | ×1.59 | ×0.77 |
| 4H, after 17 May 2024 | 10 | 3.19 | ×1.54 | ×0.77 |
Since the script was published, holding ETH lost 23%. The strategy made 54% to 59%. It did that by not owning ETH most of the time: it waits for a new 60-bar high above the 200-bar average, and gets out after five closes under it. That's an old idea, and it still works.
Does the volume condition actually matter?
This is the part the description sells: price and volume breaking out together, "driven by market smart money traders". I tested it three ways, long only:

1. Against a random filter. The volume rule lets through about 1 in 4 price breakouts on crypto. I replaced it with a coin flip that lets through the same share, 200 times. On BTC 1H and 4H the real volume rule beat the coin flip (p = 0.015 and 0.01). On ETH 1H too (p = 0.025). On ETH 4H it didn't (p = 0.70), and on gold tick volume it didn't either (p = 0.18 to 0.35). In both places, dropping the volume rule entirely grew the account more.
2. Against bar range. Swap volume for the bar's high minus low and keep everything else. BTC 4H: PF 7.00 and ×28.1, vs 6.95 and ×25.4 with volume. BTC 1H: 2.56 vs 2.49. ETH 1H: 2.10 vs 2.02. Big-volume bars are mostly big-range bars. On crypto, what the filter picks is a wide breakout bar, and you don't need volume data to see one. (On gold, bar range did worse than tick volume, but neither beat the coin flip there.)
3. Broker tick volume vs real volume. I kept the same Exness prices and switched only the volume: Exness tick count vs Binance traded volume. Only 18% of BTC 4H entries and 31% to 40% of ETH entries happened on the same bar. ETH 4H PF went from 7.54 on tick volume to 2.32 on Binance volume. Your result on TradingView depends on which exchange's chart you open.
Does it work on gold, forex and indices?

- Gold made money on every timeframe since 2020 (M15 PF 1.68, H1 1.80), but grew the account only ×1.17 to ×1.61 while holding gold made ×2.57. On Dukascopy gold H4 it made PF 4.82 in 2004 to 2011 and 0.63 in 2012 to 2019, when gold went sideways.
- EURUSD, GBPUSD, NZDUSD lose. H1 PF 0.66, 0.56 and 0.48. Same story on Dukascopy back to 2004.
- USDJPY is positive since 2012 and lost in 2004 to 2011.
- US500 is roughly flat to modest (H1 PF 1.43 on 25 trades), which matches the author's own warning.
Turning on the short side made almost everything worse: gold M30 drops to 0.99, US500 loses on every timeframe.
Does it repaint?
No. Every condition uses closed bars and the previous 60 bars, and orders fill on the next open. What you see on a closed bar stays. The only thing that changes your trades is the data itself: exchange, volume feed, and the hour your bars start.
Risk structure
- No stop loss. A trade ends only after five closes under the SMA 200. On 4H that's at least 20 hours below the average, and the SMA itself can be far away after a fast run-up.
- 70% of equity per trade, no leverage needed on spot. But on a CFD account the same size carries swap every night (about 5% a year on Exness BTC and ETH longs, see the EA section).
- Ten worst trades, BTCUSDT 4H, percent of price after fees (multiply by 0.7 for the account):
| Entry | Exit | Entry → exit | Loss |
|---|---|---|---|
| 5 Aug 2019 04:00 | 15 Aug 2019 08:00 | 11,564.87 → 10,085.65 | −12.8% |
| 28 Mar 2022 00:00 | 9 Apr 2022 12:00 | 46,827.76 → 42,445.09 | −9.4% |
| 3 Oct 2025 20:00 | 11 Oct 2025 16:00 | 122,661.00 → 111,793.21 | −8.9% |
| 25 Oct 2022 20:00 | 9 Nov 2022 00:00 | 20,276.26 → 18,545.38 | −8.6% |
| 20 Jan 2025 08:00 | 2 Feb 2025 20:00 | 107,120.65 → 98,273.17 | −8.3% |
| 2 Jun 2020 00:00 | 14 Jun 2020 20:00 | 10,202.71 → 9,394.05 | −7.9% |
| 10 Apr 2021 08:00 | 18 Apr 2021 20:00 | 60,480.40 → 55,720.66 | −7.9% |
| 14 Jan 2026 00:00 | 21 Jan 2026 12:00 | 95,413.99 → 88,789.99 | −7.0% |
| 20 Dec 2018 12:00 | 25 Dec 2018 20:00 | 3,974.77 → 3,706.74 | −6.8% |
| 13 Dec 2022 16:00 | 17 Dec 2022 16:00 | 17,753.54 → 16,700.78 | −5.9% |
Losers are small and cut by the SMA rule. The real risk is the other way: the winners give a lot back before the exit fires. The October 2017 trade closed at 13,044 after Bitcoin had topped near 19,800.
- What isn't a red flag: no martingale, no grid, one position at a time.
Does it hold up as an MT5 EA?
I wanted to know what's left once a real broker gets its cut, so I wrote it as an MQL5 expert advisor with the same rules: decide on the bar close, trade at the next open, long only, 70% of the balance, no stop. Before trusting any number I ran the EA in the MT5 Strategy Tester and my Python engine on the same exported bars (BTCUSD, April 2025 to October 2026). The two agreed on every trade: 29 of 29 on H1 and 5 of 5 on H4, same entry and exit times, same prices, same lot sizes. Profit differed by 4 cents.
Then the real run: Exness Raw Spread, real ticks, spread, 2 USD per lot commission on BTC (0.3 on ETH), and the account's actual overnight swap on longs.
| MT5 EA, long only | Trades | PF | Account multiple | Buy and hold |
|---|---|---|---|---|
| ETHUSD H4, Mar 2020 – Oct 2026 | 22 | 5.44 | ×12.2 | ×10.1 |
| ETHUSD H1, Mar 2020 – Oct 2026 | 114 | 1.63 | ×4.6 | ×10.1 |
| ETHUSD H4, after 17 May 2024 | 8 | ×1.57 | ×0.76 | |
| BTCUSD H4, Mar 2024 – Oct 2026 | 7 | 3.41 | ×1.29 | ×1.26 |
| BTCUSD H1, Mar 2024 – Oct 2026 | 46 | 1.34 | ×1.18 | ×1.26 |

ETH H4 still beats holding, and the shape tells you how. It sat out most of 2022 (the EA lost 4.4% that year, ETH lost 68%) and was flat for long stretches while ETH ran without it. Worst equity drop was 31%. BTC only has Exness data from 2024, so seven trades is all I can show, and that's basically a tie with holding.
Three things the TradingView backtest doesn't show you:
- Swap. This account charges 13.89 USD per lot per night to hold BTC long and 0.389 on ETH, about 5% a year of the position. The strategy holds for weeks, so swap took 4% to 7% of gross profit. On ETH H4 that was 7,134 USD.
- Broker tick volume picks different trades. On BTC the tester and my engine took the same 7 trades. On ETH the tester only has real ticks from 2026 and rebuilds older years from its own minute bars and tick volume. That changed one trade in 2020: the tester bought in June 2020 and held to May 2021 (+881%), my engine on the tick archive took four smaller trades instead. Final result ×19.6 vs ×12.2, from the same code. It's the volume problem from above, now inside one broker.
- The volume rule still doesn't earn its place. Switching it off on the EA cut PF on every crypto run (ETH H4 5.44 to 2.15, BTC H1 1.32 to 0.89), but month by month the difference isn't statistically clear (t between −1.0 and −1.6). Turning on shorts made every run worse.
I didn't optimize anything. These are the author's default settings.
Download the EA
If you want to check this on your own broker, the EA is free: download Price and Volume Breakout for MT5 (zip with the .ex5 and a README, details here). It's a backtest-only build. It runs in the Strategy Tester and refuses to start on a live or demo chart. I made it for this review, it's not a product, so don't expect updates.
Who should use it?
If you want a simple rule to be in crypto during uptrends and out during long declines, this does that, on 1H or 4H. Expect long flat stretches (2018, 2022 and 2025 were losing years on BTC 4H) and don't expect the ×25 from the sample chart. Something between ×9 and ×25 was just as likely.
I wouldn't use it on forex. On gold you'd have done better holding.
What I couldn't verify
- TradingView's own numbers. TradingView's BTCUSDT chart uses its own bar history, and my bars come from Binance's public files. Close, but not guaranteed identical.
- Other exchanges. Coinbase or Bybit volume would pick different breakout bars again.
- Swap and funding. The MT5 EA runs include swap at today's rate, applied to the whole history (that's what the tester does). The other CFD tables don't, and I didn't model funding on perpetuals. Spot Binance has neither.
- BTC on MT5 before 2024. My Exness BTC data starts in January 2024, so the EA's BTC sample is seven trades.
- The future. After the publish date there are only 11 BTC 4H trades and 10 on ETH. That's too few to say much.
Bottom line
The TradingView Price and Volume Breakout strategy is a long-only breakout with a 200-bar trend filter. It beat holding Bitcoin and Ethereum since 2017, mostly by staying out of bear markets, but the ×25 on BTC 4H swings to ×9 with a one-hour shift in bar times, and the volume part does what bar range does. As an MT5 EA with real costs it still beat holding ETH, by less, and swap is a cost you have to plan for.
This is part of a series where I port the most-boosted open-source TradingView strategies and test them with real data. For another trend filter that mostly rode the market, see the Hull Suite backtest; for a crypto strategy where the "AI" didn't matter, the AI SuperTrend backtest.
I'm not affiliated with TradingView or TradeDots. Past results, including backtests, don't guarantee future results.
Comments
No comments yet. Questions about the settings, the data or the numbers are welcome.
Log in or create a free account to comment.